Skip to content

status: V2 porcelain status

Jeff Hostetler git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 11 repliesIn review
  2. v16 patches 34 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8status: rename long-format print routinesbuiltin/commit.c wt-status.c wt-status.h+58 -580 replies
2/8status: cleanup API to wt_status_printbuiltin/commit.c wt-status.c wt-status.h+43 -491 reply
3/8status: support --porcelain[=<version>]Documentation/git-status.txt builtin/commit.c t/t7060-wtstatus.sh+44 -51 reply
4/8status: per-file data collection for --porcelain=v2builtin/commit.c wt-status.c wt-status.h+133 -12 replies
5/8status: print per-file porcelain v2 status datawt-status.c+284 -12 replies
6/8status: print branch info with --porcelain=v2 --branchbuiltin/commit.c wt-status.c wt-status.h+92 -01 reply
7/8status: update git-status.txt for --porcelain=v2Documentation/git-status.txt+80 -33 replies
8/8status: tests for --porcelain=v2t/t7064-wtstatus-pv2.sh+542 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] status: V2 porcelain status

This patch series adds porcelain V2 format to status. This provides detailed information about file changes and about the current branch.

The new output is accessed via:

    git status --porcelain=v2 [--branch]

This patch series hopefully addresses all of the comments from the previous series. The first 2 commits move the choice of output routines into wt-status.c and cleanup the API from builtin/commit.c. The command line parameter is "v2" to make it easier to define other formats and/or JSON output later if we want. Detail lines for ordinary changes and unmerged changes are now completely separate and have a unique prefix key (and are grouped by type). The unit tests have been converted to use heredoc's.

I removed the v2 argument from git commit --porcelain since it didn't really fit here.

Jeff Hostetler (8):
status: rename long-format print routines
status: cleanup API to wt_status_print
status: support --porcelain[=<version>]
status: per-file data collection for --porcelain=v2
status: print per-file porcelain v2 status data
status: print branch info with --porcelain=v2 --branch
status: update git-status.txt for --porcelain=v2
status: tests for --porcelain=v2

 Documentation/git-status.txt |  90 ++++++-
 builtin/commit.c             |  78 +++---
 t/t7060-wtstatus.sh          |  21 ++
 t/t7064-wtstatus-pv2.sh      | 542 +++++++++++++++++++++++++++++++++++++
 wt-status.c                  | 616 +++++++++++++++++++++++++++++++++++++++----
 wt-status.h                  |  32 ++-
 6 files changed, 1269 insertions(+), 110 deletions(-)
 create mode 100755 t/t7064-wtstatus-pv2.sh
Signature · 1 line
2.8.0.rc4.17.gac42084.dirty