summaryrefslogtreecommitdiff
path: root/git.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2006-09-08 04:05:34 -0400
committerJunio C Hamano <junkio@cox.net>2006-09-08 16:46:35 -0700
commitc91f0d92efb36d7b349f586cafafaf0e6ac3f5b2 (patch)
tree9f328dd9bbc033e3c3d50a43d0a08ebfe6bd0d79 /git.c
parent7c92fe0eaa4fb89e27fa3617b9ae52f20b511573 (diff)
downloadgit-c91f0d92efb36d7b349f586cafafaf0e6ac3f5b2.tar.gz
git-commit.sh: convert run_status to a C builtin
This creates a new git-runstatus which should do roughly the same thing as the run_status function from git-commit.sh. Except for color support, the main focus has been to keep the output identical, so that it can be verified as correct and then used as a C platform for other improvements to the status printing code. Signed-off-by: Jeff King <peff@peff.net> 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 335f405c20..495b39ab99 100644
--- a/git.c
+++ b/git.c
@@ -252,6 +252,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
{ "rev-list", cmd_rev_list, RUN_SETUP },
{ "rev-parse", cmd_rev_parse, RUN_SETUP },
{ "rm", cmd_rm, RUN_SETUP },
+ { "runstatus", cmd_runstatus, RUN_SETUP },
{ "show-branch", cmd_show_branch, RUN_SETUP },
{ "show", cmd_show, RUN_SETUP | USE_PAGER },
{ "stripspace", cmd_stripspace },