MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / parentsCount

Method parentsCount

3rdparty/unioncode-GitQlient/src/cache/CommitInfo.cpp:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76int CommitInfo::parentsCount() const
77{
78 auto count = mParentsSha.count();
79
80 if (count > 0 && mParentsSha.contains(CommitInfo::INIT_SHA))
81 --count;
82
83 return count;
84}
85
86QString CommitInfo::firstParent() const
87{

Callers 4

calculateLanesMethod · 0.80
resetLanesMethod · 0.80
configureMethod · 0.80
paintGraphMethod · 0.80

Calls 2

countMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected