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

Method ResetWorkTree

git/client.go:276–297  ·  view source on GitHub ↗

ResetWorkTree will replace all objects in c.WorkDir with the content from the index.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

GetObjectMethod · 0.95
ReadIndexMethod · 0.80
StringMethod · 0.65
GetContentMethod · 0.65
WriteFileMethod · 0.45

Tested by

no test coverage detected