diff options
author | Rene Scharfe <rene.scharfe@lsrfire.ath.cx> | 2006-10-24 01:01:57 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-23 20:25:32 -0700 |
commit | e827633a5d7d627eb1170b2d0c71e944d0d56faf (patch) | |
tree | 059f497ca4651fef41e9a8063fea75144944e85f /git.c | |
parent | 1259404c7e5cd88b7f6692986469cd20cbfacdad (diff) | |
download | git-e827633a5d7d627eb1170b2d0c71e944d0d56faf.tar.gz git-e827633a5d7d627eb1170b2d0c71e944d0d56faf.tar.xz |
Built-in cherry
This replaces the shell script git-cherry with a version written in C.
The behaviour of the new version differs from the original in two
points: it has no long help any more, and it is handling the (optional)
third parameter a bit differently. Basically, it does the equivalent
of
ours=`git-rev-list $ours ^$limit ^$upstream`
instead of
ours=`git-rev-list $ours ^$limit`
Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git.c')
-rw-r--r-- | git.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -224,6 +224,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp) { "cat-file", cmd_cat_file, RUN_SETUP }, { "checkout-index", cmd_checkout_index, RUN_SETUP }, { "check-ref-format", cmd_check_ref_format }, + { "cherry", cmd_cherry, RUN_SETUP }, { "commit-tree", cmd_commit_tree, RUN_SETUP }, { "count-objects", cmd_count_objects, RUN_SETUP }, { "diff", cmd_diff, RUN_SETUP | USE_PAGER }, |