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

Re: [PATCH] Revert "stash: require a clean index to apply"

From
JKJonathan Kamens <jkamens@quantopian.com>
Date
Jun 26, 2015, 01:12 UTC
Message-ID
<558CA717.2040400@quantopian.com>
In-Reply-To
<20150626002706.GA6367@peff.net>
Um.
I encountered this issue in git 2.4.3 on Fedora 22.

These lines appear in /usr/libexec/git-core/git-stash on my Fedora 22 system:

         git diff-index --cached --quiet --ignore-submodules HEAD -- ||
                 die "$(gettext "Cannot apply stash: Your index contains 
uncommitted changes.")"

They also appear in https://github.com/git/git/blob/69f9a6e54a46c4a75dff680047a465d04cca20ca/git-stash.sh#L445 , which is the commit tagged v2.4.3.

In fact, it appears they were released in v2.4.2, at least according to https://github.com/git/git/compare/v2.4.1...v2.4.2 .

So it appears to me that this patch was, in fact, released in v2.4.x and therefore needs to be reverted in v2.4.x.

   jik
On 06/25/2015 08:27 PM, Jeff King wrote:
Show 7 quoted lines
> On Thu, Jun 25, 2015 at 05:49:11PM -0400, Jonathan Kamens wrote:
>
>> Is this revert going to be applied and released?
> It is on "master", and part of v2.5.0-rc0 (it is not part of v2.4.x, because
> the original problem was not there, either).
>
> -Peff
Previous: Jeff KingNext: Jeff King
Message 14 of 16 in “Re: [PATCH 3/3] stash: require a clean index to apply”
  1. Jonathan KamensJun 5, 2015
  2. Jeff KingJun 7, 2015
  3. Jeff KingJun 7, 2015
  4. bärJun 10, 2015
  5. Jeff KingJun 10, 2015
  6. Junio C HamanoJun 10, 2015
  7. Jeff KingJun 10, 2015
  8. bärJun 10, 2015
  9. Junio C HamanoJun 15, 2015
  10. Revert "stash: require a clean index to apply"Jeff King, Jun 15, 2015
  11. Junio C HamanoJun 15, 2015
  12. Jonathan KamensJun 25, 2015
  13. Jeff KingJun 26, 2015
  14. Jonathan KamensJun 26, 2015
  15. Jeff KingJun 26, 2015
  16. Junio C HamanoJun 26, 2015

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.