[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Git internal format and compatibilty

Raphael Hertzog wrote:
> > By contrast to old formats like tar, the git pack (and idx) formats _do_
> > contain a version number. Three versions exist: Version 1 was never
> > broadly used. ("Throw one away".) Version 3 is not generated by current
> > versions of git. Git might start generating it at some point in the future,
> > but has already supported reading it since 2006 -- a positively
> > Debianish update schedule. Version 2 is what everyone uses now.
> Is there a way to extract that version number with a git command line?

It should be possible to teach file to do it, since it's just a matter
of reading a C struct header.

see shy jo

Attachment: signature.asc
Description: Digital signature

Reply to: