Thread (69 messages) flat view 69 messages, 5 authors, 2022-01-20

Re: [RFC PATCH] branch: add "inherit" option for branch.autoSetupMerge

From: Glen Choo <hidden>
Date: 2021-10-18 18:08:40

Glen Choo [off-list ref] writes:
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help