Re: [PATCH 3/3] hash-object doc: point to ls-files and rev-parse

2019-05-21 Thread Jeff King
On Mon, May 20, 2019 at 11:53:12PM +0200, Ævar Arnfjörð Bjarmason wrote: > Amend the intro to note that it's better to ask the index about files > already tracked by it. > > I've seen uses of this in the wild where the use-case was finding > object IDs for files found in a freshly cloned repo, i.

[PATCH 3/3] hash-object doc: point to ls-files and rev-parse

2019-05-20 Thread Ævar Arnfjörð Bjarmason
Amend the intro to note that it's better to ask the index about files already tracked by it. I've seen uses of this in the wild where the use-case was finding object IDs for files found in a freshly cloned repo, i.e. something like "git ls-files | git hash-object --stdin-paths". Signed-off-by: Æv