From: Leo Razoumov Date: Sat, 27 Sep 2008 03:20:03 GMT Subject: Re: status letters consistency in log and ls-files Message-ID: In-Reply-To: <20080927002949.GA25586@coredump.intra.peff.net> On 9/26/08, Jeff King wrote: > 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--