make commit --verbose work with --no-status
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 6 repliesIn review
- v13 patches 4 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | extract setting of wt_status.commitable flag out of wt_status_print_updated()wt-status.c | +16 | 1 reply | |
| 2/2 | make commit --verbose work with --no-statusbuiltin/ t/ wt-status.c +1 more | +48 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] make commit --verbose work with --no-status
When running git-commit`, --verbose appends a diff to the prepared message, while --no-status omits git-status output; thus, one would expect --verbose --no-status to give a commit message with a diff of the commit without git-status output.
However, this is not what happens - the prepared commit message body is empty, entirely. (Needless to say, no diff is appended.) This patch series attempts to make this work, as one would expect.
[PATCH 1/2] extract setting of wt_status.commitable flag out of wt_status_print_updated()
Currently, the wt_status.commitable flag is set only when we call wt_status_print(). * Extract this logic, so that we don't have to go through the git-status output code just to set the flag.
* In fact, it is not set when --short or --porcelain are used. This series does not attempt to fix the bug, though it should be trivial to do so with this patch. See 9cbcc2a (demonstrate git-commit --dry-run exit code behaviour, Feb 22 2014).
[PATCH 2/2] make commit --verbose work with --no-status
Actual work here.
Signature · 1 line
2.0.0.581.g64f2558