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

Bug: "git status --porcelain --show-stash" does not show stash count

From
EDEric Duncan <eduncan911@gmail.com>
Date
Dec 11, 2017, 00:13 UTC
Message-ID
<CACaqnaSSuUKBBRfmQMswaY9nzMzU=j_0k6GMN3R4=YLA9Z1=JA@mail.gmail.com>
Using:
   $ git version
    git version 2.15.1
Running without --porcelain shows the correct stash count:
    $ git status --show-stash
    On branch feature-Enable-Unmarshaling-Support
    Untracked files:
      (use "git add <file>..." to include in what will be committed)
            testdata/
    nothing added to commit but untracked files present (use "git add" to track)
    Your stash currently has 1 entry
Notice the last line in that output, "Your stash currently has 1 entry."

But the output when adding --porcelain does not output anything for stash counts:

    $ git status --porcelain --show-stash
    ?? testdata/
Version 2 does not either:
    $ git status --porcelain=2 --show-stash
    ? testdata/

Also, the --short option seems to be a shortcut to --porcelain with color coding (and still doesn't show the stash count):

    $ git status --short --show-stash
    ?? testdata/

I would expect something like "SS 1" or "S 1" to show stashes with a count of 1.

Thanks! Eric

Message 1 of 1 in “Bug: "git status --porcelain --show-stash" does not show stash count”
  1. Eric DuncanDec 11, 2017

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.