๐ Ghost entries in the History Inspector view
Closed this issue ยท 0 comments
simonwhitaker commented
Description
If a git commit has a "body" (i.e. a commit message with more than one line), then the History Inspector renders one or more erroneous entries immediately after it.
It looks like this was introduced in #1676, which added %b
("body") to the format string passed to git log
.
To Reproduce
- Clone https://github.com/simonwhitaker/codeedit-history-inspector-demo and open in CodeEdit (built from the current master; I'm on commit e17584e)
- Open hello.txt
- Open the History Inspector
Expected Behavior
I expect to see four entries, as follows:
$ git log --format=medium
commit 039b5fa2bbcbc053a6993f1b5baf612a1cc9c88b (HEAD -> main, origin/main)
Author: Simon Whitaker <sw@netcetera.org>
Date: Sun Jun 2 22:10:18 2024 +0100
Add the final line
Yeah, writing line by line was definitely a bad idea.
In fact, I should have just used ChatGPT and not had to write anything.
commit b07fceee727d1e4bb5ff40c5d3a2a515b62e9f38
Author: Simon Whitaker <sw@netcetera.org>
Date: Sun Jun 2 22:09:44 2024 +0100
Add the third line
Thinking about it, I should have written the poem all in one go.
commit e538f267a1be545bbef06533468ad5b6cf2dcc0f
Author: Simon Whitaker <sw@netcetera.org>
Date: Sun Jun 2 22:09:26 2024 +0100
Add the second line
commit f0c20d706b89c54685c0cd3688103cdf4b9f317c
Author: Simon Whitaker <sw@netcetera.org>
Date: Sun Jun 2 22:09:03 2024 +0100
Add the first line
Version Information
CodeEdit: built from master (e17584e)
macOS: 14.5
Xcode: 15.4
Additional Context
No response