(fileName, continueOnError)
| 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"); |
no outgoing calls
no test coverage detected
searching dependent graphs…