summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorCarlos Rica <jasampler@gmail.com>2007-07-19 23:42:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-20 08:27:25 (GMT)
commit62e09ce998dd7f6b844deb650101c743a5c4ce50 (patch)
tree52c07796bf8f749e5270f2b421fc74daaed3c492 /git.c
parent69a9b41c15f25e1e91df5d9c4d5e3d56706f8f0e (diff)
downloadgit-62e09ce998dd7f6b844deb650101c743a5c4ce50.zip
git-62e09ce998dd7f6b844deb650101c743a5c4ce50.tar.gz
git-62e09ce998dd7f6b844deb650101c743a5c4ce50.tar.bz2
Make git tag a builtin.
This replaces the script "git-tag.sh" with "builtin-tag.c". The existing test suite for "git tag" guarantees the compatibility with the features provided by the script version. There are some minor changes in the behaviour of "git tag" here: "git tag -v" now can get more than one tag to verify, like "git tag -d" does, "git tag" with no arguments prints all tags, more like "git branch" does, and "git tag -n" also prints all tags with annotations (without needing -l). Tests and documentation were also updated to reflect these changes. The program is currently calling the script "git verify-tag" for verify. This can be changed porting it to C and calling its functions directly from builtin-tag.c. Signed-off-by: Carlos Rica <jasampler@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git.c')
-rw-r--r--git.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.c b/git.c
index a647f9c..eb9e5ca 100644
--- a/git.c
+++ b/git.c
@@ -363,6 +363,7 @@ static void handle_internal_command(int argc, const char **argv)
{ "show", cmd_show, RUN_SETUP | USE_PAGER },
{ "stripspace", cmd_stripspace },
{ "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
+ { "tag", cmd_tag, RUN_SETUP },
{ "tar-tree", cmd_tar_tree },
{ "unpack-objects", cmd_unpack_objects, RUN_SETUP },
{ "update-index", cmd_update_index, RUN_SETUP },