Re: [PATCH 2/2] commit: make it work with status.short
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Jun 24, 2013, 15:39 UTC
- Message-ID
- <CALkWK0=2cJZDZTirZqYrfc9yTWaX8x=2G2xC_fhW53+GDDZ+BQ@mail.gmail.com>
- In-Reply-To
- <7v38s7czc9.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> As I said in the other message, I'll revert the merge of the topic > branch from 'master' for now, and queue this on top of the topic so > that we will have the preventive fix when the topic is in a better > shape for the other possible breakage on the "--branch" thing.
Thanks, a quick revert is probably the best way to go.
Show 8 quoted lines
> That is, "git commit --short/--porcelain/-z" has these three > possibilities: > > - work (ignoring these options); > > - work (showing the template in some kind of "short" format); or > > - error out (clearly indicating that we did *not* make a commit).
Actually, I had a different idea: to make short (and porcelain, by extension) set s->commitable correctly. From a quick analysis, it shouldn't be a hard problem. Then, we can make
$ git commit
display short-form status when there is nothing to commit.