Debian Codegraph @

commands/run.go

raw symbols SCIP
1 package commandsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/
2
3 import (
4 "bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/"
5 "fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/"
6 "logscip-go gomod github.com/golang/go/src go1.25.0 log/"
7 "osscip-go gomod github.com/golang/go/src go1.25.0 os/"
8 "path/filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/"
9 "stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/"
10 "syncscip-go gomod github.com/golang/go/src go1.25.0 sync/"
11 "timescip-go gomod github.com/golang/go/src go1.25.0 time/"
12
13 "github.com/git-lfs/git-lfs/v3/configscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/"
14 "github.com/git-lfs/git-lfs/v3/toolsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/"
15 "github.com/git-lfs/git-lfs/v3/trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/"
16 "github.com/spf13/cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/"
17 )
18
19 var (
20 commandFuncsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/commandFuncs. []func() *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#
21 commandMuscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/commandMu. syncscip-go gomod github.com/golang/go/src go1.25.0 sync/.Mutexscip-go gomod github.com/golang/go/src go1.25.0 sync/Mutex#
22
23 rootVersionscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/rootVersion. bool
24 )
25
26 // NewCommand creates a new 'git-lfs' sub command, given a command name and
27 // command run function.
28 //
29 // Each command will initialize the local storage ('.git/lfs') directory when
30 // run, unless the PreRun hook is set to nil.
31 func NewCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/NewCommand().(name string, runFn func(*cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#, []string)) *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command# {
32 return &cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#{Usescip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Use.: name, Runscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Run.: runFn, PreRunscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#PreRun.: setupHTTPLoggerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/setupHTTPLogger().}
33 }
34
35 // RegisterCommand creates a direct 'git-lfs' subcommand, given a command name,
36 // a command run function, and an optional callback during the command
37 // initialization process.
38 //
39 // The 'git-lfs' command initialization is deferred until the `commands.Run()`
40 // function is called. The fn callback is passed the output from NewCommand,
41 // and gives the caller the flexibility to customize the command by adding
42 // flags, tweaking command hooks, etc.
43 func RegisterCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/RegisterCommand().(name string, runFn func(cmd *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#, args []string), fn func(cmd *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#)) {
44 commandMuscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/commandMu..Lockscip-go gomod github.com/golang/go/src go1.25.0 sync/Mutex#Lock().()
45 commandFuncsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/commandFuncs. = append(commandFuncsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/commandFuncs., func() *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command# {
46 cmd := NewCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/NewCommand().(name, runFn)
47 if fn != nil {
48 fn(cmd)
49 }
50 return cmd
51 })
52 commandMuscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/commandMu..Unlockscip-go gomod github.com/golang/go/src go1.25.0 sync/Mutex#Unlock().()
53 }
54
55 // Run initializes the 'git-lfs' command and runs it with the given stdin and
56 // command line args.
57 //
58 // It returns an exit code.
59 func Runscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/Run().() int {
60 logscip-go gomod github.com/golang/go/src go1.25.0 log/.SetOutputscip-go gomod github.com/golang/go/src go1.25.0 log/SetOutput().(ErrorWriterscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/ErrorWriter.)
61 trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/.InitializeLocalescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/InitializeLocale().()
62
63 root := NewCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/NewCommand().("git-lfs", gitlfsCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/gitlfsCommand().)
64 root.PreRunscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#PreRun. = nil
65
66 completionCmd := &cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#{
67 Usescip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Use.: "completion [bash|fish|zsh]",
68 DisableFlagsInUseLinescip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#DisableFlagsInUseLine.: true,
69 ValidArgsscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#ValidArgs.: []string{"bash", "fish", "zsh"},
70 Argsscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Args.: cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.MatchAllscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/MatchAll().(cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.ExactArgsscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/ExactArgs().(1), cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.OnlyValidArgsscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/OnlyValidArgs().),
71 Runscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Run.: func(cmd *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#, args []string) {
72 switch args[0] {
73 case "bash":
74 completion := new(bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.25.0 bytes/Buffer#)
75 cmd.Rootscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Root().().GenBashCompletionV2scip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#GenBashCompletionV2().(completion, false)
76
77 // this is needed for git bash completion to pick up the completion for the subcommand
78 completionSource := []byte(` local out directive
79 __git-lfs_get_completion_results
80 `)
81 completionReplace := []byte(` if [[ ${words[0]} == "git" && ${words[1]} == "lfs" ]]; then
82 words=("git-lfs" "${words[@]:2:${#words[@]}-2}")
83 __git-lfs_debug "Rewritten words[*]: ${words[*]},"
84 fi
85
86 local out directive
87 __git-lfs_get_completion_results
88 `)
89 newCompletion := bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.NewBufferscip-go gomod github.com/golang/go/src go1.25.0 bytes/NewBuffer().(bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.Replacescip-go gomod github.com/golang/go/src go1.25.0 bytes/Replace().(completion.Bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/Buffer#Bytes().(), completionSource, completionReplace, 1))
90 newCompletion.WriteStringscip-go gomod github.com/golang/go/src go1.25.0 bytes/Buffer#WriteString().("_git_lfs() { __start_git-lfs; }\n")
91
92 newCompletion.WriteToscip-go gomod github.com/golang/go/src go1.25.0 bytes/Buffer#WriteTo().(osscip-go gomod github.com/golang/go/src go1.25.0 os/.Stdoutscip-go gomod github.com/golang/go/src go1.25.0 os/Stdout.)
93 case "fish":
94 cmd.Rootscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Root().().GenFishCompletionscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#GenFishCompletion().(osscip-go gomod github.com/golang/go/src go1.25.0 os/.Stdoutscip-go gomod github.com/golang/go/src go1.25.0 os/Stdout., false)
95 case "zsh":
96 completion := new(bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.Bufferscip-go gomod github.com/golang/go/src go1.25.0 bytes/Buffer#)
97 cmd.Rootscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Root().().GenZshCompletionNoDescscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#GenZshCompletionNoDesc().(completion)
98
99 // this is needed for git zsh completion to use the right command for completion
100 completionSource := []byte(` requestComp="${words[1]} __completeNoDesc ${words[2,-1]}"`)
101 completionReplace := []byte(` requestComp="git-${words[1]#*git-} __completeNoDesc ${words[2,-1]}"`)
102 newCompletion := bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.NewBufferscip-go gomod github.com/golang/go/src go1.25.0 bytes/NewBuffer().(bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/.Replacescip-go gomod github.com/golang/go/src go1.25.0 bytes/Replace().(completion.Bytesscip-go gomod github.com/golang/go/src go1.25.0 bytes/Buffer#Bytes().(), completionSource, completionReplace, 1))
103
104 newCompletion.WriteToscip-go gomod github.com/golang/go/src go1.25.0 bytes/Buffer#WriteTo().(osscip-go gomod github.com/golang/go/src go1.25.0 os/.Stdoutscip-go gomod github.com/golang/go/src go1.25.0 os/Stdout.)
105 }
106 },
107 }
108
109 root.AddCommandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#AddCommand().(completionCmd)
110
111 // Set up help/usage funcs based on manpage text
112 helpcmd := &cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#{
113 Usescip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Use.: "help [command]",
114 Shortscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Short.: "Help about any command",
115 Longscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Long.: `Help provides help for any command in the application.
116 Simply type ` + root.Namescip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Name().() + ` help [path to command] for full details.`,
117
118 Runscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Run.: func(c *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#, args []string) {
119 cmd, _, e := c.Rootscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Root().().Findscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Find().(args)
120 // In the case of "git lfs help config" or "git lfs help
121 // faq", pretend the last arg was "help" so our command
122 // lookup succeeds, since cmd will be ignored in
123 // helpCommand().
124 if e != nil && (args[0] == "config" || args[0] == "faq") {
125 cmd, _, e = c.Rootscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Root().().Findscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Find().([]string{"help"})
126 }
127 if cmd == nil || e != nil {
128 c.Printlnscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Println().(trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/.Trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/Tr..Getscip-go gomod github.com/leonelquinteros/gotext v1.7.2 `github.com/leonelquinteros/gotext`/Locale#Get().("Unknown help topic %#q", args))
129 c.Rootscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Root().().Usagescip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Usage().()
130 } else {
131 c.HelpFuncscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#HelpFunc().()(cmd, args)
132 }
133 },
134 }
135
136 root.SetHelpCommandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#SetHelpCommand().(helpcmd)
137
138 root.SetHelpTemplatescip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#SetHelpTemplate().("{{.UsageString}}")
139 root.SetHelpFuncscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#SetHelpFunc().(helpCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/helpCommand().)
140 root.SetUsageFuncscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#SetUsageFunc().(usageCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/usageCommand().)
141
142 root.Flagsscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Flags().().BoolVarPscip-go gomod github.com/spf13/pflag v1.0.9 `github.com/spf13/pflag`/FlagSet#BoolVarP().(&rootVersionscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/rootVersion., "version", "v", false, "")
143
144 canonicalizeEnvironmentscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/canonicalizeEnvironment().()
145
146 cfgscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/cfg. = configscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/.Newscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/New().()
147
148 for _, f := range commandFuncsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/commandFuncs. {
149 if cmd := f(); cmd != nil {
150 root.AddCommandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#AddCommand().(cmd)
151 }
152 }
153
154 err := root.Executescip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Execute().()
155
156 if err != nil {
157 return 127
158 }
159 return 0
160 }
161
162 func gitlfsCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/gitlfsCommand().(cmd *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#, args []string) {
163 versionCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/versionCommand().(cmd, args)
164 if !rootVersionscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/rootVersion. {
165 cmd.Usagescip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Usage().()
166 }
167 }
168
169 func helpCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/helpCommand().(cmd *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#, args []string) {
170 if len(args) == 0 {
171 printHelpscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/printHelp().("git-lfs")
172 } else {
173 printHelpscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/printHelp().(args[0])
174 }
175 }
176
177 func usageCommandscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/usageCommand().(cmd *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#) error {
178 printHelpscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/printHelp().(cmd.Namescip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#Name().())
179 return nil
180 }
181
182 func printHelpscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/printHelp().(commandName string) {
183 switch commandName {
184 case "--help", "-h":
185 commandName = "git-lfs"
186 }
187 if txt, ok := ManPagesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/ManPages.[commandName]; ok {
188 fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Printlnscip-go gomod github.com/golang/go/src go1.25.0 fmt/Println().(stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/.TrimSpacescip-go gomod github.com/golang/go/src go1.25.0 strings/TrimSpace().(txt))
189 } else {
190 fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Printlnscip-go gomod github.com/golang/go/src go1.25.0 fmt/Println().(trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/.Trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/Tr..Getscip-go gomod github.com/leonelquinteros/gotext v1.7.2 `github.com/leonelquinteros/gotext`/Locale#Get().("Sorry, no usage text found for %q", commandName))
191 }
192 }
193
194 func setupHTTPLoggerscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/setupHTTPLogger().(cmd *cobrascip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/.Commandscip-go gomod github.com/spf13/cobra v1.10.2 `github.com/spf13/cobra`/Command#, args []string) {
195 if len(osscip-go gomod github.com/golang/go/src go1.25.0 os/.Getenvscip-go gomod github.com/golang/go/src go1.25.0 os/Getenv().("GIT_LOG_STATS")) < 1 {
196 return
197 }
198
199 logBase := filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/.Joinscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/Join().(cfgscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/cfg..LocalLogDirscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Configuration#LocalLogDir().(), "http")
200 if err := toolsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/.MkdirAllscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tools`/MkdirAll().(logBase, cfgscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/cfg.); err != nil {
201 fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Fprintlnscip-go gomod github.com/golang/go/src go1.25.0 fmt/Fprintln().(osscip-go gomod github.com/golang/go/src go1.25.0 os/.Stderrscip-go gomod github.com/golang/go/src go1.25.0 os/Stderr., trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/.Trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/Tr..Getscip-go gomod github.com/leonelquinteros/gotext v1.7.2 `github.com/leonelquinteros/gotext`/Locale#Get().("Error logging HTTP stats: %s", err))
202 return
203 }
204
205 logFile := fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.25.0 fmt/Sprintf().("http-%d.log", timescip-go gomod github.com/golang/go/src go1.25.0 time/.Nowscip-go gomod github.com/golang/go/src go1.25.0 time/Now().().Unixscip-go gomod github.com/golang/go/src go1.25.0 time/Time#Unix().())
206 file, err := osscip-go gomod github.com/golang/go/src go1.25.0 os/.Createscip-go gomod github.com/golang/go/src go1.25.0 os/Create().(filepathscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/.Joinscip-go gomod github.com/golang/go/src go1.25.0 `path/filepath`/Join().(logBase, logFile))
207 if err != nil {
208 fmtscip-go gomod github.com/golang/go/src go1.25.0 fmt/.Fprintlnscip-go gomod github.com/golang/go/src go1.25.0 fmt/Fprintln().(osscip-go gomod github.com/golang/go/src go1.25.0 os/.Stderrscip-go gomod github.com/golang/go/src go1.25.0 os/Stderr., trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/.Trscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/tr`/Tr..Getscip-go gomod github.com/leonelquinteros/gotext v1.7.2 `github.com/leonelquinteros/gotext`/Locale#Get().("Error logging HTTP stats: %s", err))
209 } else {
210 getAPIClientscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/commands`/getAPIClient().().LogHTTPStatsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfsapi`/Client#LogHTTPStats().(file)
211 }
212 }