Thread (11 messages) flat view 11 messages, 7 authors, 2016-06-15

Re: [PATCH] stash: Add --clean option to stash and remove all untracked files

From: Johannes Sixt <hidden>
Date: 2016-06-15 22:51:30

Am 6/21/2011 7:08, schrieb Andrew Wong:
Ah, this patch will be very useful. I actually ran into several scenarios
before where I wished stash could do exactly this.

On 11-06-20 9:36 PM, David Caldwell wrote:
quoted
On 6/20/11 5:38 PM, Jeff King wrote:
quoted
Hmm. I think I would call this something like "--untracked", as to me
the main function is saving those files, not cleaning them afterwards
(the fact that they are cleaned is really just making the untracked-file
handling in line with what we do for tracked files; we put the changes
in the stash and remove them from the working tree).
I see your point but I thought "--clean" was pretty descriptive of how
the working dir ended up afterward. Maybe "git stash --everything" (or
"--all")?
I personally think "--untracked" (and -u) is more intuitive too, since it
tells you what "git stash" is about to do. i.e. "git stash" is about to do
the usual stash operation *and* also stash the "untracked" files.
Really?

   $ git stash --untracked

sound like it stashes *only* untracked files. (That by itself may be a
feature that some people want; so far, I'm not among them.)

-- Hannes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help