Skip to main content

Module git

Module git 

Source

Functions§

branches
checkout_pr
commit
NOTE: git:changed events are driven by frontend mutation invalidation (useGitCommit / useGitPush onSettled), not emitted from the backend.
create_pr
detect_github_repo_full_name
Best-effort primary owner/repo detection from git remote get-url origin.
detect_github_repo_full_names
Best-effort owner/repo detection from local Git remotes.
diff
normalize_github_repo_full_name
Normalize a GitHub owner/repo string or supported GitHub remote URL.
parse_github_remote_url
Parse a GitHub remote URL into owner/repo.
push
NOTE: git:changed events are driven by frontend mutation invalidation (useGitPush onSettled), not emitted from the backend.
reject_option_like_revision
CLI2-2: reject a revision/ref that git could misparse as an OPTION (argument injection). Values are already passed as argv (so there is no SHELL injection), but git still parses a leading-- arg as a flag, so a cloud- or PR-supplied ref like --upload-pack=… could smuggle a dangerous git flag. Legitimate git revisions never begin with - and never contain control characters, so refusing those is safe and closes the vector.
status