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

Function pullCommand

commands/command_pull.go:19–33  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

17)
18
19func pullCommand(cmd *cobra.Command, args []string) {
20 requireGitVersion()
21 setupRepository()
22
23 if len(args) > 0 {
24 // Remote is first arg
25 if err := cfg.SetValidRemote(args[0]); err != nil {
26 Exit(tr.Tr.Get("Invalid remote name %q: %s", args[0], err))
27 }
28 }
29
30 includeArg, excludeArg := getIncludeExcludeArgs(cmd)
31 filter := buildFilepathFilter(cfg, includeArg, excludeArg, true)
32 pull(filter)
33}
34
35func pull(filter *filepathfilter.Filter) {
36 ref, err := git.CurrentRef()

Callers

nothing calls this directly

Calls 8

requireGitVersionFunction · 0.85
setupRepositoryFunction · 0.85
ExitFunction · 0.85
getIncludeExcludeArgsFunction · 0.85
buildFilepathFilterFunction · 0.85
pullFunction · 0.85
SetValidRemoteMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected