Re: [PATCH v2 00/10] Use a structure for object IDs.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 8, 2015, 07:43 UTC
- Message-ID
- <xmqqa8zoszmj.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <1425770645-628957-1-git-send-email-sandals@crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 6 quoted lines
> Certain parts of the code have to be converted before others to keep the > patch sizes small, maintainable, and bisectable, so functions and > structures that are used across the codebase (e.g. struct object) will > be converted later. Conversion has been done in a somewhat haphazard > manner by converting modules with leaf functions and less commonly used > structs first.
That "leaf-first" approach sounds very sensible.
In the medium term, I wonder if the changes can progress faster and in a less error prone way if you first used GIT_SHA1_RAWSZ in places that cannot be immediately converted to the struct yet. That way, we will be easily tell by "git grep GIT_SHA1_RAWSZ" how many more places need treatment. I do not know if that is all that useful offhand, though. Those places need to be touched in the second pass to use the struct again, after the "s/\[20\]/[GIT_SHA1_RAWSZ]/" first pass.