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

Function installHooksCommand

commands/command_install.go:80–93  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

78}
79
80func installHooksCommand(cmd *cobra.Command, args []string) {
81 updateForce = forceInstall
82
83 // TODO(@ttaylorr): this is a hack since the `git-lfs-install(1)` calls
84 // into the function that implements `git-lfs-update(1)`. Given that,
85 // there is no way to pass flags into that function, other than
86 // hijacking the flags that `git-lfs-update(1)` already owns.
87 //
88 // At a later date, extract `git-lfs-update(1)`-related logic into its
89 // own function, and translate this flag as a boolean argument to it.
90 updateManual = manualInstall
91
92 updateCommand(cmd, args)
93}
94
95func init() {
96 RegisterCommand("install", installCommand, func(cmd *cobra.Command) {

Callers 1

installCommandFunction · 0.85

Calls 1

updateCommandFunction · 0.85

Tested by

no test coverage detected