MCPcopy
hub / github.com/github/git-sizer / addSubmodule

Method addSubmodule

sizes/sizes.go:76–80  ·  view source on GitHub ↗

Record that the object has a submodule as a direct descendant.

(filename string)

Source from the content-addressed store, hash-verified

74
75// Record that the object has a submodule as a direct descendant.
76func (s *TreeSize) addSubmodule(filename string) {
77 s.MaxPathDepth.AdjustMaxIfNecessary(1)
78 s.MaxPathLength.AdjustMaxIfNecessary(counts.NewCount32(uint64(len(filename))))
79 s.ExpandedSubmoduleCount.Increment(1)
80}
81
82type CommitSize struct {
83 // The height of the ancestor graph, including this commit.

Callers 1

initializeMethod · 0.80

Calls 3

NewCount32Function · 0.92
AdjustMaxIfNecessaryMethod · 0.45
IncrementMethod · 0.45

Tested by

no test coverage detected