Expand description
Git Smart HTTP protocol actions
The model describes a repository as structured data - branch, commit message, and a list
of {path, content} files - and the server compiles that into real Git objects
(super::pack). It never asks the model for object IDs or pack bytes: SHA-1s are derived
from the content, so the refs advertised by GET /info/refs and the objects in the pack
returned by POST /git-upload-pack agree and git clone can actually complete.
Structs§
- GitProtocol
- Git Smart HTTP protocol implementation
Constants§
- DEFAULT_
COMMIT_ TIMESTAMP - Commit timestamp used when the action does not supply one.
- FALLBACK_
BRANCH - Branch used when neither the action nor the
default_branchstartup parameter says.
Statics§
- GIT_
INFO_ REFS_ EVENT - Reference discovery:
GET /<repo>/info/refs?service=git-upload-pack. - GIT_
UPLOAD_ PACK_ EVENT - Object transfer:
POST /<repo>/git-upload-pack.