git-worktree.nvim icon indicating copy to clipboard operation
git-worktree.nvim copied to clipboard

Add option to disable fetching on branch creation

Open TamaMcGlinn opened this issue 2 years ago • 3 comments

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 avatar Sep 15 '22 15:09 TamaMcGlinn

This fixes #85

TamaMcGlinn avatar Oct 13 '22 06:10 TamaMcGlinn

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

HoffsMH avatar Nov 28 '22 20:11 HoffsMH

@ThePrimeagen could you please merge this?

TamaMcGlinn avatar Mar 14 '23 10:03 TamaMcGlinn