Re: [RFC PATCH] branch: add "inherit" option for branch.autoSetupMerge
- From
Glen Choo <chooglen@google.com>
- Date
- Oct 18, 2021, 18:08 UTC
- Message-ID
- <kl6ltuheyzmk.fsf@chooglen-macbookpro.roam.corp.google.com>
- In-Reply-To
- <kl6lwnmaz0gy.fsf@chooglen-macbookpro.roam.corp.google.com>
Glen Choo <chooglen@google.com> writes:
Show 11 quoted lines
> I believe that we can get the branch remote via struct branch. Instead > of reading the config, we could do something along the lines of: > > int *explicit; > struct branch *branch = branch_get(); > char *remote = remote_for_branch(branch, explicit); > /* Optionally check explicit if we don't want to fall back to > * "origin" */ > > I'm not sure which is the idiomatic way to get the branch remote, feel > free to correct me.
Gah, I read and responded to v1 thinking it was v3. Reading v3, it looks like the feedback is still relevant, so please pretend I responded to the right email :P