Re: [PATCH v2 0/4] UTF8 BOM follow-up
- From
Jeff King <peff@peff.net>
- Date
- Apr 16, 2015, 19:26 UTC
- Message-ID
- <20150416192629.GA13601@peff.net>
- In-Reply-To
- <1429209548-32297-1-git-send-email-gitster@pobox.com>
On Thu, Apr 16, 2015 at 11:39:04AM -0700, Junio C Hamano wrote:
Show 12 quoted lines
> This is on top of the ".gitignore can start with UTF8 BOM" patch > from Carlos. > > Second try; the first patch is new to clarify the logic in the > codeflow after Carlos's patch, and the second one has been adjusted > accordingly. > > Junio C Hamano (4): > add_excludes_from_file: clarify the bom skipping logic > utf8-bom: introduce skip_utf8_bom() helper > config: use utf8_bom[] from utf.[ch] in git_parse_source() > attr: skip UTF8 BOM at the beginning of the input file
This one looks OK to me. The manual adjustment of "size" in the second one is a little funny, but I guess avoiding a pointer for that size parameter makes the final one (that uses strlen) a lot easier.
-Peff