FetchOpts
FetchOpts =
object
Defined in: src/core/repo.ts:311
Options for git fetch
Properties
all?
optionalall:boolean
Defined in: src/core/repo.ts:330
Fetch from all remotes
append?
optionalappend:boolean
Defined in: src/core/repo.ts:334
Append ref names and object names of fetched refs to .git/FETCH_HEAD
atomic?
optionalatomic:boolean
Defined in: src/core/repo.ts:336
Use atomic transaction to update refs
deepen?
optionaldeepen:number
Defined in: src/core/repo.ts:364
Deepen a shallow repository by specified number of commits
depth?
optionaldepth:number
Defined in: src/core/repo.ts:322
Limit fetching to the specified number of commits
dryRun?
optionaldryRun:boolean
Defined in: src/core/repo.ts:352
Dry run - show what would be done without making changes
filter?
optionalfilter:string
Defined in: src/core/repo.ts:378
Partial clone filter specification
force?
optionalforce:boolean
Defined in: src/core/repo.ts:338
Force update of local branches
ipv4?
optionalipv4:boolean
Defined in: src/core/repo.ts:374
Use IPv4 addresses only
ipv6?
optionalipv6:boolean
Defined in: src/core/repo.ts:376
Use IPv6 addresses only
jobs?
optionaljobs:number
Defined in: src/core/repo.ts:344
Number of parallel children for fetching submodules
keep?
optionalkeep:boolean
Defined in: src/core/repo.ts:356
Keep downloaded pack
multiple?
optionalmultiple:boolean
Defined in: src/core/repo.ts:340
Allow fetching from multiple remotes
noTags?
optionalnoTags:boolean
Defined in: src/core/repo.ts:342
Do not fetch any tags
prefetch?
optionalprefetch:boolean
Defined in: src/core/repo.ts:346
Modify the configured refspec to place all refs into refs/prefetch/
prune?
optionalprune:boolean
Defined in: src/core/repo.ts:318
Remove remote-tracking refs that no longer exist on the remote
pruneTags?
optionalpruneTags:boolean
Defined in: src/core/repo.ts:348
Also prune tags that are no longer on the remote
quiet?
optionalquiet:boolean
Defined in: src/core/repo.ts:328
Operate quietly (suppress progress reporting)
recurseSubmodules?
optionalrecurseSubmodules:boolean|"yes"|"on-demand"|"no"
Defined in: src/core/repo.ts:350
Fetch submodules recursively
refetch?
optionalrefetch:boolean
Defined in: src/core/repo.ts:368
Re-fetch all objects even if we already have them
refmap?
optionalrefmap:string
Defined in: src/core/repo.ts:372
Override the default refspec
refspec?
optionalrefspec:string|string[]
Defined in: src/core/repo.ts:316
Refspec(s) to fetch
remote?
optionalremote:string
Defined in: src/core/repo.ts:314
Remote name to fetch from
setUpstream?
optionalsetUpstream:boolean
Defined in: src/core/repo.ts:332
Set upstream tracking for the fetched branches
shallowExclude?
optionalshallowExclude:string|string[]
Defined in: src/core/repo.ts:362
Deepen a shallow repository excluding specified revision
shallowSince?
optionalshallowSince:string|Date
Defined in: src/core/repo.ts:360
Deepen a shallow repository by date
showForcedUpdates?
optionalshowForcedUpdates:boolean
Defined in: src/core/repo.ts:380
Check for forced updates
tags?
optionaltags:boolean
Defined in: src/core/repo.ts:320
Fetch all tags from the remote
unshallow?
optionalunshallow:boolean
Defined in: src/core/repo.ts:366
Convert a shallow repository to a complete one
updateHeadOk?
optionalupdateHeadOk:boolean
Defined in: src/core/repo.ts:358
Allow updating the current branch head
updateShallow?
optionalupdateShallow:boolean
Defined in: src/core/repo.ts:370
Update shallow boundary if new refs need it
verbose?
optionalverbose:boolean
Defined in: src/core/repo.ts:326
Be more verbose
writeCommitGraph?
optionalwriteCommitGraph:boolean
Defined in: src/core/repo.ts:382
Write commit graph after fetching
writeFetchHead?
optionalwriteFetchHead:boolean
Defined in: src/core/repo.ts:354
Allow updating FETCH_HEAD