Re: [PATCH 2/2] Revert "repository: pre-initialize hash algo pointer"
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 23, 2018, 19:50 UTC
- Message-ID
- <xmqqfu5rtrhg.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <CAGZ79karK7MT_qpFyYfVkioeBsBHidGdC_QfisPmG1a4dQuk5A@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
Show 5 quoted lines
> I wonder if there is yet another missing case in the enumeration of > the previous patch: > Some commands are able to operate on GIT_OBJECT_DIR instead > of GIT_DIR (git repack?), which may not even explore the full git directory, > and so doesn't know about the hash value.
... because GIT_DIR/config is not known? "repack" is not one of them, though---it needs to at least use refs as the starting point so a standalone OBJECT_DIR is insufficient.