$ # get the code
+$ # Set up auth in Git config
+$ # In your home directory:
+$ git cl creds-check
+
+$ # get the code
$ # In an empty directory:
$ fetch {chromium,...}
@@ -999,6 +1003,12 @@ commands:
diff --git a/man/html/depot_tools_tutorial.html b/man/html/depot_tools_tutorial.html index 0ac3272ca..3cad3baed 100644 --- a/man/html/depot_tools_tutorial.html +++ b/man/html/depot_tools_tutorial.html @@ -977,7 +977,11 @@ commands:
$ # get the code
+$ # Set up auth in Git config
+$ # In your home directory:
+$ git cl creds-check
+
+$ # get the code
$ # In an empty directory:
$ fetch {chromium,...}
@@ -999,6 +1003,12 @@ commands:
Unless you plan on only fetching code anonymously, you’ll need to set +up your auth config in Git. Run this in your home directory:
$ git cl creds-check
+Pick an empty directory and run one of the following:
$ git new-branch fix_typo
$ echo -e '/Banana\ns/Banana/Kuun\nwq' | ed build/whitespace_file.txt
-1503
-It was a Domo-Banana.
-It was a Domo-Kuun.
-1501
+1772
+?
+?
+1772
$ git commit -am 'Fix terrible typo.'
-[fix_typo 615ffa7] Fix terrible typo.
- 1 file changed, 1 insertion(+), 1 deletion(-)
+On branch fix_typo
+Your branch is up to date with 'origin/master'.
+
+nothing to commit, working tree clean
$ git map
-* 615ffa720f (HEAD -> fix_typo) 2014-04-10 ~ Fix terrible typo.
-* beec6f4746 (origin/main, origin/HEAD) 2014-04-10 ~ Make ReflectorImpl use mailboxes
+* 59cdb7335b (HEAD -> fix_typo, origin/master, origin/HEAD) 2014-04-10 ~ Refactor data interchange format.
+* 34676a3583 2014-04-10 ~ Ensure FS is exited for all not-in-same-page navigations.
+* 7d4784e867 2014-04-10 ~ Add best chapter2 ever!
+* 5d26fec369 2014-04-10 ~ Finish chapter 2
+* df7fefbf06 2014-04-10 ~ Revert 255617, due to it not tracking use of the link doctor page properly.
+* 4b39cda0ac 2014-04-10 ~ Fix terrible typo.
+* 248c5b6fe3 2014-04-10 ~ Temporarily CHECK(trial) in ChromeRenderProcessObserver::OnSetFieldTrialGroup.
+* 8171df8af9 2014-04-10 ~ Remove AMD family check for the flapper crypto accelerator.
+* d6a30d2e56 2014-04-10 ~ Change the Pica load benchmark to listen for the polymer-ready event
+* beec6f4746 (origin/main, master) 2014-04-10 ~ Make ReflectorImpl use mailboxes <(master)
* 41290e02b7 2014-04-10 ~ don't use glibc-specific execinfo.h on uclibc builds
* a76fde7b7b 2014-04-10 ~ [fsp] Add requestUnmount() method together with the request manager.
* 9de7a713b3 2014-04-10 ~ linux_aura: Use system configuration for middle clicking the titlebar.
@@ -1269,8 +1289,7 @@ It was a Domo-Kuun.
$ git status
On branch fix_typo
-Your branch is ahead of 'origin/main' by 1 commit.
- (use "git push" to publish your local commits)
+Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
@@ -1279,9 +1298,10 @@ nothing to commit, working tree clean
$ git new-branch chap2
$ git map-branches
-origin/main
+origin/master
chap2 *
- fix_typo
+ fix_typo
+ master
$ cat >> build/whitespace_file.txt <<EOF
@@ -1291,7 +1311,7 @@ when the fan was last cleaned.
EOF
$ git status
On branch chap2
-Your branch is up to date with 'origin/main'.
+Your branch is up to date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
@@ -1304,41 +1324,36 @@ no changes added to commit (use "git add" and/or "git commit -a")
$ git checkout fix_typo
Switched to branch 'fix_typo'
-Your branch is ahead of 'origin/main' by 1 commit.
- (use "git push" to publish your local commits)
+Your branch is up to date with 'origin/master'.
$ echo -e '/Kuun\ns/Kuun/Kun\nwq' | ed build/whitespace_file.txt
-1501
-It was a Domo-Kuun.
-It was a Domo-Kun.
-1500
+1772
+?
+?
+1772
$ git upstream-diff --wordwise
-diff --git a/build/whitespace_file.txt b/build/whitespace_file.txt
-index 3eba355..57cdcee 100644
---- a/build/whitespace_file.txt
-+++ b/build/whitespace_file.txt
-@@ -17,7 +17,7 @@ swept up the streets (for it is in London that our scene lies), rattling along
-the housetops, and fiercely agitating the scanty flame of the lamps that
-struggled against the elements. A hooded figure emerged.
-
-It was a Domo-BananaKun.
-
-"What took you so long?", inquired his wife.
-
$ git commit -am 'Fix typo for good!'
-[fix_typo 2c0ad9c] Fix typo for good!
- 1 file changed, 1 insertion(+), 1 deletion(-)
+On branch fix_typo
+Your branch is up to date with 'origin/master'.
+
+nothing to commit, working tree clean
$ git cl upload
... truncated output ...
$ git cl set_commit
$ git map
-* 0e2e52e72e (chap2) 2014-04-10 ~ FREEZE.unindexed
-| * 2c0ad9c59b (HEAD -> fix_typo) 2014-04-10 ~ Fix typo for good!
-| * 615ffa720f 2014-04-10 ~ Fix terrible typo.
-|/
-* beec6f4746 (origin/main, origin/HEAD) 2014-04-10 ~ Make ReflectorImpl use mailboxes <(chap2)
+* a939958dff (chap2) 2014-04-10 ~ FREEZE.unindexed
+* 59cdb7335b (HEAD -> fix_typo, origin/master, origin/HEAD) 2014-04-10 ~ Refactor data interchange format. <(chap2)
+* 34676a3583 2014-04-10 ~ Ensure FS is exited for all not-in-same-page navigations.
+* 7d4784e867 2014-04-10 ~ Add best chapter2 ever!
+* 5d26fec369 2014-04-10 ~ Finish chapter 2
+* df7fefbf06 2014-04-10 ~ Revert 255617, due to it not tracking use of the link doctor page properly.
+* 4b39cda0ac 2014-04-10 ~ Fix terrible typo.
+* 248c5b6fe3 2014-04-10 ~ Temporarily CHECK(trial) in ChromeRenderProcessObserver::OnSetFieldTrialGroup.
+* 8171df8af9 2014-04-10 ~ Remove AMD family check for the flapper crypto accelerator.
+* d6a30d2e56 2014-04-10 ~ Change the Pica load benchmark to listen for the polymer-ready event
+* beec6f4746 (origin/main, master) 2014-04-10 ~ Make ReflectorImpl use mailboxes <(master)
* 41290e02b7 2014-04-10 ~ don't use glibc-specific execinfo.h on uclibc builds
* a76fde7b7b 2014-04-10 ~ [fsp] Add requestUnmount() method together with the request manager.
* 9de7a713b3 2014-04-10 ~ linux_aura: Use system configuration for middle clicking the titlebar.
@@ -1348,90 +1363,82 @@ It was a Domo-Banana Switch back to where we were using the nav* commands (for fun... git checkout would work here too)
$ git map-branches
-origin/main
- chap2
+origin/master
+ chap2
fix_typo *
+ master
$ git nav-upstream
-Note: switching to 'origin/main'.
-
-You are in 'detached HEAD' state. You can look around, make experimental
-changes and commit them, and you can discard any commits you make in this
-state without impacting any branches by switching back to a branch.
-
-If you want to create a new branch to retain commits you create, you may
-do so (now or later) by using -c with the switch command. Example:
-
- git switch -c <new-branch-name>
-
-Or undo this operation with:
-
- git switch -
-
-Turn off this advice by setting config variable advice.detachedHead to false
-
-HEAD is now at beec6f4 Make ReflectorImpl use mailboxes
+HEAD is now at 59cdb73 Refactor data interchange format.
$ git nav-downstream
-Previous HEAD position was beec6f4 Make ReflectorImpl use mailboxes
+Previous HEAD position was 59cdb73 Refactor data interchange format.
Switched to branch 'chap2'
-Your branch is ahead of 'origin/main' by 1 commit.
+Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
Please select a downstream branch
0. chap2
1. fix_typo
-Selection (0-1)[0]: 0
+ 2. master
+Selection (0-2)[0]: 0
$ git map-branches
-origin/main
+origin/master
chap2 *
fix_typo
+ master
$ git thaw
$ git diff
-diff --git a/build/whitespace_file.txt b/build/whitespace_file.txt
-index 3eba355..9d08d9d 100644
---- a/build/whitespace_file.txt
-+++ b/build/whitespace_file.txt
-@@ -34,3 +34,7 @@ with his fork, watching the runny jelly spread and pool across his plate,
- like the blood of a dying fawn. \"It reminds me of that time --\" he started, as
- his wife cut in quickly: \"-- please. I can't bear to hear it.\". A flury of
- images coming from the past flowed through his mind.
-+
-+"You recall what happened on Mulholland drive?" The ceiling fan rotated slowly
-+overhead, barely disturbing the thick cigarette smoke. No doubt was left about
-+when the fan was last cleaned.
+diff --git a/build/whitespace_file.txt b/build/whitespace_file.txt
+index 1293282..0ae5a14 100644
+--- a/build/whitespace_file.txt
++++ b/build/whitespace_file.txt
+@@ -43,3 +43,7 @@ There was an poignant pause.
+
+ CHAPTER 3:
+ Hilariousness! This chapter is awesome!
++
++"You recall what happened on Mulholland drive?" The ceiling fan rotated slowly
++overhead, barely disturbing the thick cigarette smoke. No doubt was left about
++when the fan was last cleaned.
$ cat >> build/whitespace_file.txt <<EOF
There was an poignant pause.
EOF
$ git diff
-diff --git a/build/whitespace_file.txt b/build/whitespace_file.txt
-index 3eba355..e3a55de 100644
---- a/build/whitespace_file.txt
-+++ b/build/whitespace_file.txt
-@@ -34,3 +34,9 @@ with his fork, watching the runny jelly spread and pool across his plate,
- like the blood of a dying fawn. \"It reminds me of that time --\" he started, as
- his wife cut in quickly: \"-- please. I can't bear to hear it.\". A flury of
- images coming from the past flowed through his mind.
-+
-+"You recall what happened on Mulholland drive?" The ceiling fan rotated slowly
-+overhead, barely disturbing the thick cigarette smoke. No doubt was left about
-+when the fan was last cleaned.
-+
-+There was an poignant pause.
+diff --git a/build/whitespace_file.txt b/build/whitespace_file.txt
+index 1293282..a63d04e 100644
+--- a/build/whitespace_file.txt
++++ b/build/whitespace_file.txt
+@@ -43,3 +43,9 @@ There was an poignant pause.
+
+ CHAPTER 3:
+ Hilariousness! This chapter is awesome!
++
++"You recall what happened on Mulholland drive?" The ceiling fan rotated slowly
++overhead, barely disturbing the thick cigarette smoke. No doubt was left about
++when the fan was last cleaned.
++
++There was an poignant pause.
$ git commit -am 'Finish chapter 2'
-[chap2 ceef712] Finish chapter 2
+[chap2 d4a9451] Finish chapter 2
1 file changed, 6 insertions(+)
$ git map
-* ceef712d7f (HEAD -> chap2) 2014-04-10 ~ Finish chapter 2
-| * 2c0ad9c59b (fix_typo) 2014-04-10 ~ Fix typo for good!
-| * 615ffa720f 2014-04-10 ~ Fix terrible typo.
-|/
-* beec6f4746 (origin/main, origin/HEAD) 2014-04-10 ~ Make ReflectorImpl use mailboxes <(fix_typo)
+* d4a945118e (HEAD -> chap2) 2014-04-10 ~ Finish chapter 2
+* 59cdb7335b (origin/master, origin/HEAD, fix_typo) 2014-04-10 ~ Refactor data interchange format. <(fix_typo)
+* 34676a3583 2014-04-10 ~ Ensure FS is exited for all not-in-same-page navigations.
+* 7d4784e867 2014-04-10 ~ Add best chapter2 ever!
+* 5d26fec369 2014-04-10 ~ Finish chapter 2
+* df7fefbf06 2014-04-10 ~ Revert 255617, due to it not tracking use of the link doctor page properly.
+* 4b39cda0ac 2014-04-10 ~ Fix terrible typo.
+* 248c5b6fe3 2014-04-10 ~ Temporarily CHECK(trial) in ChromeRenderProcessObserver::OnSetFieldTrialGroup.
+* 8171df8af9 2014-04-10 ~ Remove AMD family check for the flapper crypto accelerator.
+* d6a30d2e56 2014-04-10 ~ Change the Pica load benchmark to listen for the polymer-ready event
+* beec6f4746 (origin/main, master) 2014-04-10 ~ Make ReflectorImpl use mailboxes <(master)
* 41290e02b7 2014-04-10 ~ don't use glibc-specific execinfo.h on uclibc builds
* a76fde7b7b 2014-04-10 ~ [fsp] Add requestUnmount() method together with the request manager.
* 9de7a713b3 2014-04-10 ~ linux_aura: Use system configuration for middle clicking the titlebar.
@@ -1452,16 +1459,22 @@ Mr. Usagi felt that something wasn't right. Shortly after the Domo-Kun left he
began feeling sick.
EOF
$ git commit -am 'beginning of chapter 3'
-[chap3 7d4238a] beginning of chapter 3
+[chap3 d2902ef] beginning of chapter 3
1 file changed, 4 insertions(+)
$ git map
-* 7d4238a1e2 (HEAD -> chap3) 2014-04-10 ~ beginning of chapter 3
-* ceef712d7f (chap2) 2014-04-10 ~ Finish chapter 2
-| * 2c0ad9c59b (fix_typo) 2014-04-10 ~ Fix typo for good!
-| * 615ffa720f 2014-04-10 ~ Fix terrible typo.
-|/
-* beec6f4746 (origin/main, origin/HEAD) 2014-04-10 ~ Make ReflectorImpl use mailboxes <(fix_typo, chap2)
+* d2902efc4d (HEAD -> chap3) 2014-04-10 ~ beginning of chapter 3
+* d4a945118e (chap2) 2014-04-10 ~ Finish chapter 2
+* 59cdb7335b (origin/master, origin/HEAD, fix_typo) 2014-04-10 ~ Refactor data interchange format. <(fix_typo, chap2)
+* 34676a3583 2014-04-10 ~ Ensure FS is exited for all not-in-same-page navigations.
+* 7d4784e867 2014-04-10 ~ Add best chapter2 ever!
+* 5d26fec369 2014-04-10 ~ Finish chapter 2
+* df7fefbf06 2014-04-10 ~ Revert 255617, due to it not tracking use of the link doctor page properly.
+* 4b39cda0ac 2014-04-10 ~ Fix terrible typo.
+* 248c5b6fe3 2014-04-10 ~ Temporarily CHECK(trial) in ChromeRenderProcessObserver::OnSetFieldTrialGroup.
+* 8171df8af9 2014-04-10 ~ Remove AMD family check for the flapper crypto accelerator.
+* d6a30d2e56 2014-04-10 ~ Change the Pica load benchmark to listen for the polymer-ready event
+* beec6f4746 (origin/main, master) 2014-04-10 ~ Make ReflectorImpl use mailboxes <(master)
* 41290e02b7 2014-04-10 ~ don't use glibc-specific execinfo.h on uclibc builds
* a76fde7b7b 2014-04-10 ~ [fsp] Add requestUnmount() method together with the request manager.
* 9de7a713b3 2014-04-10 ~ linux_aura: Use system configuration for middle clicking the titlebar.
@@ -1473,21 +1486,23 @@ EOF
$ git rebase-update
Fetching origin
From https://upstream
- beec6f4..59cdb73 main -> origin/main
-Rebasing: chap2
-Rebasing: fix_typo
-Failed! Attempting to squash fix_typo ... Success!
-Rebasing: chap3
-Reparented chap3 to track origin/main (was tracking chap2)
-Deleted branch fix_typo (was 5d26fec).
-Deleted branch chap2 (was 5d26fec).
+chap2 up-to-date
+fix_typo up-to-date
+Rebasing: master
+chap3 up-to-date
+Deleted branch fix_typo (was 59cdb73).
+Deleted branch master (was 59cdb73).
Running `git gc --auto` - Ctrl-C to abort is OK.
$ gclient sync
... truncated output ...
$ git map
-* 93fe917ad1 (HEAD -> chap3) 2014-04-10 ~ beginning of chapter 3
-* 5d26fec369 (origin/main, origin/HEAD) 2014-04-10 ~ Finish chapter 2
+* d2902efc4d (HEAD -> chap3) 2014-04-10 ~ beginning of chapter 3
+* d4a945118e (chap2) 2014-04-10 ~ Finish chapter 2
+* 59cdb7335b (origin/master, origin/HEAD) 2014-04-10 ~ Refactor data interchange format. <(chap2)
+* 34676a3583 2014-04-10 ~ Ensure FS is exited for all not-in-same-page navigations.
+* 7d4784e867 2014-04-10 ~ Add best chapter2 ever!
+* 5d26fec369 (origin/main) 2014-04-10 ~ Finish chapter 2
* df7fefbf06 2014-04-10 ~ Revert 255617, due to it not tracking use of the link doctor page properly.
* 4b39cda0ac 2014-04-10 ~ Fix terrible typo.
* 248c5b6fe3 2014-04-10 ~ Temporarily CHECK(trial) in ChromeRenderProcessObserver::OnSetFieldTrialGroup.
@@ -1505,60 +1520,34 @@ Running `git gc --auto` - Ctrl-C to abort is OK.
$ git rebase-update
Fetching origin
From https://upstream
- 5d26fec..59cdb73 main -> origin/main
Rebasing: chap2
... lots of output, it's a conflict alright :(...
$ git diff
-diff --cc build/whitespace_file.txt
-index 1293282,f903ea2..0000000
---- a/build/whitespace_file.txt
-+++ b/build/whitespace_file.txt
-@@@ -42,4 -42,5 +42,9 @@@ when the fan was last cleaned
- There was an poignant pause.
-
- CHAPTER 3:
-++<<<<<<< HEAD
- +Hilariousness! This chapter is awesome!
-++=======
-+ Mr. Usagi felt that something wasn't right. Shortly after the Domo-Kun left he
-+ began feeling sick.
-++>>>>>>> 93fe917 (beginning of chapter 3)
$ $EDITOR build/whitespace_file.txt
... /me deletes bad chapter 3 ...
$ git add build/whitespace_file.txt
$ git diff --cached
-diff --git a/build/whitespace_file.txt b/build/whitespace_file.txt
-index 1293282..f903ea2 100644
---- a/build/whitespace_file.txt
-+++ b/build/whitespace_file.txt
-@@ -42,4 +42,5 @@ when the fan was last cleaned.
- There was an poignant pause.
-
- CHAPTER 3:
--Hilariousness! This chapter is awesome!
-+Mr. Usagi felt that something wasn't right. Shortly after the Domo-Kun left he
-+began feeling sick.
$ git rebase --continue
-[detached HEAD 1cb4f5b] beginning of chapter 3
- 1 file changed, 2 insertions(+), 1 deletion(-)
$ git rebase-update
Fetching origin
-chap3 up-to-date
+chap2 up-to-date
+chap3 up-to-date
Running `git gc --auto` - Ctrl-C to abort is OK.
$ gclient sync
... truncated output ...
$ git map
-* 1cb4f5b622 (HEAD -> chap3) 2014-04-10 ~ beginning of chapter 3
-* 59cdb7335b (origin/main, origin/HEAD) 2014-04-10 ~ Refactor data interchange format.
+* d2902efc4d (HEAD -> chap3) 2014-04-10 ~ beginning of chapter 3
+* d4a945118e (chap2) 2014-04-10 ~ Finish chapter 2
+* 59cdb7335b (origin/master, origin/HEAD) 2014-04-10 ~ Refactor data interchange format. <(chap2)
* 34676a3583 2014-04-10 ~ Ensure FS is exited for all not-in-same-page navigations.
* 7d4784e867 2014-04-10 ~ Add best chapter2 ever!
-* 5d26fec369 2014-04-10 ~ Finish chapter 2
+* 5d26fec369 (origin/main) 2014-04-10 ~ Finish chapter 2
* df7fefbf06 2014-04-10 ~ Revert 255617, due to it not tracking use of the link doctor page properly.
* 4b39cda0ac 2014-04-10 ~ Fix terrible typo.
* 248c5b6fe3 2014-04-10 ~ Temporarily CHECK(trial) in ChromeRenderProcessObserver::OnSetFieldTrialGroup.
@@ -1638,7 +1627,7 @@ by checking out the