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

Function UpdateIndex

git/updateindex.go:68–129  ·  view source on GitHub ↗

This implements the git update-index command. It updates the index passed as a parameter, and returns it. It does *not* write it to disk, that's the responsibility of the caller.

(c *Client, idx *Index, opts UpdateIndexOptions, files []File)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

UpdateIndexFunction · 0.92
TestUpdateIndexFunction · 0.70
TestUpdateIndexSymlinksFunction · 0.70
TestUpdateIndexIndexInfoFunction · 0.70
refreshIndexFunction · 0.70
AddFunction · 0.70
CommitFunction · 0.70

Calls 11

UpdateIndexFromReaderFunction · 0.85
UpdateIndexRefreshFunction · 0.85
UpdateIndexCacheInfoFunction · 0.85
IndexPathMethod · 0.80
IsDirMethod · 0.80
RemoveFileMethod · 0.80
AddFileMethod · 0.80
LsFilesFunction · 0.70
StringMethod · 0.65
ExistsMethod · 0.45
SetSkipWorktreeMethod · 0.45

Tested by 4

TestUpdateIndexFunction · 0.56
TestUpdateIndexSymlinksFunction · 0.56
TestUpdateIndexIndexInfoFunction · 0.56