MCPcopy Create free account
hub / github.com/driusan/dgit / CheckoutFiles

Function CheckoutFiles

git/checkout.go:272–312  ·  view source on GitHub ↗

Implements "git checkout" subcommand of git for variations: git checkout [-f|--ours|--theirs|-m|--conflict= ] [ ] [--] ... git checkout [-p|--patch] [ ] [--] [ ...]

(c *Client, opts CheckoutOptions, tree Treeish, files []File)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

CheckoutFunction · 0.85

Calls 7

CheckoutIndexUncommitedFunction · 0.85
ReadIndexMethod · 0.80
GetMapMethod · 0.80
FilePathMethod · 0.80
SkipWorktreeMethod · 0.80
LsTreeFunction · 0.70
ReadTreeFunction · 0.70

Tested by

no test coverage detected