-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Use remote tracking branch if it's trunk #100
Conversation
Current Aviator status
This PR was merged using Aviator. |
e549644
to
9000130
Compare
parentSha, err := repo.RevParse(&git.RevParse{Rev: opts.NewParent}) | ||
parentBranch := opts.NewParent | ||
if opts.NewParentTrunk { | ||
parentBranch = "remotes/origin/" + opts.NewParent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that this is what we want by default. It will be surprising to people that don't use the "no local main
branch" workflow. Requiring users to pass origin/main
explicitly will probably be better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think I changed my mind on this. Assuming you always want to update on the latest version of trunk is probably reasonable. We can always add a --no-fetch
type flag if anyone ever needs that.
parentSha, err := repo.RevParse(&git.RevParse{Rev: opts.NewParent}) | ||
parentBranch := opts.NewParent | ||
if opts.NewParentTrunk { | ||
parentBranch = "remotes/origin/" + opts.NewParent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I think I changed my mind on this. Assuming you always want to update on the latest version of trunk is probably reasonable. We can always add a --no-fetch
type flag if anyone ever needs that.
9000130
to
b1ba753
Compare
No description provided.