summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-09-15 20:30:02 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-09-16 17:22:02 (GMT)
commit9f613ddd21cbd05bfc139d9b1551b5780aa171f6 (patch)
tree047f4e4562a81d7719c5c33b56aefb1a22f9ec70 /git.c
parente7676d2f6454c9c99e600ee2ce3c7205a9fcfb5f (diff)
downloadgit-9f613ddd21cbd05bfc139d9b1551b5780aa171f6.zip
git-9f613ddd21cbd05bfc139d9b1551b5780aa171f6.tar.gz
git-9f613ddd21cbd05bfc139d9b1551b5780aa171f6.tar.bz2
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 'git.c')
-rw-r--r--git.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/git.c b/git.c
index 8c182a5..10db27b 100644
--- a/git.c
+++ b/git.c
@@ -231,6 +231,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
{ "diff-stages", cmd_diff_stages, RUN_SETUP },
{ "diff-tree", cmd_diff_tree, RUN_SETUP },
{ "fmt-merge-msg", cmd_fmt_merge_msg, RUN_SETUP },
+ { "for-each-ref", cmd_for_each_ref, RUN_SETUP },
{ "format-patch", cmd_format_patch, RUN_SETUP },
{ "get-tar-commit-id", cmd_get_tar_commit_id },
{ "grep", cmd_grep, RUN_SETUP },