From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.bugs 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 Message-ID: <81pqj2kz38.fsf@gmail.com> References: <81aaa71l39.fsf@gmail.com> <81zki6qv6c.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316074124 17125 80.91.229.12 (15 Sep 2011 08:08:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2011 08:08:44 +0000 (UTC) Cc: Juanma Barranquero , 9503@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 15 10:08:36 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R46zp-0008UU-LT for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2011 10:08:33 +0200 Original-Received: from localhost ([::1]:41446 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R46zo-0005Kh-Fz for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2011 04:08:32 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42641) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R46zi-0005Kc-D1 for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2011 04:08:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R46zg-0007yH-Pp for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2011 04:08:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R46zg-0007yD-OG for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2011 04:08:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R4749-0005vF-Ng; Thu, 15 Sep 2011 04:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Sep 2011 08:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9503 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9503-submit@debbugs.gnu.org id=B9503.131607437422753 (code B ref 9503); Thu, 15 Sep 2011 08:13:01 +0000 Original-Received: (at 9503) by debbugs.gnu.org; 15 Sep 2011 08:12:54 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R4740-0005uu-On for submit@debbugs.gnu.org; Thu, 15 Sep 2011 04:12:54 -0400 Original-Received: from mail-yx0-f172.google.com ([209.85.213.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R473x-0005uj-2d for 9503@debbugs.gnu.org; Thu, 15 Sep 2011 04:12:50 -0400 Original-Received: by yxt33 with SMTP id 33so1917999yxt.3 for <9503@debbugs.gnu.org>; Thu, 15 Sep 2011 01:08:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=ETWCA+Sy29OYzOMvz2ecSa0U2x/J3Wd0FS8gWYvLutM=; b=qujzwYqV+ewGwWPZJEhEK7xUswRNyBAMrch7IQ5b+i801VYERzsQFRKWxzzcm+kikT Gi1N98/k88AWfNm7AWoIL/WH4vB/9bbnh7M6v26M4r59mZBCN3jCWM4CB9somI49qDK8 iuBex9L0nQVKcoQzfbnTPjmRJvvPzeHSJoe68= Original-Received: by 10.68.35.8 with SMTP id d8mr1437411pbj.415.1316074090947; Thu, 15 Sep 2011 01:08:10 -0700 (PDT) Original-Received: from JAMBU-NETBOOK ([115.241.119.204]) by mx.google.com with ESMTPS id i3sm20819416pbg.10.2011.09.15.01.08.02 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Sep 2011 01:08:09 -0700 (PDT) In-Reply-To: (Andreas Schwab's message of "Thu, 15 Sep 2011 09:34:02 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 15 Sep 2011 04:13:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51179 Archived-At: Andreas Schwab writes: > Jambunathan K 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.