Re: [PATCH v2 1/4] Refactor skipping DOS drive prefixes
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 8, 2016, 22:07 UTC
- Message-ID
- <xmqq8u3z20aj.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAPig+cRRaMbEGibYnQBTfGFQT6fybNU8e6ZAkX11V-TLAo9AfA@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 9 quoted lines
> With this change, code such as: > > for (i = has_dos_drive_prefix(src); i > 0; i--) > ... > > in path.c reads a bit oddly. Renaming the function might help. For instance: > > for (i = dos_drive_prefix_len(src); i > 0; i--) > ...
Renaming may be unnecessary churn, but I do not think we mind an additional synonym, e.g.
#define has_dos_drive_prefix(x) dos_drive_prefix_len(x)
if some people prefer.