Skip to content

Commit ca8ed44

Browse files
airbornemihirgitster
authored andcommitted
doc: fix a typo and clarify a sentence
I noticed that git-merge-base was unlikely to actually be a git command, and tried it in my shell. Seeing that it doesn't work, I cleaned up two places in the docs where it appears. Signed-off-by: Mihir Mehta <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 268fbcd commit ca8ed44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/git-diff.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ two blob objects, or changes between two files on disk.
7272
This form is to view the changes on the branch containing
7373
and up to the second <commit>, starting at a common ancestor
7474
of both <commit>. "git diff A\...B" is equivalent to
75-
"git diff $(git-merge-base A B) B". You can omit any one
75+
"git diff $(git merge-base A B) B". You can omit any one
7676
of <commit>, which has the same effect as using HEAD instead.
7777

78-
Just in case if you are doing something exotic, it should be
78+
Just in case you are doing something exotic, it should be
7979
noted that all of the <commit> in the above description, except
8080
in the last two forms that use ".." notations, can be any
8181
<tree>.

Documentation/howto/update-hook-example.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ case "$1" in
8080
info "The branch '$1' is new..."
8181
else
8282
# updating -- make sure it is a fast-forward
83-
mb=$(git-merge-base "$2" "$3")
83+
mb=$(git merge-base "$2" "$3")
8484
case "$mb,$2" in
8585
"$2,$mb") info "Update is fast-forward" ;;
8686
*) noff=y; info "This is not a fast-forward update.";;

0 commit comments

Comments
 (0)