Skip to main contentModule git
Source - archive
- Run git archive and return the archive bytes.
- branches
- Get branch list for a repo (blocking, for TUI use).
- contributors
- Get contributors sorted by number of commits (blocking, for TUI use).
- file_tree
- List the file tree from HEAD for a repo (blocking, for TUI use).
- info_refs
- Run git info/refs advertisement (for both v1 and v2).
- init_repo
- Initialize a git repo with working tree and all features enabled.
Git internals are stored in .git/, and pushed files are checked out.
- is_git_repo
- Check if a path is a git repo (bare or non-bare).
- languages
- Analyze language distribution by file extension (blocking, for TUI use).
Returns lines like: “Rust 1234 lines 45.2%”
- last_activity
- Read the last activity entry for a repo. Returns (unix_timestamp, kind).
- recent_commits
- Get recent commits for a repo (blocking, for TUI use).
- record_activity
- Record an activity event (push, pull, fetch) for a repo.
- run_pack
- Run git upload-pack or receive-pack (stateless RPC).
- spawn_git
- Run git upload-pack or receive-pack directly (for SSH, non-stateless).
Returns the child process for piping.
- spawn_upload_archive
- Run git-upload-archive for SSH transport.