Skip to main content

Module actions

Module actions 

Source
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_branch startup 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.

Functions§

get_git_event_types