Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable fetching on branch creation #99

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TamaMcGlinn
Copy link

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
Author

This fixes #85

@HoffsMH
Copy link

HoffsMH commented Nov 28, 2022

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
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