@matheusbsbs / matheus-bagliano / commits / fa4701601a
Fork 0

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>

Junio C Hamano committed Dec 14, 2007 at 22:08 UTC fa4701601a62664a9246a211c5d26f238820737e
4 files changed +1 -108
Documentation/git-runstatus.txt deleted
-68
@@ -1,68 +0,0 @@
1 -git-runstatus(1)
2 -================
3 -
4 -NAME
5 -----
6 -git-runstatus - A helper for git-status and git-commit
7 -
8 -
9 -SYNOPSIS
10 ---------
11 -'git-runstatus' [--color|--nocolor] [--amend] [--verbose] [--untracked]
12 -
13 -
14 -DESCRIPTION
15 ------------
16 -Examines paths in the working tree that has changes unrecorded
17 -to the index file, and changes between the index file and the
18 -current HEAD commit. The former paths are what you _could_
19 -commit by running 'git add' (or 'git rm' if you are deleting) before running 'git
20 -commit', and the latter paths are what you _would_ commit by
21 -running 'git commit'.
22 -
23 -If there is no path that is different between the index file and
24 -the current HEAD commit, the command exits with non-zero status.
25 -
26 -Note that this is _not_ the user level command you would want to
27 -run from the command line. Use 'git-status' instead.
28 -
29 -
30 -OPTIONS
31 --------
32 ---color::
33 - Show colored status, highlighting modified file names.
34 -
35 ---nocolor::
36 - Turn off coloring.
37 -
38 ---amend::
39 - Show status based on HEAD^1, not HEAD, i.e. show what
40 - 'git-commit --amend' would do.
41 -
42 ---verbose::
43 - Show unified diff of all file changes.
44 -
45 ---untracked::
46 - Show files in untracked directories, too. Without this
47 - option only its name and a trailing slash are displayed
48 - for each untracked directory.
49 -
50 -
51 -OUTPUT
52 -------
53 -The output from this command is designed to be used as a commit
54 -template comments, and all the output lines are prefixed with '#'.
55 -
56 -
57 -Author
58 -------
59 -Originally written by Linus Torvalds <torvalds@osdl.org> as part
60 -of git-commit, and later rewritten in C by Jeff King.
61 -
62 -Documentation
63 ---------------
64 -Documentation by David Greaves, Junio C Hamano and the git-list <git@vger.kernel.org>.
65 -
66 -GIT
67 ----
68 -Part of the gitlink:git[7] suite
Makefile
+1 -1
@@ -933,7 +933,7 @@ git-http-push$X: revision.o http.o http-push.o $(GITLIBS)
933
934 $(LIB_OBJS) $(BUILTIN_OBJS): $(LIB_H)
935 $(patsubst git-%$X,%.o,$(PROGRAMS)): $(LIB_H) $(wildcard */*.h)
936 -builtin-revert.o builtin-runstatus.o wt-status.o: wt-status.h
936 +builtin-revert.o wt-status.o: wt-status.h
937
938 $(LIB_FILE): $(LIB_OBJS)
939 $(QUIET_AR)$(RM) $@ && $(AR) rcs $@ $(LIB_OBJS)
builtin-runstatus.c deleted
-38
@@ -1,38 +0,0 @@
1 -#include "builtin.h"
2 -#include "cache.h"
3 -#include "wt-status.h"
4 -
5 -extern int wt_status_use_color;
6 -
7 -static const char runstatus_usage[] =
8 -"git-runstatus [--color|--nocolor] [--amend] [--verbose] [--untracked]";
9 -
10 -int cmd_runstatus(int argc, const char **argv, const char *prefix)
11 -{
12 - struct wt_status s;
13 - int i;
14 -
15 - git_config(git_status_config);
16 - wt_status_prepare(&s);
17 - s.prefix = prefix;
18 -
19 - for (i = 1; i < argc; i++) {
20 - if (!strcmp(argv[i], "--color"))
21 - wt_status_use_color = 1;
22 - else if (!strcmp(argv[i], "--nocolor"))
23 - wt_status_use_color = 0;
24 - else if (!strcmp(argv[i], "--amend")) {
25 - s.amend = 1;
26 - s.reference = "HEAD^1";
27 - }
28 - else if (!strcmp(argv[i], "--verbose"))
29 - s.verbose = 1;
30 - else if (!strcmp(argv[i], "--untracked"))
31 - s.untracked = 1;
32 - else
33 - usage(runstatus_usage);
34 - }
35 -
36 - wt_status_print(&s);
37 - return s.commitable ? 0 : 1;
38 -}
command-list.txt
-1
@@ -98,7 +98,6 @@ git-revert mainporcelain
98 git-rev-list plumbinginterrogators
99 git-rev-parse ancillaryinterrogators
100 git-rm mainporcelain common
101 -git-runstatus ancillaryinterrogators
101 git-send-email foreignscminterface
102 git-send-pack synchingrepositories
103 git-shell synchelpers