Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-12-15 09:08:25 +0300
committerJunio C Hamano <gitster@pobox.com>2007-12-15 09:08:25 +0300
commitfa4701601a62664a9246a211c5d26f238820737e (patch)
treeb1716cc95157bcdb4cc376a7edebb99e10ff33ec /builtin-runstatus.c
parent5b4617c7490921f3ea871231f71d6baa2288bf93 (diff)
Retire git-runstatus for real.
The command was removed from the builtin command list and there was no way to invoke it, but the code was still there. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-runstatus.c')
-rw-r--r--builtin-runstatus.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/builtin-runstatus.c b/builtin-runstatus.c
deleted file mode 100644
index 8d167a9674..0000000000
--- a/builtin-runstatus.c
+++ /dev/null
@@ -1,38 +0,0 @@
-#include "builtin.h"
-#include "cache.h"
-#include "wt-status.h"
-
-extern int wt_status_use_color;
-
-static const char runstatus_usage[] =
-"git-runstatus [--color|--nocolor] [--amend] [--verbose] [--untracked]";
-
-int cmd_runstatus(int argc, const char **argv, const char *prefix)
-{
- struct wt_status s;
- int i;
-
- git_config(git_status_config);
- wt_status_prepare(&s);
- s.prefix = prefix;
-
- for (i = 1; i < argc; i++) {
- if (!strcmp(argv[i], "--color"))
- wt_status_use_color = 1;
- else if (!strcmp(argv[i], "--nocolor"))
- wt_status_use_color = 0;
- else if (!strcmp(argv[i], "--amend")) {
- s.amend = 1;
- s.reference = "HEAD^1";
- }
- else if (!strcmp(argv[i], "--verbose"))
- s.verbose = 1;
- else if (!strcmp(argv[i], "--untracked"))
- s.untracked = 1;
- else
- usage(runstatus_usage);
- }
-
- wt_status_print(&s);
- return s.commitable ? 0 : 1;
-}