Skip to content

Commit 89ce391

Browse files
fingolfingitster
authored andcommitted
Make <refname> documentation more consistent.
Formerly, the documentation for <refname> would occasionally say <name> instead of <refname>. Now it uniformly uses <refname>. Signed-off-by: Max Horn <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3b942e9 commit 89ce391

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Documentation/revisions.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ blobs contained in a commit.
2424
object referenced by 'refs/heads/master'. If you
2525
happen to have both 'heads/master' and 'tags/master', you can
2626
explicitly say 'heads/master' to tell git which one you mean.
27-
When ambiguous, a '<name>' is disambiguated by taking the
27+
When ambiguous, a '<refname>' is disambiguated by taking the
2828
first match in the following rules:
2929

30-
. If '$GIT_DIR/<name>' exists, that is what you mean (this is usually
30+
. If '$GIT_DIR/<refname>' exists, that is what you mean (this is usually
3131
useful only for 'HEAD', 'FETCH_HEAD', 'ORIG_HEAD', 'MERGE_HEAD'
3232
and 'CHERRY_PICK_HEAD');
3333

34-
. otherwise, 'refs/<name>' if it exists;
34+
. otherwise, 'refs/<refname>' if it exists;
3535

3636
. otherwise, 'refs/tags/<refname>' if it exists;
3737

38-
. otherwise, 'refs/heads/<name>' if it exists;
38+
. otherwise, 'refs/heads/<refname>' if it exists;
3939

40-
. otherwise, 'refs/remotes/<name>' if it exists;
40+
. otherwise, 'refs/remotes/<refname>' if it exists;
4141

42-
. otherwise, 'refs/remotes/<name>/HEAD' if it exists.
42+
. otherwise, 'refs/remotes/<refname>/HEAD' if it exists.
4343
+
4444
'HEAD' names the commit on which you based the changes in the working tree.
4545
'FETCH_HEAD' records the branch which you fetched from a remote repository

0 commit comments

Comments
 (0)