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

Uninstall improvements #3326

Merged
merged 3 commits into from
Oct 18, 2018
Merged

Uninstall improvements #3326

merged 3 commits into from
Oct 18, 2018

Conversation

bk2204
Copy link
Member

@bk2204 bk2204 commented Oct 17, 2018

This series introduces a set of improvements to git lfs uninstall. First, the --system option is documented. Second, we print a more accurate message about which configuration is modified when the --system option is provided. Finally, we add a --skip-repo option for parallelism with git lfs install.

I will admit that there is some slight duplication in 5541da6, but I was unable to find an elegant way to avoid it.

This series fixes #3322, fixes #3323, and fixes #3324.

We provide a --system option for git lfs uninstall, but we forgot to
document it.  Do so to help people find it more easily.
When running git lfs uninstall --system, we would tell the user that the
global (i.e., per-user) Git LFS configuration had been removed, even
though we had in fact modified the system configuration and not the
global one.  Print the correct message so as not to confuse users.
git lfs install has a --skip-repo option, which prevents any attempt to
modify the repo if run from within one.  Add such an option for git lfs
uninstall as well.  Document it and add tests for its functionality.
@bk2204 bk2204 requested a review from a team October 17, 2018 19:02
Copy link
Contributor

@ttaylorr ttaylorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks all very sane to me. I tried to do something similar a number of years ago (#1521), but I'm glad that this is finally making its way through.

@bk2204 bk2204 merged commit b849526 into git-lfs:master Oct 18, 2018
@bk2204 bk2204 deleted the uninstall-improvements branch October 18, 2018 16:01
@carlwgeorge
Copy link
Contributor

Thanks for this!

@carlwgeorge
Copy link
Contributor

I'm not familiar with your release cadence. Will this be in a tagged release soon? If not I'm fine with adding it to Fedora's RPMs with a patch.

@ttaylorr
Copy link
Contributor

I'm not familiar with your release cadence. Will this be in a tagged release soon?

We usually release a new 2.x.0 version every ~3 or so months. There should be one out next week, which will include this.

@ttaylorr ttaylorr added this to the v2.6.0 milestone Oct 18, 2018
@carlwgeorge
Copy link
Contributor

Perfect, I won't bother with a local patch and just wait till next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants