Skip to main content

graphite_trunk

Function graphite_trunk 

Source
pub fn graphite_trunk(repo: &Repository) -> Option<String>
Expand description

Return the first trunk branch name from .graphite_repo_config, or None if the file is missing, unparseable, or contains no trunk entries.

Use this when you need to pass --parent <trunk> to gt track and want to avoid hardcoding "main". Returns None rather than a hardcoded fallback so callers can omit --parent entirely and let gt infer when the trunk is unknown.