* [BUG?] ls-files -d does not show files removed using 'git rm'
@ 2008-08-22 15:59 Girish Ramakrishnan
2008-08-22 16:49 ` Michael J Gruber
0 siblings, 1 reply; 2+ messages in thread
From: Girish Ramakrishnan @ 2008-08-22 15:59 UTC (permalink / raw)
To: git
If I remove a file using the shell rm, it is listed by ls-files -d.
However, it is not listed if I use 'git rm'.
$ rm foo
$ git ls-files -t -d
R foo
$ git checkout foo
$ git rm foo
rm 'foo'
$ git ls-files -t -d
$
Is this a bug? In any case, is there a way to find out what files have
been removed using git rm using ls-files (git status does show it)?
Girish
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG?] ls-files -d does not show files removed using 'git rm'
2008-08-22 15:59 [BUG?] ls-files -d does not show files removed using 'git rm' Girish Ramakrishnan
@ 2008-08-22 16:49 ` Michael J Gruber
0 siblings, 0 replies; 2+ messages in thread
From: Michael J Gruber @ 2008-08-22 16:49 UTC (permalink / raw)
To: git
Girish Ramakrishnan venit, vidit, dixit 22.08.2008 17:59:
> If I remove a file using the shell rm, it is listed by ls-files -d.
> However, it is not listed if I use 'git rm'.
>
> $ rm foo
> $ git ls-files -t -d
> R foo
> $ git checkout foo
> $ git rm foo
> rm 'foo'
> $ git ls-files -t -d
> $
>
> Is this a bug? In any case, is there a way to find out what files have
> been removed using git rm using ls-files (git status does show it)?
git ls-files combines the listing from the index with the listing from
the workdir. A git rm'ed file is present in neither.
git diff --cached --name-only --diff-filter=D
would show all files which are staged for deletion (git rm'ed).
Michael
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-22 16:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-22 15:59 [BUG?] ls-files -d does not show files removed using 'git rm' Girish Ramakrishnan
2008-08-22 16:49 ` Michael J Gruber
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).