code: function existHunkHeader(line, lineIdx) {
        var idx = lineIdx;
  
        while (idx < diffLines.length - 3) {
          if (utils.startsWith(line, 'diff')) {
            return false;
          }
  
          if (
            utils.startsWith(diffLines[idx], oldFileNameHeader) &&
            utils.startsWith(diffLines[idx + 1], newFileNameHeader) &&
            utils.startsWith(diffLines[idx + 2], hunkHeaderPrefix)
          ) {
            return true;
          }
  
          idx++;
        }
  
        return false;
      }
docs: /*
  Checks if there is a hunk header coming before a new file starts
  
  Hunk header is a group of three lines started by ( `--- ` , `+++ ` , `@@` )