Teach Remote to transform references using its default fetchspec#349
Teach Remote to transform references using its default fetchspec#349jamill wants to merge 1 commit into
Conversation
|
@jamill Could you please share some information describing when this feature should be used from the consumer standpoint? |
|
@nulltoken This can be used to identify the remote branch that a local branch would track when it is pushed up to the server. With the current API to set the upstream tracking branch, you have to pass in the reference to the tracked branch. This means to push up a new branch ( After pushing this up, I think a better way to achieve this is to expose a way to set the upstream remote / merge branch directly on a local branch (so, I could set the merge branch directly as This method still could still be useful if you wanted to check what a local branch's remote branch would be... |
|
@nulltoken - with #353, I don't think this functionality is explicity required for my scenario - but it does work and might be useful later on (or to someone else). Howe would you like to proceed? Is this functionality something that might be useful? |
|
I don't have other use cases for this at this time. I will close it now. Thanks. |
Expose the refspec transform for a remote's default fetchspec.