diff options
author | Junio C Hamano <junkio@cox.net> | 2006-09-15 13:30:02 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-09-16 10:22:02 -0700 |
commit | 9f613ddd21cbd05bfc139d9b1551b5780aa171f6 (patch) | |
tree | 047f4e4562a81d7719c5c33b56aefb1a22f9ec70 /builtin.h | |
parent | e7676d2f6454c9c99e600ee2ce3c7205a9fcfb5f (diff) | |
download | git-9f613ddd21cbd05bfc139d9b1551b5780aa171f6.tar.gz git-9f613ddd21cbd05bfc139d9b1551b5780aa171f6.tar.xz |
Add git-for-each-ref: helper for language bindings
This adds a new command, git-for-each-ref. You can have it iterate
over refs and have it output various aspects of the objects they
refer to.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin.h')
-rw-r--r-- | builtin.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -25,6 +25,7 @@ extern int cmd_diff(int argc, const char **argv, const char *prefix); extern int cmd_diff_stages(int argc, const char **argv, const char *prefix); extern int cmd_diff_tree(int argc, const char **argv, const char *prefix); extern int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix); +extern int cmd_for_each_ref(int argc, const char **argv, const char *prefix); extern int cmd_format_patch(int argc, const char **argv, const char *prefix); extern int cmd_get_tar_commit_id(int argc, const char **argv, const char *prefix); extern int cmd_grep(int argc, const char **argv, const char *prefix); @@ -46,8 +47,8 @@ extern int cmd_repo_config(int argc, const char **argv, const char *prefix); extern int cmd_rev_list(int argc, const char **argv, const char *prefix); extern int cmd_rev_parse(int argc, const char **argv, const char *prefix); extern int cmd_rm(int argc, const char **argv, const char *prefix); -extern int cmd_show_branch(int argc, const char **argv, const char *prefix); extern int cmd_show(int argc, const char **argv, const char *prefix); +extern int cmd_show_branch(int argc, const char **argv, const char *prefix); extern int cmd_stripspace(int argc, const char **argv, const char *prefix); extern int cmd_symbolic_ref(int argc, const char **argv, const char *prefix); extern int cmd_tar_tree(int argc, const char **argv, const char *prefix); |