Skip to main contentModule git
Source - RepoInfo
- Describes what the user-supplied path resolves to.
- TempCloneDir
- A temporary directory that deletes itself on drop.
- clone_repo
- Clones a remote git repository into
dest. - file_last_modified
- Returns the last-modified date (YYYY-MM-DD) for a single file.
In git mode: from
git log. In plain mode: from filesystem mtime. - file_last_modified_dates
- Returns a map of file path → last modified date (YYYY-MM-DD).
In git mode: parsed from
git log. In directory mode: from filesystem mtime. - fs_dir_size
- Returns the total size of all files under
path as a human-readable string (e.g. "4.2 MB"). - fs_owner_group
- Returns the filesystem owner username and group name for
path. - get_metadata
- Fetches repository metadata: branch, last commit hash/date/message, and name.
- git_remote_url
- Returns the remote URL for
origin, if one is configured. - git_tracked_size
- Returns the total size of all git-tracked files as a human-readable string (e.g.
"3.8 MB"). - is_remote_url
- Returns
true if s looks like a remote git URL. - list_repo_tags
- Lists all version tags in a repository, sorted newest first.
- list_tracked_files
- Lists all files to be included in the PDF.
- read_file_content
- repo_name_from_url
- Extracts the repository name from a remote URL.
- verify_repo
- Resolves a user-supplied path into a
RepoInfo.