Re: Request for detailed documentation of git pack protocol
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jun 3, 2009, 21:20 UTC
- Message-ID
- <200906032320.23559.jnareb@gmail.com>
- In-Reply-To
- <alpine.LSU.2.00.0906032147330.31588@hermes-2.csi.cam.ac.uk>
On Wed, 3 Jan 2009, Tony Finch wrote:
Show 9 quoted lines
> 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