summaryrefslogtreecommitdiff
path: root/builtin.h
diff options
context:
space:
mode:
authorRene Scharfe <rene.scharfe@lsrfire.ath.cx>2006-10-23 23:01:57 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-10-24 03:25:32 (GMT)
commite827633a5d7d627eb1170b2d0c71e944d0d56faf (patch)
tree059f497ca4651fef41e9a8063fea75144944e85f /builtin.h
parent1259404c7e5cd88b7f6692986469cd20cbfacdad (diff)
downloadgit-e827633a5d7d627eb1170b2d0c71e944d0d56faf.zip
git-e827633a5d7d627eb1170b2d0c71e944d0d56faf.tar.gz
git-e827633a5d7d627eb1170b2d0c71e944d0d56faf.tar.bz2
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 'builtin.h')
-rw-r--r--builtin.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin.h b/builtin.h
index f71b962..285d98f 100644
--- a/builtin.h
+++ b/builtin.h
@@ -19,6 +19,7 @@ extern int cmd_archive(int argc, const char **argv, const char *prefix);
extern int cmd_cat_file(int argc, const char **argv, const char *prefix);
extern int cmd_checkout_index(int argc, const char **argv, const char *prefix);
extern int cmd_check_ref_format(int argc, const char **argv, const char *prefix);
+extern int cmd_cherry(int argc, const char **argv, const char *prefix);
extern int cmd_commit_tree(int argc, const char **argv, const char *prefix);
extern int cmd_count_objects(int argc, const char **argv, const char *prefix);
extern int cmd_diff_files(int argc, const char **argv, const char *prefix);