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

Method AddStage

git/index.go:359–470  ·  view source on GitHub ↗

Adds an entry to the index with Sha1 s and stage stage during a merge. If an entry already exists for this pathname/stage, it will be overwritten, otherwise it will be added if createEntry is true, and return an error if not. As a special case, if something is added as Stage0, then Stage1-3 entries

(c *Client, path IndexPath, mode EntryMode, s Sha1, stage Stage, size uint32, mtime int64, opts UpdateIndexOptions)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

AddFileMethod · 0.95
UpdateIndexFromReaderFunction · 0.95
ReadTreeThreeWayFunction · 0.80
ReadTreeFunction · 0.80
ResetUnstageFunction · 0.80
UpdateIndexCacheInfoFunction · 0.80
CheckoutCommitFunction · 0.80

Calls 7

RemoveUnmergedStagesMethod · 0.95
RefreshStatMethod · 0.95
ByPathTypeAlias · 0.85
HasPrefixMethod · 0.80
StageMethod · 0.80
FilePathMethod · 0.80
ExistsMethod · 0.45

Tested by

no test coverage detected