4 ms·
Yes. The wire format docs, especially for HTTP, are atrocious. The pack format is well documented enough. (https://github.com/git/git/tree/maint/Documentation/t
by ori_b 4y ago
Yes. The wire format docs, especially for HTTP, are atrocious. The pack format is well documented enough. (https://github.com/git/git/tree/maint/Documentation/technical https://github.com/git/git/tree/maint/Documentation/technica...)
I wrote the 9front implementation (https://git.9front.org/plan9front/plan9front/HEAD/sys/src/cmd/git/f.html https://git.9front.org/plan9front/plan9front/HEAD/sys/src/cm...) more or less entirely from the official documentation in the git repo. For debugging, GIT_TRACE_PACKET=1 is very useful for getting valid packet traces.
Repacking efficiently for serving is the most annoying part, and I still haven't implemented delta reuse.
- masklinn 4y agoFWIW git has recently reorganised their docs a lot, and moved some things to man pages. The pack format docs were one of the documents affected, it now lives at https://github.com/git/git/blob/master/Documentation/gitformat-pack.txt https://github.com/git/git/blob/master/Documentation/gitform....