MCPcopy
hub / github.com/git-lfs/git-lfs / init

Function init

commands/command_uninstall.go:35–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func init() {
36 RegisterCommand("uninstall", uninstallCommand, func(cmd *cobra.Command) {
37 cmd.Flags().BoolVarP(&localInstall, "local", "l", false, "Remove the Git LFS config for the local Git repository only.")
38 cmd.Flags().StringVarP(&fileInstall, "file", "", "", "Remove the Git LFS config for the given configuration file only.")
39 if git.IsGitVersionAtLeast("2.20.0") {
40 cmd.Flags().BoolVarP(&worktreeInstall, "worktree", "w", false, "Remove the Git LFS config for the current Git working tree, if multiple working trees are configured; otherwise, the same as --local.")
41 }
42 cmd.Flags().BoolVarP(&systemInstall, "system", "", false, "Remove the Git LFS config in system-wide scope.")
43 cmd.Flags().BoolVarP(&skipRepoInstall, "skip-repo", "", false, "Skip repo setup, just uninstall global filters.")
44 cmd.AddCommand(NewCommand("hooks", uninstallHooksCommand))
45 })
46}

Callers

nothing calls this directly

Calls 3

IsGitVersionAtLeastFunction · 0.92
RegisterCommandFunction · 0.85
NewCommandFunction · 0.85

Tested by

no test coverage detected