Skip to content

Commit 0305acf

Browse files
committed
fixup! Merge pull request #812 from jeffhostetler/wip_vvp_status
Let's back this out: Just after this Pull Request was merged, the first comment of the upstream Git developers made a redesign necessary. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 17979d7 commit 0305acf

File tree

5 files changed

+2
-932
lines changed

5 files changed

+2
-932
lines changed

Documentation/git-status.txt

Lines changed: 0 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ OPTIONS
4949
twice, then also show the changes in the working tree that
5050
have not yet been staged (i.e., like the output of `git diff`).
5151

52-
When given twice with `--porcelain`, additional output is enabled.
53-
See the section entitled "Very Verbose Porcelain Format" for details.
54-
5552
-u[<mode>]::
5653
--untracked-files[=<mode>]::
5754
Show untracked files.
@@ -210,86 +207,6 @@ field from the first filename). Third, filenames containing special
210207
characters are not specially formatted; no quoting or
211208
backslash-escaping is performed.
212209

213-
Very Verbose Porcelain Format
214-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
215-
216-
When --verbose is given twice along with --porcelain, additional output
217-
is provided.
218-
219-
If --branch is given, the first line shows a summary of the current
220-
operation in progress. This line begins with "### state: ", the name
221-
of the operation in progress, and then operation-specific information.
222-
Fields are separated by a single space.
223-
224-
Operation Fields Explanation
225-
------------------------------------------------------------------
226-
clean
227-
------------------------------------------------------------------
228-
merge <nr> Number unmerged
229-
------------------------------------------------------------------
230-
am [E] Present if the current patch
231-
is empty
232-
------------------------------------------------------------------
233-
rebase <nr> Number unmerged
234-
[S] Present if split commit in
235-
progress during rebase
236-
[E] Present if editing a commit
237-
during rebase
238-
[I(<done>/<total>)] Present if in an interactive
239-
rebase. Step counts are given.
240-
[<current>:<onto>] Rebase branches
241-
------------------------------------------------------------------
242-
cherrypick <sha>
243-
<nr> Number unmerged
244-
------------------------------------------------------------------
245-
revert <sha>
246-
<nr> Number unmerged
247-
------------------------------------------------------------------
248-
bisect [<branch>]
249-
------------------------------------------------------------------
250-
251-
If --branch is given, the second line shows branch tracking information.
252-
This line begins with "### track: ". Fields are separated by a single
253-
space, unless otherwise indicated.
254-
255-
Field Meaning
256-
--------------------------------------------------------
257-
<sha> | "(initial)" Current commit
258-
<branch> | "(detached)" Current branch
259-
":"<upstream> Upstream branch, if set
260-
"+"<ahead> Ahead count, if upstream present
261-
"-"<behind> Behind count, if upstream present
262-
--------------------------------------------------------
263-
264-
A series of lines are then displayed for the tracked entries.
265-
Lines have one of the following formats:
266-
267-
XYS mH mI mW shaH shaI PATH
268-
XYS mH mI mW shaH shaI score OLD_PATH\tPATH
269-
XYS m1 m2 m3 mW sha1 sha2 sha3 PATH
270-
271-
* X and Y were described in the short format section.
272-
* S is a one character summary of the submodule status with values '0'..'7'
273-
representing the sum of: 4 when submodule has a new commit, 2 when the
274-
submodule is modified, and 1 when the submodule contains untracked changes.
275-
The value is ' ' if the entry is not a submodule.
276-
* mH, mI, and mW are the 6 digit octal modes for the head, index, and worktree
277-
versions of the entry.
278-
* m1, m2, and m3 are the modes for the stage 1, 2, and 3 versions of the entry
279-
when in an unmerged state.
280-
* shaH and shaI are the 40 character hashes for the head and index version.
281-
* sha1, sha2, and sha3 are the hashes for the stage 1, 2, and 3 versions of
282-
the entry when in an unmerged state.
283-
* score is the rename percentage score.
284-
* PATH is the current path.
285-
* OLD_PATH is the source path for a staged rename.
286-
287-
A series of lines are then displayed for untracked and ignored entries.
288-
289-
XXX PATH
290-
291-
* XXX is "???" for untracked entries and "!!!" for ignored entries.
292-
293210
CONFIGURATION
294211
-------------
295212

builtin/commit.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,6 @@ static int run_status(FILE *fp, const char *index_file, const char *prefix, int
499499
s->fp = fp;
500500
s->nowarn = nowarn;
501501
s->is_initial = get_sha1(s->reference, sha1) ? 1 : 0;
502-
if (!s->is_initial)
503-
hashcpy(s->sha_commit, sha1);
504502

505503
wt_status_collect(s);
506504

@@ -1382,20 +1380,7 @@ int cmd_status(int argc, const char **argv, const char *prefix)
13821380
fd = hold_locked_index(&index_lock, 0);
13831381

13841382
s.is_initial = get_sha1(s.reference, sha1) ? 1 : 0;
1385-
if (!s.is_initial)
1386-
hashcpy(s.sha_commit, sha1);
1387-
13881383
s.ignore_submodule_arg = ignore_submodule_arg;
1389-
if (verbose > 1 && status_format == STATUS_FORMAT_PORCELAIN) {
1390-
/* Capture extra data for very verbose porcelain output. */
1391-
s.verbose = verbose;
1392-
1393-
/* Force safe_crlf off to prevent normal LF/CRLF warning
1394-
* message from being printed on stderr for each new file.
1395-
*/
1396-
safe_crlf = SAFE_CRLF_FALSE;
1397-
}
1398-
13991384
wt_status_collect(&s);
14001385

14011386
if (0 <= fd)

t/t7064-wtstatus-vvp.sh

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)