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

Re: Feature Request: Show status of the stash in git status command

From
KKKonstantin Khomoutov <kostix+git@007spb.ru>
Date
Jun 13, 2017, 06:42 UTC
Message-ID
<20170613064142.aww23a75pu3ytym6@tigra>
In-Reply-To
<2217b9a1-dc8c-635a-649e-eae2dec5aaa5@gmail.com>
On Mon, Jun 12, 2017 at 11:42:44PM -0400, liam Beguin wrote:
[...]
Show 7 quoted lines
>> Conceptually, the contents of the stash are *not* commits, even
>> though the implementation happens to use a commit to represent each
>> stash entry.  Perhaps "has %d entry/entries" is an improvement, but
>> a quick scanning of an early part of "git stash --help" tells me
>> that
> 
> what's different between a stash and a commit? 

The same that exists between an interface and a concrete implementation in a programming language.

"A stash entry" is a concept which is defined to keep explicitly recorded untracked files and which can be applied, shown and deleted from the stash bag (well, you can create a branch off it as well).

The fact a stash entry is a merge commit of two synthetic commits is an implementation detail. It can be very useful at times for power users, but regular Git users need not be concerned with this.

Another fact worth reiterating that what the UI displays to the user is better to match what the user reads in the docs. ;-)

Previous: liam BeguinNext: liam Beguin
Message 11 of 13 in “Feature Request: Show status of the stash in git status command”
  1. Houston FortneyJun 7, 2017
  2. Jeff KingJun 10, 2017
  3. Samuel LijinJun 10, 2017
  4. Jeff KingJun 10, 2017
  5. liam BeguinJun 11, 2017
  6. Randall S. BeckerJun 11, 2017
  7. Igor DjordjevicJun 11, 2017
  8. Randall S. BeckerJun 11, 2017
  9. Junio C HamanoJun 12, 2017
  10. liam BeguinJun 13, 2017
  11. Konstantin KhomoutovJun 13, 2017
  12. liam BeguinJun 13, 2017
  13. Junio C HamanoJun 13, 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.