Fix bug where date and author were not found in merge commits

4c0630ec2a943d540dde8716e2a075a4a140d8b0

tucker | Sun Sep 28 2025

Fix bug where date and author were not found in merge commits

The line that starts with "merge" was not expected, and it threw
off the line numbers that I was expecting before.
src/vcses/git/operations.ts:54
Before
54
55
      const author = currentPatch[1].replace("Author: ", "").trim()
      const date = currentPatch[2].replace("Date: ", "").trim()
After
54
55
      let author, date
      [1, 2, 3].forEach((lineNumber) => {
        if (currentPatch[lineNumber].startsWith("Author")) {
          author = currentPatch[lineNumber].replace("Author: ", "").trim()
        }
        else if (currentPatch[lineNumber].startsWith("Date")) {
          date = currentPatch[lineNumber].replace("Date: ", "").trim()
        }
      })