MCPcopy Index your code
hub / github.com/clns/node-commit-msg / getLineIndex

Function getLineIndex

lib/commit-message.js:424–434  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

422 }
423
424 var getLineIndex = function() {
425 var lineIndex;
426 message.split('\n').every(function(line, idx) {
427 if ((column = line.indexOf(ref.match)) !== -1) {
428 lineIndex = idx;
429 return false;
430 }
431 return true;
432 });
433 return lineIndex;
434 }
435
436 if (!ref.allowInSubject) {
437 // pull requests can appear in the subject (eg. added by GitHub)

Callers 1

commit-message.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected