aviator-co / av

A command line tool to manage stacked PRs with Aviator
https://aviator.co
MIT License
149 stars 12 forks source link

Allow user to specify a different refspec for remote tracking branches #354

Open draftcode opened 2 months ago

draftcode commented 2 months ago

In some cases, users do not want to keep the remote tracking branches small, e.g. sync only the trunk branch. This allows the user to avoid accidentally checking out a branch from a remote tracking branch.

av-cli has been depending on the remote tracking branch. Initially, it's been assuming that it's +refs/heads/*:refs/remotes/origin/*, but now we take the remote name as well as using the refspec properly to do a map/reverse-map the remote tracking branches.

Going further, we can make av-cli to take a different refspec for its own usage in the config. This would make most of the tools ignore those refs.