MCPcopy Index your code
hub / github.com/nodegit/nodegit / getReflogMessageForCommit

Function getReflogMessageForCommit

lib/repository.js:177–191  ·  view source on GitHub ↗
(commit)

Source from the content-addressed store, hash-verified

175}
176
177function getReflogMessageForCommit(commit) {
178 var parentCount = commit.parentcount();
179 var summary = commit.summary();
180 var commitType;
181
182 if (parentCount >= 2) {
183 commitType = " (merge)";
184 } else if (parentCount == 0) {
185 commitType = " (initial)";
186 } else {
187 commitType = "";
188 }
189
190 return `commit${commitType}: ${summary}`;
191}
192
193/**
194 * Goes through a rebase's rebase operations and commits them if there are

Callers 1

repository.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…