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

Function getIncludeExcludeArgs

commands/command_fetch.go:77–88  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

75}
76
77func getIncludeExcludeArgs(cmd *cobra.Command) (include, exclude *string) {
78 includeFlag := cmd.Flag("include")
79 excludeFlag := cmd.Flag("exclude")
80 if includeFlag.Changed {
81 include = &includeArg
82 }
83 if excludeFlag.Changed {
84 exclude = &excludeArg
85 }
86
87 return
88}
89
90func fetchCommand(cmd *cobra.Command, args []string) {
91 setupRepository()

Callers 7

lsFilesCommandFunction · 0.85
getHistoryRewriterFunction · 0.85
migrateImportCommandFunction · 0.85
fetchCommandFunction · 0.85
cloneCommandFunction · 0.85
pullCommandFunction · 0.85
migrateInfoCommandFunction · 0.85

Calls 1

FlagMethod · 0.80

Tested by

no test coverage detected