git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] make commit --verbose work with --no-status
@ 2014-02-21 19:09 Tay Ray Chuan
  2014-02-21 19:09 ` [PATCH 1/3] rename STATUS_FORMAT_NONE to STATUS_FORMAT_DEFAULT Tay Ray Chuan
  0 siblings, 1 reply; 8+ messages in thread
From: Tay Ray Chuan @ 2014-02-21 19:09 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Tay Ray Chuan

One would expect 'git commit --verbose --no-status' to give a commit
message with a diff of the commit, sans the output of git-status.
However, this does not work currently; the commit message body is
entirely empty (diff is absent as well). This patch series attempts to
make this work, as one would expect.

[PATCH 1/3] rename STATUS_FORMAT_NONE to STATUS_FORMAT_DEFAULT

We first rename STATUS_FORMAT_NONE to *_DEFAULT, so that we can use it
to mean "no status output at all".

[PATCH 2/3] 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.

* 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.

[PATCH 3/3] make commit --verbose work with --no-status

Actual work here.

-- 
1.9.0.291.g027825b

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-02-24  8:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-21 19:09 [PATCH 0/3] make commit --verbose work with --no-status Tay Ray Chuan
2014-02-21 19:09 ` [PATCH 1/3] rename STATUS_FORMAT_NONE to STATUS_FORMAT_DEFAULT Tay Ray Chuan
2014-02-21 19:09   ` [PATCH 2/3] extract setting of wt_status.commitable flag out of wt_status_print_updated() Tay Ray Chuan
2014-02-21 19:09     ` [PATCH 3/3] make commit --verbose work with --no-status Tay Ray Chuan
2014-02-22  8:31       ` Jeff King
2014-02-24  4:24         ` Tay Ray Chuan
2014-02-24  8:33           ` Jeff King
2014-02-22  8:24   ` [PATCH 1/3] rename STATUS_FORMAT_NONE to STATUS_FORMAT_DEFAULT Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).