Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Make <refname> documentation more consistent.
author
Max Horn
<max@quendi.de>
Fri, 6 Jul 2012 00:01:29 +0000
(
02:01
+0200)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 6 Jul 2012 06:59:30 +0000
(23:59 -0700)
Formerly, the documentation for <refname> would occasionally say
<name> instead of <refname>. Now it uniformly uses <refname>.
Signed-off-by: Max Horn <max@quendi.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/revisions.txt
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
3b942e9
)
diff --git
a/Documentation/revisions.txt
b/Documentation/revisions.txt
index 1725661837ad666dc1a06b19162a43f10fe6e13a..f4f6f281a0364cf4fe7468332f226578a015ba8e 100644
(file)
--- a/
Documentation/revisions.txt
+++ b/
Documentation/revisions.txt
@@
-24,22
+24,22
@@
blobs contained in a commit.
object referenced by 'refs/heads/master'. If you
happen to have both 'heads/master' and 'tags/master', you can
explicitly say 'heads/master' to tell git which one you mean.
object referenced by 'refs/heads/master'. If you
happen to have both 'heads/master' and 'tags/master', you can
explicitly say 'heads/master' to tell git which one you mean.
- When ambiguous, a '<name>' is disambiguated by taking the
+ When ambiguous, a '<
ref
name>' is disambiguated by taking the
first match in the following rules:
first match in the following rules:
- . If '$GIT_DIR/<name>' exists, that is what you mean (this is usually
+ . If '$GIT_DIR/<
ref
name>' exists, that is what you mean (this is usually
useful only for 'HEAD', 'FETCH_HEAD', 'ORIG_HEAD', 'MERGE_HEAD'
and 'CHERRY_PICK_HEAD');
useful only for 'HEAD', 'FETCH_HEAD', 'ORIG_HEAD', 'MERGE_HEAD'
and 'CHERRY_PICK_HEAD');
- . otherwise, 'refs/<name>' if it exists;
+ . otherwise, 'refs/<
ref
name>' if it exists;
. otherwise, 'refs/tags/<refname>' if it exists;
. otherwise, 'refs/tags/<refname>' if it exists;
- . otherwise, 'refs/heads/<name>' if it exists;
+ . otherwise, 'refs/heads/<
ref
name>' if it exists;
- . otherwise, 'refs/remotes/<name>' if it exists;
+ . otherwise, 'refs/remotes/<
ref
name>' if it exists;
- . otherwise, 'refs/remotes/<name>/HEAD' if it exists.
+ . otherwise, 'refs/remotes/<
ref
name>/HEAD' if it exists.
+
'HEAD' names the commit on which you based the changes in the working tree.
'FETCH_HEAD' records the branch which you fetched from a remote repository
+
'HEAD' names the commit on which you based the changes in the working tree.
'FETCH_HEAD' records the branch which you fetched from a remote repository