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

Function Checkout

git/checkout.go:68–116  ·  view source on GitHub ↗

Implements the "git checkout" subcommand of git. Variations in the man-page are: git checkout [-q] [-f] [-m] [ ] git checkout [-q] [-f] [-m] --detach [ ] git checkout [-q] [-f] [-m] [--detach] git checkout [-q] [-f] [-m] [[-b|-B|--orphan] ] [ ] git che

(c *Client, opts CheckoutOptions, thing string, files []File)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

CheckoutFunction · 0.92
testMergeBaseSimpleSetupFunction · 0.70
TestCheckoutBranchFunction · 0.70

Calls 14

GeneratePatchFunction · 0.85
splitPatchFunction · 0.85
filterHunksFunction · 0.85
recombinePatchFunction · 0.85
FileTypeAlias · 0.85
RevParseCommitishFunction · 0.85
CheckoutCommitFunction · 0.85
RevParseTreeishFunction · 0.85
CheckoutFilesFunction · 0.85
RemoveMethod · 0.80
NameMethod · 0.80
DiffFilesFunction · 0.70

Tested by 2

testMergeBaseSimpleSetupFunction · 0.56
TestCheckoutBranchFunction · 0.56