jacebrowning / jacebrowning/gitman

Checkout branches when possible

Open
#74 6 comments 0 reactions 0 assignees View on GitHub
chore help wanted
Dominant language
Python
Stars
225
Forks
36
Avg merge
15h 47m
Merged PRs (30d)
8

Description

Even when tracking a SHA, first try checking out the branch to see if the current head matches the desired ref. This will leave the nested repository in a better state for ongoing development.

Contributor guide

Open the contributing guide

Research direction

Start by locating the checkout and ref-resolution logic for nested repositories, then read any nearby tests. Verify the existing behavior when tracking a SHA, and confirm that branch checkout is attempted first when the branch head matches the desired ref, leaving the nested repository on that branch when possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, python
Domain
cli, devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.