Re: [PATCH/RFC v2 0/16] Introduce index file format version 5
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 6, 2012, 15:51 UTC
- Message-ID
- <7vzk68yq5d.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1344263760-31191-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
Show 10 quoted lines
> These mails are about cosmetics only. But I think it helps maintenance > in long term. I notice in your series we have many functions with _v2 > and _v5 mixed together. Worse, some functions that are _v2 only are > not suffixed with _v2. I still think separating v2/v5 changes is a > good idea. So I played a bit, see how it might become. > > The next two emails demonstrate how we take v2-specific code out to > read-cache-v2.c, then add v5 code in the next patch. Notice there's very > little change in read-cache.c in the second patch. I wanted to see how > v5 changes affects v2 users and the second patch shows it.
I like the splitting of the backend into two files; it is a good direction to go, but I really prefer to see it done way before in the series, so that many symbols in read-cache-v2.c do not have to be contaminated with foo_v2 suffix, and similarly _v5 suffix for symbols in read-cache-v5.c when they are added.