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

Method WriteIndex

git/index.go:620–653  ·  view source on GitHub ↗

This will write a new index file to w by doing the following: 1. Sort the objects in g.Index to ascending order based on name and update g.NumberIndexEntries 2. Write g.fixedGitIndex to w 3. for each entry in g.Objects, write it to w. 4. Write the Sha1 of the contents of what was written

(file io.Writer)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

TestUnmergedCommitFunction · 0.95

Calls 3

ByPathTypeAlias · 0.85
ExtendedFlagMethod · 0.80
WriteMethod · 0.45

Tested by 1

TestUnmergedCommitFunction · 0.76