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

Function readRebaseMetadataFile

lib/repository.js:225–237  ·  view source on GitHub ↗
(fileName, continueOnError)

Source from the content-addressed store, hash-verified

223 * when looking for 'rewritten' so we need to handle that case.
224 */
225 function readRebaseMetadataFile(fileName, continueOnError) {
226 return fse.readFile(
227 path.join(repository.path(), "rebase-merge", fileName),
228 { encoding: "utf8" }
229 )
230 .then(fp.trim)
231 .catch(function(err) {
232 if (continueOnError) {
233 return null;
234 }
235 throw err;
236 });
237 }
238
239 function calcHeadName(input) {
240 return input.replace(/refs\/heads\/(.*)/, "$1");

Callers 1

getPromiseFunction · 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…