{"thread":{"id":"15165","subject":"[BUG?] ls-files -d does not show files removed using 'git rm'","startedAt":"2008-08-22T15:59:29Z","lastAt":"2008-08-22T16:49:49Z","messageCount":2,"participants":["Girish Ramakrishnan","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"88149","messageId":"48AEE261.8070906@forwardbias.in","threadId":"15165","inReplyTo":null,"subject":"[BUG?] ls-files -d does not show files removed using 'git rm'","fromName":"Girish Ramakrishnan","fromEmail":"girish@forwardbias.in","sentAt":"2008-08-22T15:59:29Z","receivedAt":"2008-08-22T15:59:29Z","isPatch":false,"sender":{"key":"girish@forwardbias.in","avatar":null},"body":"If I remove a file using the shell rm, it is listed by ls-files -d.\nHowever, it is not listed if I use 'git rm'.\n\n$ rm foo\n$ git ls-files -t -d\nR foo\n$ git checkout foo\n$ git rm foo\nrm 'foo'\n$ git ls-files -t -d\n$\n\nIs this a bug? In any case, is there a way to find out what files have\nbeen removed using git rm using ls-files (git status does show it)?\n\nGirish\n"},{"id":"88157","messageId":"g8mqnf$ncv$1@ger.gmane.org","threadId":"15165","inReplyTo":"48AEE261.8070906@forwardbias.in","subject":"Re: [BUG?] ls-files -d does not show files removed using 'git rm'","fromName":"Michael J Gruber","fromEmail":"michaeljgruber+gmane@fastmail.fm","sentAt":"2008-08-22T16:49:49Z","receivedAt":"2008-08-22T16:49:49Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Girish Ramakrishnan venit, vidit, dixit 22.08.2008 17:59:\n> If I remove a file using the shell rm, it is listed by ls-files -d.\n> However, it is not listed if I use 'git rm'.\n> \n> $ rm foo\n> $ git ls-files -t -d\n> R foo\n> $ git checkout foo\n> $ git rm foo\n> rm 'foo'\n> $ git ls-files -t -d\n> $\n> \n> Is this a bug? In any case, is there a way to find out what files have\n> been removed using git rm using ls-files (git status does show it)?\n\ngit ls-files combines the listing from the index with the listing from\nthe workdir. A git rm'ed file is present in neither.\n\ngit diff --cached --name-only --diff-filter=D\n\nwould show all files which are staged for deletion (git rm'ed).\n\nMichael\n"}]}