Skip to content

Revamping "git status"

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5diff-index: report unmerged new entriesdiff-lib.c t/t7060-wtstatus.sh+33 -20 replies
2/5diff-index: keep the original index intactdiff-lib.c+0 -180 replies
3/5wt-status.c: rework the way changes to the index and work tree are summarizedbuiltin-commit.c wt-status.c wt-status.h+226 -502 replies
4/5status: show worktree status of conflicted paths separatelywt-status.c+64 -21 reply
5/5shortstatus: a new commandMakefile builtin-commit.c builtin.h +1 more+97 -05 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/5] Revamping "git status"

The first two patches in this series are a small bugfix and an internal clean-up for the underlying "diff-index" engine used by "git status" when it inspects how the index differs from the HEAD commit.

The third one separates the logic to inspect the changes in the index and the work tree from the code to show the result in "git status" command, so that collected data can be presented in different formats more easily. It is roughly based on an old patch of mine from October last year, but it collects a bit more detail on conflicted paths.

The fourth one changes the output from the "git status" command when unmerged paths are present. We now have a separate "Unmerged paths" section at the beginning and describe the nature of the conflict in more detail.

The last one is a bit iffy, but shows how the new infrastructure can be used to present the "git status" output in a more succinct and machine readble format.

Junio C Hamano (5):
diff-index: report unmerged new entries
diff-index: keep the original index intact
wt-status.c: rework the way changes to the index and work tree are
summarized
status: show worktree status of conflicted paths separately
shortstatus: a new command

 Makefile            |    1 +
 builtin-commit.c    |  107 +++++++++++++++++-
 builtin.h           |    1 +
 diff-lib.c          |   22 +----
 git.c               |    1 +
 t/t7060-wtstatus.sh |   31 +++++
 wt-status.c         |  314 +++++++++++++++++++++++++++++++++++++++++++--------
 wt-status.h         |   11 ++
 8 files changed, 418 insertions(+), 70 deletions(-)
 create mode 100755 t/t7060-wtstatus.sh