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

Function Revert

git/revert.go:25–91  ·  view source on GitHub ↗

Reverts the given commits from the HEAD. Revert doesn't actually create the new commit, it returns the new tree and leaves it up to the caller (who has a better chance of knowing the appropriate commit message..)

(c *Client, opts RevertOptions, commits []Commitish)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

RevertFunction · 0.92
TestRevertFunction · 0.70

Calls 10

GeneratePatchFunction · 0.85
FileTypeAlias · 0.85
GetHeadCommitMethod · 0.80
ParentsMethod · 0.80
NameMethod · 0.80
DiffFilesFunction · 0.70
UpdateRefFunction · 0.70
DiffTreeFunction · 0.70
ApplyFunction · 0.70
CommitIDMethod · 0.65

Tested by 1

TestRevertFunction · 0.56