MCPcopy
hub / github.com/mislav/hub / gitCmd

Function gitCmd

git/git.go:353–365  ·  view source on GitHub ↗
(args ...string)

Source from the content-addressed store, hash-verified

351}
352
353func gitCmd(args ...string) *cmd.Cmd {
354 cmd := cmd.New("git")
355
356 for _, v := range GlobalFlags {
357 cmd.WithArg(v)
358 }
359
360 for _, a := range args {
361 cmd.WithArg(a)
362 }
363
364 return cmd
365}
366
367func IsBuiltInGitCommand(command string) bool {
368 helpCommand := gitCmd("help", "--no-verbose", "-a")

Callers 15

VersionFunction · 0.85
DirFunction · 0.85
WorkdirNameFunction · 0.85
HasFileFunction · 0.85
EditorFunction · 0.85
SymbolicRefFunction · 0.85
SymbolicFullNameFunction · 0.85
RefFunction · 0.85
RefListFunction · 0.85
NewRangeFunction · 0.85
IsAncestorMethod · 0.85
RemotesFunction · 0.85

Calls 2

NewFunction · 0.92
WithArgMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…