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

Function init

commands/command_install.go:95–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func init() {
96 RegisterCommand("install", installCommand, func(cmd *cobra.Command) {
97 cmd.Flags().BoolVarP(&forceInstall, "force", "f", false, "Set the Git LFS global config, overwriting previous values.")
98 cmd.Flags().BoolVarP(&localInstall, "local", "l", false, "Set the Git LFS config for the local Git repository only.")
99 cmd.Flags().StringVarP(&fileInstall, "file", "", "", "Set the Git LFS config for the given configuration file only.")
100 if git.IsGitVersionAtLeast("2.20.0") {
101 cmd.Flags().BoolVarP(&worktreeInstall, "worktree", "w", false, "Set the Git LFS config for the current Git working tree, if multiple working trees are configured; otherwise, the same as --local.")
102 }
103 cmd.Flags().BoolVarP(&systemInstall, "system", "", false, "Set the Git LFS config in system-wide scope.")
104 cmd.Flags().BoolVarP(&skipSmudgeInstall, "skip-smudge", "s", false, "Skip automatic downloading of objects on clone or pull.")
105 cmd.Flags().BoolVarP(&skipRepoInstall, "skip-repo", "", false, "Skip repo setup, just install global filters.")
106 cmd.Flags().BoolVarP(&manualInstall, "manual", "m", false, "Print instructions for manual install.")
107 cmd.AddCommand(NewCommand("hooks", installHooksCommand))
108 })
109}

Callers

nothing calls this directly

Calls 3

IsGitVersionAtLeastFunction · 0.92
RegisterCommandFunction · 0.85
NewCommandFunction · 0.85

Tested by

no test coverage detected