Skip to content

"git status" that is not "git commit --dry-run"

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Documentation/git-commit.txt: describe --dry-runDocumentation/git-commit.txt+9 -40 replies
2/9git commit --dry-run -v: show diff in color when askedbuiltin-commit.c+4 -20 replies
3/9git stat: the beginningMakefile builtin-commit.c builtin.h +3 more+72 -190 replies
4/9git stat: honor relative paths settingbuiltin-commit.c+2 -00 replies
5/9git stat: show traditional status headers and trailers as wellbuiltin-commit.c wt-status.c wt-status.h+16 -200 replies
6/9git stat: pathspec limits, unlike traditional "git status"builtin-commit.c wt-status.c wt-status.h+10 -00 replies
7/9git stat -s: short status outputbuiltin-commit.c+106 -80 replies
8/9git status: not "commit --dry-run" anymoreDocumentation/git-status.txt builtin-commit.c builtin.h +1 more+73 -371 reply
9/9git-status: adjust testst/t6040-tracking-info.sh t/t7060-wtstatus.sh t/t7506-status-submodule.sh +1 more+16 -120 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/9] "git status" that is not "git commit --dry-run"

Here is an update relative to 7637868 (wt-status: collect untracked files in a separate "collect" phase, 2009-08-10) that has been queued in 'next'.

[PATCH 1/9] and [PATCH 2/9] are the same from last night's fixes.

[PATCH 3/9] through [PATCH 6/9] introduce a new "git status" with different semantics for 1.7.0 under a tentative name "git stat". They will be squashed into one commit in the final round, as 4, 5, and 6 are fix-ups, but are keft separate for easier review.

The new "git status" handles paths differently from the traditional one. It used to be the preview of "git commit paths...", IOW, "show what would happen if we try to make a partial commit of only these paths". The new "git status" only limits the paths the output talks about and is not a preview of anything at all anymore.

Another semantic change is that its exit status no longer says if there is something to be committed in the index. We used to exit with non-zero status if there is nothing to commit.

[PATCH 7/9] introduces a short format output.

The last two patches make the new "git status" official. They will be squashed together into one commit in the final round, but are kept separate for reviewability.

Junio C Hamano (9):
Documentation/git-commit.txt: describe --dry-run
git commit --dry-run -v: show diff in color when asked git stat: the beginning
git stat: honor relative paths setting
git stat: show traditional status headers and trailers as well git stat: pathspec limits, unlike traditional "git status" git stat -s: short status output
git status: not "commit --dry-run" anymore
git-status: adjust tests

 Documentation/git-commit.txt |   13 ++-
 Documentation/git-status.txt |   79 +++++++++++++++++---
 Makefile                     |    1 +
 builtin-commit.c             |  172 +++++++++++++++++++++++++++++++++++++-----
 t/t6040-tracking-info.sh     |    2 +-
 t/t7060-wtstatus.sh          |    8 +-
 t/t7506-status-submodule.sh  |    6 +-
 t/t7508-status.sh            |   12 ++-
 wt-status.c                  |   10 ++-
 wt-status.h                  |    1 +
 10 files changed, 255 insertions(+), 49 deletions(-)