MCPcopy Create free account
hub / github.com/codemod/codemod / detect_remote_base_branch

Function detect_remote_base_branch

crates/core/src/git_ops.rs:449–495  ·  view source on GitHub ↗

Detect the remote default branch (e.g. "main" or "master"). If the `CODEMOD_BASE_BRANCH` environment variable is set and non-empty, its value is used directly without any git detection.

(working_dir: &std::path::Path)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

create_pull_requestFunction · 0.85

Calls 3

successMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…