GNU bug report logs - #9503
24.0.50; (vc-git): After applying a stash, refresh of *vc-dir* is a must

Previous Next

Package: emacs;

Reported by: Jambunathan K <kjambunathan <at> gmail.com>

Date: Wed, 14 Sep 2011 10:26:01 UTC

Severity: minor

Found in versions 24.0.50, 24.3

Done: Jambunathan K <kjambunathan <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jambunathan K <kjambunathan <at> gmail.com>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: Juanma Barranquero <lekktu <at> gmail.com>, 9503 <at> debbugs.gnu.org
Subject: bug#9503: 24.0.50; (vc-git): After applying a stash, refresh of *vc-dir* is a must
Date: Thu, 15 Sep 2011 13:37:55 +0530
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> Jambunathan K <kjambunathan <at> gmail.com> writes:
>
>> Applying stash on a dirty tree produces the following error message from
>> git:
>>
>> "Cannot apply to a dirty working tree, please stage your changes"
>>
>> Even if one is applyin stashes serially, one HAS to always commit the
>> stash before applying the next one. 
>
> Only if the stashes overlap.

That is what I would have expected but that is not what I observed with
a little test that stashed *two different* files on the same HEAD.

My git version is 1.7.2.3. The release notes for git 1.7.5.1 has the
following entry

,----
|  * "git stash apply" used to refuse to work if there was any change in
|  the working tree, even when the change did not overlap with the
|  change the stash recorded.
`----

So I would (favorably) assume that the above bug is also present in
1.7.2.3 version of git. I agree that I shouldn't have based my opinions
on a buggy behaviour and trusted my instincts.

Anyways, the maintainers have agreed to the change I requested. So the
above note is only to clarify my eariler comments.





This bug report was last modified 11 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.