Skip to content

Why does submit perform a fetch #671

Answered by arxanas
jakejx asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jakejx, thanks for reporting. This is something I didn't implement rather than a feature. The reason that we do a fetch at all is to determine if the branch was updated as part of the submit operation or not, but this only requires that we fetch your remote branches. If you're interested, I can show you where in the code you could make the changes to only fetch your relevant branches.

For the general Git mechanism to reduce fetched branches, you should use a refspec and specify that you only want to fetch the repository main branch(es) and possibly your own branches. You can always manually fetch a given branch by name later before switching to it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jakejx
Comment options

Answer selected by jakejx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants