Skip to content

Commit 782ef44

Browse files
runningcodeclaude
andcommitted
docs: Update git_repo_base_repo_name doc comment to reflect upstream preference
Update function documentation to correctly reflect that we now prefer "upstream" remote first, then "origin", then first available remote. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 613e9c9 commit 782ef44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/vcs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ fn find_merge_base_ref(
284284
}
285285

286286
/// Attempts to get the base repository name from git remotes.
287-
/// Prefers "origin" remote if it exists, otherwise uses the first available remote.
287+
/// Prefers "upstream" remote if it exists, then "origin", otherwise uses the first available remote.
288288
/// Returns the base repository name if a remote is found.
289289
pub fn git_repo_base_repo_name(repo: &git2::Repository) -> Result<Option<String>> {
290290
let remotes = repo.remotes()?;

0 commit comments

Comments
 (0)