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

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

From
PEPaul Ebermann <paul.ebermann@esperanto.de>
Date
Jun 21, 2011, 16:11 UTC
Message-ID
<4E00C2BD.6000903@esperanto.de>
In-Reply-To
<20110621141843.GA18700@sigill.intra.peff.net>
Jeff King schrieb:
Show 19 quoted lines
> I would be happy with something that indicated "untracked files in
> addition to the regular stash". I just think it should be about "add
> these other files into the stash", not "end up in this directory state".
> 
> Something like "--untracked-too" fits that, but is horribly ugly. I also
> think it makes sense to have some way of stashing everything, including
> excluded files.  That could just be "-x" in conjunction with whatever
> this option is (which matches "git clean"), or it could be a separate
> option name (like "--all" or "--ignored").
> 
> Things like "git stash --all" or "git stash --thorough" indicate that
> you are stashing more, but it's hard to remember what the "more" is.
> 
> So I don't have any brilliant suggestions. Doing:
> 
>   $ git stash --untracked-too --ignored-too
> 
> is fairly clear, but somehow strikes me as unnecessarily ugly and
> verbose.
I think `--also-untracked` sounds better. It is even longer, though.

There could also be `--only-untracked`, which would stack only the untracked files (and let changes of tracked files there).

Paŭlo
Previous: Jeff KingNext: Marc Branchaud
Message 7 of 15 in “stash: Add --clean option to stash and remove all untracked files”
  1. stash: Add --clean option to stash and remove all untracked filesDavid Caldwell, Jun 20, 2011
  2. Jeff KingJun 21, 2011
  3. David CaldwellJun 21, 2011
  4. Andrew WongJun 21, 2011
  5. Johannes SixtJun 21, 2011
  6. Jeff KingJun 21, 2011
  7. Paul EbermannJun 21, 2011
  8. Marc BranchaudJun 21, 2011
  9. Miles BaderJun 22, 2011
  10. Jeff KingJun 22, 2011
  11. Junio C HamanoJun 21, 2011
  12. stash: Add --include-untracked option to stash and remove all untracked filesDavid Caldwell, Jun 24, 2011
  13. Matthieu MoyJun 24, 2011
  14. stash: Add --include-untracked option to stash and remove all untracked filesDavid Caldwell, Jun 25, 2011
  15. Junio C HamanoJun 26, 2011

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.