Re: status letters consistency in log and ls-files
- From
- Leo Razoumov <slonik.az@gmail.com>
- Date
- Sep 27, 2008, 03:20 UTC
- Message-ID
- <ee2a733e0809262020l318b0ac3v560400d95a5ba2b7@mail.gmail.com>
- In-Reply-To
- <20080927002949.GA25586@coredump.intra.peff.net>
On 9/26/08, Jeff King <peff@peff.net> wrote:
Show 20 quoted lines
> On Fri, Sep 26, 2008 at 07:24:11PM -0400, Leo Razoumov wrote: > > > Another script takes output of > > git ls-files -v -c -d -m -o -k > > and for each file pulls together all the file status letters in one record. > > > OK. I was thinking I could suggest just using "git diff" here instead. > E.g.,: > > git diff --name-status > > will show you the modified and deleted files. But since you are using > "-c" to show _all_ cached files, I think only ls-files can do that > (since diff is, obviously, about files with differences). > > So I'm not sure there is a straight-forward solution short of > translating the status codes. > > -Peff
Moreover, git diff would not show untracked files while git ls-files will include them and label '?'
--Leo--