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

Re: Bug: stash save -u removes (some) ignored files

From
FSFelipe Sateler <fsateler@debian.org>
Date
Nov 4, 2015, 12:27 UTC
Message-ID
<CAAfdZj_t86AuhU7dgx81-MXFp7Fe=TCZ0uzRu37+FUp80mvy5Q@mail.gmail.com>
In-Reply-To
<CA+izobsNJ+Aj6JwFTtZVD_+8m9uXV-iiM7Z2aYWNCnWXFd82Dg@mail.gmail.com>
On 4 November 2015 at 03:23, Atousa Duprat <atousa.p@gmail.com> wrote:
Show 10 quoted lines
>> felipe@felipe:testgit% git stash save -u
>
> This does the following:
> $ GIT_TRACE=1 git stash save -u
> [...]
> 21:59:10.606094 git.c:348               trace: built-in: git 'clean'
> '--force' '--quiet' '-d'
>
> git-clean -d removes untracked directories in addition to untracked files.
> Should 'git stash save -u' issue a 'git clean -d' or simply a 'git clean'?

It appears to be intentionally done[1]. Maybe the problem is that git-clean -d should not remove untracked directories that contain ignored files?

[1] http://article.gmane.org/gmane.comp.version-control.git/180214
-- 
Saludos,
Felipe Sateler
Previous: Atousa Duprat
Message 3 of 3 in “Bug: stash save -u removes (some) ignored files”
  1. Felipe SatelerNov 3, 2015
  2. Atousa DupratNov 4, 2015
  3. Felipe SatelerNov 4, 2015

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.