aboutsummaryrefslogtreecommitdiffstats
path: root/git-mktag.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-04-28 16:42:27 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-28 16:42:27 -0700
commit40469ee9c6a6f4c85df5520ef719bba3d38a64f0 (patch)
treedc0b54b68c90574a689fef23c5ab26d165f3ee2e /git-mktag.c
parent[PATCH] add short options to show-files (diff)
downloadgit-40469ee9c6a6f4c85df5520ef719bba3d38a64f0.tar.gz
git-40469ee9c6a6f4c85df5520ef719bba3d38a64f0.zip
[PATCH] Rename and extend read_tree_with_tree_or_commit_sha1
This patch renames read_tree_with_tree_or_commit_sha1() to read_object_with_reference() and extends it to automatically dereference not just "commit" objects but "tag" objects. With this patch, you can say e.g.: ls-tree $tag read-tree -m $(merge-base $tag $HEAD) $tag $HEAD diff-cache $tag diff-tree $tag $HEAD Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'git-mktag.c')
-rw-r--r--git-mktag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-mktag.c b/git-mktag.c
index 5d2830dc2b..8605802d38 100644
--- a/git-mktag.c
+++ b/git-mktag.c
@@ -114,7 +114,7 @@ int main(int argc, char **argv)
// Read the signature
size = read(0, buffer, MAXSIZE);
- // Verify it for some basic sanity: it needs to start with "object <sha1>\ntag "
+ // Verify it for some basic sanity: it needs to start with "object <sha1>\ntype "
if (verify_tag(buffer, size) < 0)
die("invalid tag signature file");