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

Function RevParse

git/revparse.go:370–513  ·  view source on GitHub ↗

Implements "git rev-parse". This should be refactored in terms of RevParseCommit and cleaned up. (clean up a lot.)

(c *Client, opt RevParseOptions, args []string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

RevParseFunction · 0.92
CatFileFunction · 0.92
getDerefFunction · 0.70
FsckFunction · 0.70
CatFileBatchFunction · 0.70

Calls 13

RevParsePathFunction · 0.85
RevParseTreeishFunction · 0.85
Sha1TypeAlias · 0.85
RevParseCommitishFunction · 0.85
IsInsideGitDirMethod · 0.80
IsInsideWorkTreeMethod · 0.80
IsBareMethod · 0.80
ContainsMethod · 0.80
Sha1Method · 0.80
HasPrefixMethod · 0.80
StringMethod · 0.65
TreeIDMethod · 0.65

Tested by

no test coverage detected