{"thread":{"id":"11301","subject":"[PATCH] Retire git-runstatus for real.","startedAt":"2007-12-15T06:21:40Z","lastAt":"2007-12-15T06:21:40Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"63239","messageId":"7vve70mqa3.fsf@gitster.siamese.dyndns.org","threadId":"11301","inReplyTo":null,"subject":"[PATCH] Retire git-runstatus for real.","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-12-15T06:21:40Z","receivedAt":"2007-12-15T06:21:40Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"The command was removed from the builtin command list and there was no\nway to invoke it, but the code was still there.\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>\n---\n Documentation/git-runstatus.txt |   68 ---------------------------------------\n Makefile                        |    2 +-\n builtin-runstatus.c             |   38 ---------------------\n command-list.txt                |    1 -\n 4 files changed, 1 insertions(+), 108 deletions(-)\n delete mode 100644 Documentation/git-runstatus.txt\n delete mode 100644 builtin-runstatus.c\n\ndiff --git a/Documentation/git-runstatus.txt b/Documentation/git-runstatus.txt\ndeleted file mode 100644\nindex dee5d0d..0000000\n--- a/Documentation/git-runstatus.txt\n+++ /dev/null\n@@ -1,68 +0,0 @@\n-git-runstatus(1)\n-================\n-\n-NAME\n-----\n-git-runstatus - A helper for git-status and git-commit\n-\n-\n-SYNOPSIS\n---------\n-'git-runstatus' [--color|--nocolor] [--amend] [--verbose] [--untracked]\n-\n-\n-DESCRIPTION\n------------\n-Examines paths in the working tree that has changes unrecorded\n-to the index file, and changes between the index file and the\n-current HEAD commit.  The former paths are what you _could_\n-commit by running 'git add' (or 'git rm' if you are deleting) before running 'git\n-commit', and the latter paths are what you _would_ commit by\n-running 'git commit'.\n-\n-If there is no path that is different between the index file and\n-the current HEAD commit, the command exits with non-zero status.\n-\n-Note that this is _not_ the user level command you would want to\n-run from the command line.  Use 'git-status' instead.\n-\n-\n-OPTIONS\n--------\n---color::\n-\tShow colored status, highlighting modified file names.\n-\n---nocolor::\n-\tTurn off coloring.\n-\n---amend::\n-\tShow status based on HEAD^1, not HEAD, i.e. show what\n-\t'git-commit --amend' would do.\n-\n---verbose::\n-\tShow unified diff of all file changes.\n-\n---untracked::\n-\tShow files in untracked directories, too.  Without this\n-\toption only its name and a trailing slash are displayed\n-\tfor each untracked directory.\n-\n-\n-OUTPUT\n-------\n-The output from this command is designed to be used as a commit\n-template comments, and all the output lines are prefixed with '#'.\n-\n-\n-Author\n-------\n-Originally written by Linus Torvalds <torvalds@osdl.org> as part\n-of git-commit, and later rewritten in C by Jeff King.\n-\n-Documentation\n---------------\n-Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.\n-\n-GIT\n----\n-Part of the gitlink:git[7] suite\ndiff --git a/Makefile b/Makefile\nindex 43d6197..b9fe40b 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -933,7 +933,7 @@ git-http-push$X: revision.o http.o http-push.o $(GITLIBS)\n \n $(LIB_OBJS) $(BUILTIN_OBJS): $(LIB_H)\n $(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIB_H) $(wildcard */*.h)\n-builtin-revert.o builtin-runstatus.o wt-status.o: wt-status.h\n+builtin-revert.o wt-status.o: wt-status.h\n \n $(LIB_FILE): $(LIB_OBJS)\n \t$(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS)\ndiff --git a/builtin-runstatus.c b/builtin-runstatus.c\ndeleted file mode 100644\nindex 8d167a9..0000000\n--- a/builtin-runstatus.c\n+++ /dev/null\n@@ -1,38 +0,0 @@\n-#include \"builtin.h\"\n-#include \"cache.h\"\n-#include \"wt-status.h\"\n-\n-extern int wt_status_use_color;\n-\n-static const char runstatus_usage[] =\n-\"git-runstatus [--color|--nocolor] [--amend] [--verbose] [--untracked]\";\n-\n-int cmd_runstatus(int argc, const char **argv, const char *prefix)\n-{\n-\tstruct wt_status s;\n-\tint i;\n-\n-\tgit_config(git_status_config);\n-\twt_status_prepare(&s);\n-\ts.prefix = prefix;\n-\n-\tfor (i = 1; i < argc; i++) {\n-\t\tif (!strcmp(argv[i], \"--color\"))\n-\t\t\twt_status_use_color = 1;\n-\t\telse if (!strcmp(argv[i], \"--nocolor\"))\n-\t\t\twt_status_use_color = 0;\n-\t\telse if (!strcmp(argv[i], \"--amend\")) {\n-\t\t\ts.amend = 1;\n-\t\t\ts.reference = \"HEAD^1\";\n-\t\t}\n-\t\telse if (!strcmp(argv[i], \"--verbose\"))\n-\t\t\ts.verbose = 1;\n-\t\telse if (!strcmp(argv[i], \"--untracked\"))\n-\t\t\ts.untracked = 1;\n-\t\telse\n-\t\t\tusage(runstatus_usage);\n-\t}\n-\n-\twt_status_print(&s);\n-\treturn s.commitable ? 0 : 1;\n-}\ndiff --git a/command-list.txt b/command-list.txt\nindex 28342da..6c2b1d8 100644\n--- a/command-list.txt\n+++ b/command-list.txt\n@@ -98,7 +98,6 @@ git-revert                              mainporcelain\n git-rev-list                            plumbinginterrogators\n git-rev-parse                           ancillaryinterrogators\n git-rm                                  mainporcelain common\n-git-runstatus                           ancillaryinterrogators\n git-send-email                          foreignscminterface\n git-send-pack                           synchingrepositories\n git-shell                               synchelpers\n-- \n1.5.4.rc0.1096.gcd2a6\n"}]}