Re: [PATCH v2] status: list unmerged files last
- From
Jeff King <peff@peff.net>
- Date
- Sep 5, 2009, 06:28 UTC
- Message-ID
- <20090905062846.GD29863@coredump.intra.peff.net>
- In-Reply-To
- <20090903011234.GA7415@gmail.com>
On Wed, Sep 02, 2009 at 06:12:36PM -0700, David Aguilar wrote:
Show 12 quoted lines
> The only use case would be for --amend. > Which is why I asked about --porcelain; really what I want is > something like > > git status --porcelain HEAD^ > > Rolling a patch to make --porcelain an alias for --short seems > like a good idea. If we want to support HEAD^ and HEAD^ only > then perhaps an --amend flag is useful. > > The real crux of my question was about being able to script > it, which is why commit --dry-run is not enough.
I see. I still think you may want to improve "commit --dry-run" with a plumbing format, though, instead of "git status". Then it would automagically support "--amend", as well as other dry-run things (e.g., "git commit --dry-run --porcelain --amend foo.c"). And not having looked at the code, I would guess it is a one-liner patch to switch the "output format" flag that commit passes to the wt-status.c code.
-Peff