Skip to content

"git commit --dry-run" updates

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Documentation/git-commit.txt: describe --dry-runDocumentation/git-commit.txt+9 -40 replies
2/6git commit --dry-run -v: show diff in color when askedbuiltin-commit.c+4 -20 replies
3/6git stat: the beginningMakefile builtin-commit.c builtin.h +3 more+72 -190 replies
4/6git stat: pathspec limits, unlike traditional "git status"builtin-commit.c wt-status.c wt-status.h+10 -00 replies
5/6git stat -s: short status outputbuiltin-commit.c+103 -50 replies
6/6git status: not "commit --dry-run" anymoreDocumentation/git-status.txt builtin-commit.c builtin.h +1 more+73 -370 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/6] "git commit --dry-run" updates

The first patch describes --dry-run option, and stops mentioning the equivalence to "git status" in the documentation for "git commit".

The second one fixes "git commit --dry-run -v", which did not show the diff text in color when asked with the configuration.

The third and the fourth ones tentatively introduce "git stat". The former is an incomplete implementation that ignores the pathspec, and the latter adds pathspec limiting to it. In the final form before it goes to 'next', these two should probably be squashed.

The fifth one introduces "git stat -s" (short output format) that is designed to be machine readable, especially with -z (NUL termination).

The sixth one renames "git stat" to take over the traditional "git status" and obviously is a 1.7.0 material.

The tests still have breakages that future updates to the sixth patch need to fix. t4030 still assumes "git status" is "git commit --dry-run" and expects it to take "-v" to produce diffs, for example.