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

Function Reset

git/reset.go:27–94  ·  view source on GitHub ↗

Reset implementes the "git reset" command and delegates to the appropriate ResetMode or ResetUnstage subcommand. While the third option is a []File slice, the first argument may instead be a "filename" which parses to a commitish or treeish by rev-parse, in which case it's used as the base to reset

(c *Client, opts ResetOptions, files []File)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

ResetFunction · 0.92
CloneFunction · 0.70
TestResetFilesFunction · 0.70

Calls 6

RevParseCommitishFunction · 0.85
ResetModeFunction · 0.85
ResetUnstageFunction · 0.85
RevParseTreeishFunction · 0.85
GetHeadCommitMethod · 0.80
StringMethod · 0.65

Tested by 1

TestResetFilesFunction · 0.56