Re: Git issues with submodules
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Nov 22, 2013, 16:12 UTC
- Message-ID
- <CALkWK0myk5fWcHdwNtjct4Ji4y4=iVT36wZxqOqZS6S7kem+OQ@mail.gmail.com>
- In-Reply-To
- <20131122151120.GA32361@sigill.intra.peff.net>
Jeff King wrote:
Show 8 quoted lines
>> I just checked it out: it uses `git ls-files -m` to get the list of >> unstaged changes; `git diff --name-only HEAD --` will list staged >> changes as well. > > That diff command compares the working tree and HEAD; if you are trying > to match `ls-files -m`, you probably wanted just `git diff --name-only` > to compare the working tree and the index. Although in a script you'd > probably want to use the plumbing `git diff-files` instead.
Thanks for that. It's probably not worth fixing ls-files; I'll patch Arcanist to use diff-files instead.