MCPcopy Index your code
hub / github.com/driusan/dgit / NewClient

Function NewClient

git/client.go:211–241  ·  view source on GitHub ↗

Creates a new client with the given gitDir and workdir. If not specified, NewClient will walk the filesystem until it finds a .git directory to use.

(gitDir, workDir string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 9

mainFunction · 0.92
BenchmarkLogHeadFunction · 0.92
BenchmarkRevListHeadFunction · 0.92
InitFunction · 0.85
TestLsFilesFunction · 0.85
runCaseFunction · 0.85
TestCommitTreeFunction · 0.85

Calls 6

GitDirTypeAlias · 0.85
findGitDirFunction · 0.85
WorkDirTypeAlias · 0.85
StringMethod · 0.65
ExistsMethod · 0.45
FileMethod · 0.45

Tested by 7

BenchmarkLogHeadFunction · 0.74
BenchmarkRevListHeadFunction · 0.74
TestLsFilesFunction · 0.68
runCaseFunction · 0.68
TestCommitTreeFunction · 0.68