Skip to contentSkip to conversation

user-manual.txt: fix a few mistakes

PATCH In review Sergei Organov 3 participants 10 messages Jun 15, 2016 – Aug 11, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 user-manual.txt: fix a few mistakes

---
 Documentation/user-manual.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
Documentation/user-manual.txt +4 -4
index d99adc6..a169ef0 100644
@@ -475,7 +475,7 @@ Bisecting: 3537 revisions left to test after this
 If you run "git branch" at this point, you'll see that git has
 temporarily moved you to a new branch named "bisect".  This branch
 points to a commit (with commit id 65934...) that is reachable from
-v2.6.19 but not from v2.6.18.  Compile and test it, and see whether
+"master" but not from v2.6.18.  Compile and test it, and see whether
 it crashes.  Assume it does crash.  Then:
 
 -------------------------------------------------
@@ -1367,7 +1367,7 @@ If you make a commit that you later wish you hadn't, there are two
 fundamentally different ways to fix the problem:
 
 	1. You can create a new commit that undoes whatever was done
-	by the previous commit.  This is the correct thing if your
+	by the old commit.  This is the correct thing if your
 	mistake has already been made public.
 
 	2. You can go back and modify the old commit.  You should
@@ -1567,8 +1567,8 @@ old history using, for example,
 $ git log master@{1}
 -------------------------------------------------
 
-This lists the commits reachable from the previous version of the head.
-This syntax can be used to with any git command that accepts a commit,
+This lists the commits reachable from the previous version of the branch.
+This syntax can be used with any git command that accepts a commit,
 not just with git log.  Some other examples:
 
 -------------------------------------------------
Signature · 1 line
1.5.3.4
#1 lore raw
Quoted 29 lines · Sergei Organov
---
 Documentation/user-manual.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
Documentation/user-manual.txt +2 -2
index d99adc6..a169ef0 100644
@@ -475,7 +475,7 @@ Bisecting: 3537 revisions left to test after this
 If you run "git branch" at this point, you'll see that git has
 temporarily moved you to a new branch named "bisect".  This branch
 points to a commit (with commit id 65934...) that is reachable from
-v2.6.19 but not from v2.6.18.  Compile and test it, and see whether
+"master" but not from v2.6.18.  Compile and test it, and see whether
 it crashes.  Assume it does crash.  Then:
 
 -------------------------------------------------
@@ -1367,7 +1367,7 @@ If you make a commit that you later wish you hadn't, there are two
 fundamentally different ways to fix the problem:
 
 	1. You can create a new commit that undoes whatever was done
-	by the previous commit.  This is the correct thing if your
+	by the old commit.  This is the correct thing if your
 	mistake has already been made public.
 
 	2. You can go back and modify the old commit.  You should

Documentation/user-manual.txt old history using, for example, · line 1571

Quoted 5 lines
Documentation/user-manual.txt +0 -2
@@ -1567,8 +1567,8 @@ old history using, for example,
 $ git log master@{1}
 -------------------------------------------------
 
-This lists the commits reachable from the previous version of the head.
-This syntax can be used to with any git command that accepts a commit,

I actually prefer "head" here. On something like:

		 A--B--C
		/
	o--o--o
		\
		 o--o--o

The term "branch" could be used to refer to the whole line of development consisting of A, B, and C. The term "head", on the other hand, refers to either C or a ref that points to it. We also use the terms "branch head" or just "branch" for that case, but I think "head" is more precise.

Documentation/user-manual.txt old history using, for example, · line 1572

Quoted 3 lines
Documentation/user-manual.txt +2 -0
+This lists the commits reachable from the previous version of the branch.
+This syntax can be used with any git command that accepts a commit,
 not just with git log.  Some other examples:

(Otherwise looks fine, thanks!)

--b.

#2 lore raw
Quoted 15 lines · J. Bruce Fields

I actually prefer "head" here. On something like:

		 A--B--C
		/
	o--o--o
		\
		 o--o--o

The term "branch" could be used to refer to the whole line of development consisting of A, B, and C. The term "head", on the other hand, refers to either C or a ref that points to it. We also use the terms "branch head" or just "branch" for that case, but I think "head" is more precise.

Quoted 5 lines

Review

Quoted 3 lines
(quoted diff) +2 -0
+This lists the commits reachable from the previous version of the branch.
+This syntax can be used with any git command that accepts a commit,
 not just with git log.  Some other examples:

(Otherwise looks fine, thanks!)

Oops, I think I skipped the hunk #2 and applied hunk #3. Will fix-up with:

-- >8 --
From: Sergei Organov <[email protected]>
Subject: user-manual: minor rewording for clarity.

Junio screwed up when applying the previous round of the patch; rewording from "previous" to "old" does make the description clearer.

Also revert the rewording from head to branch. The description is talking about the branch's tip commit and using the word head is clearer.

Based on input from Sergei and Bruce.

---
 Documentation/user-manual.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Documentation/user-manual.txt +2 -2
index 60e1385..c7cfbbc 100644
@@ -1367,7 +1367,7 @@ If you make a commit that you later wish you hadn't, there are two
 fundamentally different ways to fix the problem:
 
 	1. You can create a new commit that undoes whatever was done
-	by the previous commit.  This is the correct thing if your
+	by the old commit.  This is the correct thing if your
 	mistake has already been made public.
 
 	2. You can go back and modify the old commit.  You should
@@ -1567,7 +1567,7 @@ old history using, for example,
 $ git log master@{1}
 -------------------------------------------------
 
-This lists the commits reachable from the previous version of the branch.
+This lists the commits reachable from the previous version of the head.
 This syntax can be used with any git command that accepts a commit,
 not just with git log.  Some other examples:
 
Signature · 1 line
1.5.3.5.1746.g62954
#3 lore raw
Quoted 17 lines · Junio C Hamano
Quoted 15 lines · J. Bruce Fields

I actually prefer "head" here. On something like:

		 A--B--C
		/
	o--o--o
		\
		 o--o--o

The term "branch" could be used to refer to the whole line of development consisting of A, B, and C. The term "head", on the other hand, refers to either C or a ref that points to it. We also use the terms "branch head" or just "branch" for that case, but I think "head" is more precise.

Quoted 8 lines
Quoted 5 lines

Review

Quoted 3 lines
(quoted diff) +2 -0
+This lists the commits reachable from the previous version of the branch.
+This syntax can be used with any git command that accepts a commit,
 not just with git log.  Some other examples:

(Otherwise looks fine, thanks!)

Oops, I think I skipped the hunk #2 and applied hunk #3. Will fix-up with:

OK, thanks Junio!

--b.

#4 lore raw
In reply to J. Bruce Fields
Quoted 45 lines · J. Bruce Fields
Quoted 29 lines · Sergei Organov
---
 Documentation/user-manual.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
Documentation/user-manual.txt +2 -2
index d99adc6..a169ef0 100644
@@ -475,7 +475,7 @@ Bisecting: 3537 revisions left to test after this
 If you run "git branch" at this point, you'll see that git has
 temporarily moved you to a new branch named "bisect".  This branch
 points to a commit (with commit id 65934...) that is reachable from
-v2.6.19 but not from v2.6.18.  Compile and test it, and see whether
+"master" but not from v2.6.18.  Compile and test it, and see whether
 it crashes.  Assume it does crash.  Then:
 
 -------------------------------------------------
@@ -1367,7 +1367,7 @@ If you make a commit that you later wish you hadn't, there are two
 fundamentally different ways to fix the problem:
 
 	1. You can create a new commit that undoes whatever was done
-	by the previous commit.  This is the correct thing if your
+	by the old commit.  This is the correct thing if your
 	mistake has already been made public.
 
 	2. You can go back and modify the old commit.  You should

Documentation/user-manual.txt old history using, for example, · line 1571

Quoted 5 lines
Documentation/user-manual.txt +0 -2
@@ -1567,8 +1567,8 @@ old history using, for example,
 $ git log master@{1}
 -------------------------------------------------
 
-This lists the commits reachable from the previous version of the head.
-This syntax can be used to with any git command that accepts a commit,

I actually prefer "head" here. On something like:

		 A--B--C
		/
	o--o--o
		\
		 o--o--o
Quoted 5 lines

The term "branch" could be used to refer to the whole line of development consisting of A, B, and C. The term "head", on the other hand, refers to either C or a ref that points to it. We also use the terms "branch head" or just "branch" for that case, but I think "head" is more precise.

Then I'd suggest to be precise here, e.g.:

"This lists the commits reachable from the previous version of the "master" branch head."

The real reason for me to replacing "head" with "branch" in the first place was that a few lines below there is example for HEAD, and I wanted to make it more obvious that those is entirely different.

Signature · 1 line
Sergei.
#5 lore raw
Quoted 53 lines · Sergei Organov
Quoted 45 lines · J. Bruce Fields
Quoted 29 lines · Sergei Organov
---
 Documentation/user-manual.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
Documentation/user-manual.txt +2 -2
index d99adc6..a169ef0 100644
@@ -475,7 +475,7 @@ Bisecting: 3537 revisions left to test after this
 If you run "git branch" at this point, you'll see that git has
 temporarily moved you to a new branch named "bisect".  This branch
 points to a commit (with commit id 65934...) that is reachable from
-v2.6.19 but not from v2.6.18.  Compile and test it, and see whether
+"master" but not from v2.6.18.  Compile and test it, and see whether
 it crashes.  Assume it does crash.  Then:
 
 -------------------------------------------------
@@ -1367,7 +1367,7 @@ If you make a commit that you later wish you hadn't, there are two
 fundamentally different ways to fix the problem:
 
 	1. You can create a new commit that undoes whatever was done
-	by the previous commit.  This is the correct thing if your
+	by the old commit.  This is the correct thing if your
 	mistake has already been made public.
 
 	2. You can go back and modify the old commit.  You should

Documentation/user-manual.txt old history using, for example, · line 1571

Quoted 5 lines
Documentation/user-manual.txt +0 -2
@@ -1567,8 +1567,8 @@ old history using, for example,
 $ git log master@{1}
 -------------------------------------------------
 
-This lists the commits reachable from the previous version of the head.
-This syntax can be used to with any git command that accepts a commit,

I actually prefer "head" here. On something like:

		 A--B--C
		/
	o--o--o
		\
		 o--o--o
Quoted 5 lines

The term "branch" could be used to refer to the whole line of development consisting of A, B, and C. The term "head", on the other hand, refers to either C or a ref that points to it. We also use the terms "branch head" or just "branch" for that case, but I think "head" is more precise.

Quoted 4 lines

Then I'd suggest to be precise here, e.g.:

"This lists the commits reachable from the previous version of the "master" branch head."

That sounds sensible to me, sure.

Quoted 4 lines

The real reason for me to replacing "head" with "branch" in the first place was that a few lines below there is example for HEAD, and I wanted to make it more obvious that those is entirely different.

OK, sure. Thanks for the thoughtful editing!

--b.

#6 lore raw
Quoted 2 lines · J. Bruce Fields
Quoted 1 line · Sergei Organov

"J. Bruce Fields" <[email protected]> writes:

[...]

Quoted 22 lines
Quoted 22 lines
Quoted 21 lines

Documentation/user-manual.txt old history using, for example, · line 1571

Quoted 6 lines
Documentation/user-manual.txt +0 -2
@@ -1567,8 +1567,8 @@ old history using, for example,
 $ git log master@{1}
 -------------------------------------------------
 
-This lists the commits reachable from the previous version of the head.
-This syntax can be used to with any git command that accepts a commit,

I actually prefer "head" here. On something like:

		 A--B--C
		/
	o--o--o
		\
		 o--o--o

The term "branch" could be used to refer to the whole line of development consisting of A, B, and C. The term "head", on the other hand, refers to either C or a ref that points to it. We also use the terms "branch head" or just "branch" for that case, but I think "head" is more precise.

Quoted 6 lines
Quoted 4 lines

Then I'd suggest to be precise here, e.g.:

"This lists the commits reachable from the previous version of the "master" branch head."

That sounds sensible to me, sure.

OK, I've just submitted patch for that.

Signature · 1 line
Sergei.
#7 lore raw
In reply to Sergei Organov
Quoted 10 lines · Sergei Organov
---
 Documentation/user-manual.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
Documentation/user-manual.txt +0 -0
index d99adc6..a169ef0 100644

Documentation/user-manual.txt Bisecting: 3537 revisions left to test after this · line 481

Quoted 8 lines
Documentation/user-manual.txt +1 -1
@@ -475,7 +475,7 @@ Bisecting: 3537 revisions left to test after this
 If you run "git branch" at this point, you'll see that git has
 temporarily moved you to a new branch named "bisect".  This branch
 points to a commit (with commit id 65934...) that is reachable from
-v2.6.19 but not from v2.6.18.  Compile and test it, and see whether
+"master" but not from v2.6.18.  Compile and test it, and see whether
 it crashes.  Assume it does crash.  Then:
 
 -------------------------------------------------

Thanks.

This hunk and the last hunk I do not have any problem with.

Documentation/user-manual.txt If you make a commit that you later wish you hadn't, there are two · line 1373

Quoted 9 lines
Documentation/user-manual.txt +1 -1
@@ -1367,7 +1367,7 @@ If you make a commit that you later wish you hadn't, there are two
 fundamentally different ways to fix the problem:
 
 	1. You can create a new commit that undoes whatever was done
-	by the previous commit.  This is the correct thing if your
+	by the old commit.  This is the correct thing if your
 	mistake has already been made public.
 
 	2. You can go back and modify the old commit.  You should

But is this an improvement or just a churn?

Quoted 11 lines
Documentation/user-manual.txt +2 -2
@@ -1567,8 +1567,8 @@ old history using, for example,
 $ git log master@{1}
 -------------------------------------------------
 
-This lists the commits reachable from the previous version of the head.
-This syntax can be used to with any git command that accepts a commit,
+This lists the commits reachable from the previous version of the branch.
+This syntax can be used with any git command that accepts a commit,
 not just with git log.  Some other examples:
 
 -------------------------------------------------
#8 lore raw
Quoted 28 lines · Junio C Hamano
Quoted 10 lines · Sergei Organov
---
 Documentation/user-manual.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
Documentation/user-manual.txt +0 -0
index d99adc6..a169ef0 100644

Documentation/user-manual.txt Bisecting: 3537 revisions left to test after this · line 481

Quoted 8 lines
Documentation/user-manual.txt +1 -1
@@ -475,7 +475,7 @@ Bisecting: 3537 revisions left to test after this
 If you run "git branch" at this point, you'll see that git has
 temporarily moved you to a new branch named "bisect".  This branch
 points to a commit (with commit id 65934...) that is reachable from
-v2.6.19 but not from v2.6.18.  Compile and test it, and see whether
+"master" but not from v2.6.18.  Compile and test it, and see whether
 it crashes.  Assume it does crash.  Then:
 
 -------------------------------------------------

Thanks.

This hunk and the last hunk I do not have any problem with.

Quoted 3 lines
Documentation/user-manual.txt +0 -0
@@ -1367,7 +1367,7 @@ If you make a commit that you later wish you hadn't, there are two
 fundamentally different ways to fix the problem:
 
Quoted 8 lines

Documentation/user-manual.txt If you make a commit that you later wish you hadn't, there are two · line 1373

Quoted 6 lines
Documentation/user-manual.txt +1 -1
 	1. You can create a new commit that undoes whatever was done
-	by the previous commit.  This is the correct thing if your
+	by the old commit.  This is the correct thing if your
 	mistake has already been made public.
 
 	2. You can go back and modify the old commit.  You should

But is this an improvement or just a churn?

I believe this is an improvement. It's more precise. With this change it's crystal clear that both (1) and (2) above mean the same commit by calling it "the old commit". Before the change, when I read this the first time, I've got the term "previous" here literally, i.e., as the last commit made, and I thought that if the commit in question is the last one, I should do (1), otherwise -- (2). This confusion admittedly vanished rather quickly, but it did happen.

If I didn't manage to express my first impression clearly (English is not my mothers' tongue), try to read this to get similar impression:

1. You can create a new commit that undoes whatever was done by the previous commit.

2. You can go back and modify the old commit.

Do you see the problem?

Signature · 1 line
Sergei.
#9 lore raw
Quoted 39 lines · Sergei Organov
Quoted 28 lines · Junio C Hamano
Quoted 10 lines · Sergei Organov
---
 Documentation/user-manual.txt |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
Documentation/user-manual.txt +0 -0
index d99adc6..a169ef0 100644

Documentation/user-manual.txt Bisecting: 3537 revisions left to test after this · line 481

Quoted 8 lines
Documentation/user-manual.txt +1 -1
@@ -475,7 +475,7 @@ Bisecting: 3537 revisions left to test after this
 If you run "git branch" at this point, you'll see that git has
 temporarily moved you to a new branch named "bisect".  This branch
 points to a commit (with commit id 65934...) that is reachable from
-v2.6.19 but not from v2.6.18.  Compile and test it, and see whether
+"master" but not from v2.6.18.  Compile and test it, and see whether
 it crashes.  Assume it does crash.  Then:
 
 -------------------------------------------------

Thanks.

This hunk and the last hunk I do not have any problem with.

Quoted 3 lines
Documentation/user-manual.txt +0 -0
@@ -1367,7 +1367,7 @@ If you make a commit that you later wish you hadn't, there are two
 fundamentally different ways to fix the problem:
 
Quoted 8 lines

Documentation/user-manual.txt If you make a commit that you later wish you hadn't, there are two · line 1373

Quoted 6 lines
Documentation/user-manual.txt +1 -1
 	1. You can create a new commit that undoes whatever was done
-	by the previous commit.  This is the correct thing if your
+	by the old commit.  This is the correct thing if your
 	mistake has already been made public.
 
 	2. You can go back and modify the old commit.  You should

But is this an improvement or just a churn?

Quoted 7 lines

I believe this is an improvement. It's more precise. With this change it's crystal clear that both (1) and (2) above mean the same commit by calling it "the old commit". Before the change, when I read this the first time, I've got the term "previous" here literally, i.e., as the last commit made, and I thought that if the commit in question is the last one, I should do (1), otherwise -- (2). This confusion admittedly vanished rather quickly, but it did happen.

I think it's a good fix, yes, thanks.--b.