git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] status: teach "status --short" to respect "--show-stash"

From
Eric N. Vander Weele <ericvw@gmail.com>
Date
Nov 8, 2019, 03:24 UTC
Message-ID
<20191108032401.GA1465@helium>
In-Reply-To
<xmqqimnwoscx.fsf@gitster-ct.c.googlers.com>
On Thu, Nov 07, 2019 at 08:09:34PM +0900, Junio C Hamano wrote:
Show 23 quoted lines
> "Eric N. Vander Weele" <ericvw@gmail.com> writes:
>
> >> Isn't this information available to scripts that want to read from
> >> porcelain v2 output format (which is meant to be extensible by
> >> allowing easy-to-parse optional headers, which this stash thing
> >> exactly is).
> >
> > It is not available in Porcelain Format v2... yet :).
> >
> >
> > I'm happy making '--show-stash' congruent with '--branch' in v1',
> > which is would be in line with documented behavior, displaying
> > something in v2 only, or both.  Let me know how you would like to
> > proceed and I'll rework the patch accordingly.
>
> Quite honestly, you do not want to ask _me_.  If you left it to
> me, I may say that, among the possible next step you listed, the
> best one is to do nothing, as I do not want to see the stash info in
> the "status --short" output ;-)
>
> It probably is the safest to make it available first only in v2
> format.  I do not know if that makes its utility too limited for the
> purpose of the application you have in mind.

The application I had in mind was to remind me of potentially stray stashes I may have forgotten about when working on a project. I was hoping to add "--show-stash" to my alias for "status --short --branch".

The v2 format is a bit too verbose for what I need and having color output is a nice bonus when using "--short". I don't feel strongly for pushing this through, but I am happy with what I have learned through the process of trying :).

Previous: Junio C Hamano
Message 5 of 5 in “status: teach "status --short" to respect "--show-stash"”
  1. status: teach "status --short" to respect "--show-stash"Eric N. Vander Weele, Nov 4, 2019
  2. Junio C HamanoNov 6, 2019
  3. Eric N. Vander WeeleNov 7, 2019
  4. Junio C HamanoNov 7, 2019
  5. Eric N. Vander WeeleNov 8, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.