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

Re: [PATCH] git stash: Avoid data loss when saving a stash

From
Petr Baudis <pasky@ucw.cz>
Date
Jun 30, 2013, 13:20 UTC
Message-ID
<20130630132017.GQ12252@machine.or.cz>
In-Reply-To
<7vhaghnct4.fsf@alter.siamese.dyndns.org>
  Hi!
On Fri, Jun 28, 2013 at 11:39:16AM -0700, Junio C Hamano wrote:
> Thanks.  I'll queue it with a pair of fix-up commits on top, so that
> they can later be squashed in.
> 
> The result of squashing the fix-ups would look like this.
  Thanks! I agree with all of your changes.
> -- >8 --
> From: Petr Baudis <pasky@ucw.cz>
> Date: Fri, 28 Jun 2013 17:05:32 +0200
> Subject: [PATCH] git stash: avoid data loss when "git stash save" kills a directory
  Hmm, it's a pity that the note that `git reset --hard` itself should
perhaps also abort in that case got lost. I don't insist on mentioning
it in the commit message, though.
On Fri, Jun 28, 2013 at 02:30:15PM -0700, Junio C Hamano wrote:
> -- >8 --
> Subject: treat_directory(): do not declare submodules in index to be untracked
  Oh, you are truly awesome! I admit that properly reviewing this patch
is a little out of my depth right now as I'm not familiar with this
infrastructure. I'd just like to note...
Show 5 quoted lines
>  	case index_gitdir:
>  		if (dir->flags & DIR_SHOW_OTHER_DIRECTORIES)
>  			return path_none;
> -		return path_untracked;
> +		return path_none;
...that the if-test can be removed now as both branches are the same.
				Petr "Pasky" Baudis
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 10 in “git stash: Avoid data loss when saving a stash”
  1. git stash: Avoid data loss when saving a stashPetr Baudis, Jun 28, 2013
  2. Junio C HamanoJun 28, 2013
  3. Junio C HamanoJun 28, 2013
  4. Junio C HamanoJun 28, 2013
  5. Petr BaudisJun 30, 2013
  6. Junio C HamanoJun 30, 2013
  7. Petr BaudisJul 6, 2013
  8. 0/2 Safety for "stash save"Junio C Hamano, Jul 1, 2013
  9. 1/2 treat_directory(): do not declare submodules to be untrackedJunio C Hamano, Jul 1, 2013
  10. 2/2 git stash: avoid data loss when "git stash save" kills a directoryJunio C Hamano, Jul 1, 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.