Re: [PATCHv2] git-status: show short sequencer state
- From
Jeff King <peff@peff.net>
- Date
- Oct 29, 2012, 21:41 UTC
- Message-ID
- <20121029214103.GD20513@sigill.intra.peff.net>
- In-Reply-To
- <CABURp0o7b5aZV6jNM=DSweh-8zVgGppxVsXisAcoNk7TxHrdgQ@mail.gmail.com>
On Mon, Oct 29, 2012 at 02:05:14PM -0400, Phil Hord wrote:
Show 25 quoted lines
> I'm currently splitting this out into a series and reconsidering some > of it along the way. I need some guidance. > > I want to support these two modes: > > A. 'git status --short' with sequence tokens added: > ## conflicted > ## merge > ?? untracked-workdir-file > etc. > > B. Same as (A) but without workdir status: > ## conflicted > ## merge > > The user who wants 'A' would initiate it like this: > git status --sequencer > or > git status -S > > How do I spell the options for 'B'? I have come up with these three > possibilities: > git --sequencer-only # Another switch > git --sequencer=only # An OPTARG parser > git -S -S # like git-diff -C -C, an OPT_COUNTUP
Might it be easier to spell 'A' as:
git status --short -S
and B as:
git status -S
this is sort of like how "-b" works (except you cannot currently ask for it separately, but arguably you could). If we have a proliferation of such options, then we might need config to help turn them on all the time (I'd guess people are probably already using aliases to do this).
-Peff