Debian Codegraph @

lfs/config.go

raw symbols SCIP
1 package lfsscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/
2
3 import "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`/"
4
5 // FetchPruneConfig collects together the config options that control fetching and pruning
6 type FetchPruneConfigscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig# struct {
7 // The number of days prior to current date for which (local) refs other than HEAD
8 // will be fetched with --recent (default 7, 0 = only fetch HEAD)
9 FetchRecentRefsDaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#FetchRecentRefsDays. int
10 // Makes the FetchRecentRefsDays option apply to remote refs from fetch source as well (default true)
11 FetchRecentRefsIncludeRemotesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#FetchRecentRefsIncludeRemotes. bool
12 // number of days prior to latest commit on a ref that we'll fetch previous
13 // LFS changes too (default 0 = only fetch at ref)
14 FetchRecentCommitsDaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#FetchRecentCommitsDays. int
15 // Whether to always fetch recent even without --recent
16 FetchRecentAlwaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#FetchRecentAlways. bool
17 // Number of days added to FetchRecent*; data outside combined window will be
18 // deleted when prune is run. (default 3)
19 PruneOffsetDaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneOffsetDays. int
20 // Always verify with remote before pruning reachable objects
21 PruneVerifyRemoteAlwaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneVerifyRemoteAlways. bool
22 // When verifiying, always verify all reachable and unreachable objects with remote (default false)
23 PruneVerifyUnreachableAlwaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneVerifyUnreachableAlways. bool
24 // Name of remote to check for unpushed and verify checks
25 PruneRemoteNamescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneRemoteName. string
26 // Whether to ignore all recent options.
27 PruneRecentscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneRecent. bool
28 // Whether to delete everything pushed.
29 PruneForcescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneForce. bool
30 }
31
32 func NewFetchPruneConfigscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/NewFetchPruneConfig().(git configscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/.Environmentscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#) FetchPruneConfigscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig# {
33 pruneRemote, _ := git.Getscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#Get.("lfs.pruneremotetocheck")
34 if len(pruneRemote) == 0 {
35 pruneRemote = "origin"
36 }
37
38 return FetchPruneConfigscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#{
39 FetchRecentRefsDaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#FetchRecentRefsDays.: git.Intscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#Int.("lfs.fetchrecentrefsdays", 7),
40 FetchRecentRefsIncludeRemotesscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#FetchRecentRefsIncludeRemotes.: git.Boolscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#Bool.("lfs.fetchrecentremoterefs", true),
41 FetchRecentCommitsDaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#FetchRecentCommitsDays.: git.Intscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#Int.("lfs.fetchrecentcommitsdays", 0),
42 FetchRecentAlwaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#FetchRecentAlways.: git.Boolscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#Bool.("lfs.fetchrecentalways", false),
43 PruneOffsetDaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneOffsetDays.: git.Intscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#Int.("lfs.pruneoffsetdays", 3),
44 PruneVerifyRemoteAlwaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneVerifyRemoteAlways.: git.Boolscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#Bool.("lfs.pruneverifyremotealways", false),
45 PruneVerifyUnreachableAlwaysscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneVerifyUnreachableAlways.: git.Boolscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/config`/Environment#Bool.("lfs.pruneverifyunreachablealways", false),
46 PruneRemoteNamescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneRemoteName.: pruneRemote,
47 PruneRecentscip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneRecent.: false,
48 PruneForcescip-go gomod github.com/git-lfs/git-lfs/v3 . `github.com/git-lfs/git-lfs/v3/lfs`/FetchPruneConfig#PruneForce.: false,
49 }
50 }