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

Bug? git show behaves incorrectly when called on a stash object

From
Kirill Likhodedov <kirill.likhodedov@gmail.com>
Date
Mar 20, 2013, 15:08 UTC
Message-ID
<AF060B6D-27F7-45BE-9BC3-85FAF3487481@gmail.com>
Hi,
I experience difference in behavior between `git stash show stash@{0}` and `git show stash@{0}`:
-----------------------------------------------------
# git stash show --name-status stash@{0}
A       a
M       conflict.js
# git show --name-status stash@{0}
commit 05aa170746dc4e060f10710a92aed4592276f2d4
Merge: 737f544 7c2160f
Author: Kirill Likhodedov <Kirill.Likhodedov@gmail.com>
Date:   Wed Mar 20 18:56:28 2013 +0400
   WIP on master: 737f544 master
MM      conflict.js
-----------------------------------------------------

The first gives the correct result, while the second doesn't show the addition. Is it a bug, or I'm just missing something?

Thanks a lot! Kirill.

Next: Matthieu Moy
Message 1 of 3 in “Bug? git show behaves incorrectly when called on a stash object”
  1. Kirill LikhodedovMar 20, 2013
  2. Matthieu MoyMar 20, 2013
  3. Kirill LikhodedovMar 21, 2013

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.