summaryrefslogtreecommitdiff
path: root/sha1_name.c
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2010-09-24 16:43:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-09-27 17:54:52 (GMT)
commit95ad6d2de1f762f20edb52d139d3cc19529a581a (patch)
tree088420388b9666595c66bdcb4561ec75023d0728 /sha1_name.c
parent3695dc0af1bb5871430c028222d1af0a86720e62 (diff)
downloadgit-95ad6d2de1f762f20edb52d139d3cc19529a581a.zip
git-95ad6d2de1f762f20edb52d139d3cc19529a581a.tar.gz
git-95ad6d2de1f762f20edb52d139d3cc19529a581a.tar.bz2
update comment and documentation for :/foo syntax
The documentation in revisions.txt did not match the implementation, and the comment in sha1_name.c was incomplete. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1_name.c')
-rw-r--r--sha1_name.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sha1_name.c b/sha1_name.c
index 7b7e617..484081d 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -1062,6 +1062,7 @@ int get_sha1_with_context_1(const char *name, unsigned char *sha1,
/* sha1:path --> object name of path in ent sha1
* :path -> object name of path in index
* :[0-3]:path -> object name of path in index at stage
+ * :/foo -> recent commit matching foo
*/
if (name[0] == ':') {
int stage = 0;