From: Jakub Narebski Date: Wed, 03 Jun 2009 21:20:19 GMT Subject: Re: Request for detailed documentation of git pack protocol Message-ID: <200906032320.23559.jnareb@gmail.com> In-Reply-To: On Wed, 3 Jan 2009, Tony Finch wrote: > On Wed, 3 Jun 2009, Jakub Narebski wrote: > > > > HEXDIGIT = 0-9 / a-f > > > > Well, it should probably be spelled in full. Probably, because I have > > no experience with using ABNF... and didn't do my research :-) > > The ABNF core rules include a definition for HEXDIG. See appendix B of > RFC 5234. I have found it _after_ sending this post in Wikipedia article (which is shorter than RFC 5234), but thanks anyway. > > (should HEXDIGIT use lowercase a-f, or can it use uppercase A-F?) > > Double-quoted strings in ABNF are case-insensitive ASCII, so the HEXDIG > rule accepts both. You need to use %x61 if you want a but not A. HEXDIG_LC = DIGIT / %x61-%x66 ; 0-9a-f, case sensitive Actually git accepts both lowercase and uppercase in HEXDIG (at least for pkt-length), but it prefers lowercase. -- Jakub Narebski Poland