Skip to content

Add option to disable fetching on branch creation#99

Open
TamaMcGlinn wants to merge 1 commit into
ThePrimeagen:masterfrom
TamaMcGlinn:master
Open

Add option to disable fetching on branch creation#99
TamaMcGlinn wants to merge 1 commit into
ThePrimeagen:masterfrom
TamaMcGlinn:master

Conversation

@TamaMcGlinn

Copy link
Copy Markdown

I had this code commented out for the past half year; time to formalise the option so others can use it.

For me, an additional fetch is really annoying because it adds more than 10 seconds to this workflow which I use multiple times per day, and I already have a different binding to fetch explicitly.

Default behaviour unchanged; add this to your config to skip fetch (also updated the docs):

require("git-worktree").setup({
    fetch_on_create = false
})

@TamaMcGlinn

Copy link
Copy Markdown
Author

This fixes #85

@HoffsMH

HoffsMH commented Nov 28, 2022

Copy link
Copy Markdown

would love to see this, for those of us who have our ssh credentials on something like a yubikey that requires a touch to activate this sort of thing can get annoying

@TamaMcGlinn

Copy link
Copy Markdown
Author

@ThePrimeagen could you please merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants