threads / discuss / 64045

Feature Request: Add comments to commits

Subject: Feature Request: Add comments to commits

## tl;dr

4 messages between Aug 27, 2025 and Aug 27, 2025.

replies: 3people: 3as markdown or json

Rune Philosof· Aug 27, 2025, 10:29 UTC · lore

Git commit messages quality is very important when you investigate your history. Often it would be useful to be able to attach comments to commits messages for instance to add forgotten information. Those comments should be shown when `git show`ing a commit. Could be implemented as commits that use a new field to link to the commit they should be shown with, along with some index to make it performant.

Services like Github that already have comments on commits and PRs, could integrate with this to make comments made on the platform part of git.

-- 
Med venlig hilsen / Best regards

Rune Philosof
Software developer

+45 28 45 64 08
rp@abtion.com


Vesterbrogade 15, 3
1620 København V

Sverigesgade 18
5000 Odense C

https://abtion.com

-- 








Vesterbrogade 40 - 2th

1620 København V



Sverigesgade 18

5000 
Odense




abtion.com <http://abtion.com/>
Kristoffer Haugsbakk· Aug 27, 2025, 10:32 UTC · re: Rune Philosof · lore

Re: Feature Request: Add comments to commits

On Wed, Aug 27, 2025, at 12:29, Rune Philosof wrote:
Show 7 quoted lines
> Git commit messages quality is very important when you investigate your history.
> Often it would be useful to be able to attach comments to commits
> messages for instance to add forgotten information.
> Those comments should be shown when `git show`ing a commit.
> Could be implemented as commits that use a new field to link to the
> commit they should be shown with, along with some index to make it
> performant.
git-notes(1)
> Services like Github that already have comments on commits and PRs,
> could integrate with this to make comments made on the platform part
> of git.
They stopped supporting it in 2014.
https://github.blog/news-insights/the-library/git-notes-display/
Junio C Hamano· Aug 27, 2025, 16:53 UTC · re: Kristoffer Haugsbakk · lore

Re: Feature Request: Add comments to commits

"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 10 quoted lines
> On Wed, Aug 27, 2025, at 12:29, Rune Philosof wrote:
>> Git commit messages quality is very important when you investigate your history.
>> Often it would be useful to be able to attach comments to commits
>> messages for instance to add forgotten information.
>> Those comments should be shown when `git show`ing a commit.
>> Could be implemented as commits that use a new field to link to the
>> commit they should be shown with, along with some index to make it
>> performant.
>
> git-notes(1)
... together with "git log --notes[=<ref>]".
Kristoffer Haugsbakk· Aug 27, 2025, 20:25 UTC · re: Junio C Hamano · lore

Re: Feature Request: Add comments to commits

On Wed, Aug 27, 2025, at 18:53, Junio C Hamano wrote:
Show 14 quoted lines
> "Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
>
>> On Wed, Aug 27, 2025, at 12:29, Rune Philosof wrote:
>>> Git commit messages quality is very important when you investigate your history.
>>> Often it would be useful to be able to attach comments to commits
>>> messages for instance to add forgotten information.
>>> Those comments should be shown when `git show`ing a commit.
>>> Could be implemented as commits that use a new field to link to the
>>> commit they should be shown with, along with some index to make it
>>> performant.
>>
>> git-notes(1)
>
> ... together with "git log --notes[=<ref>]".
I think that’s covered well enough by the man page. ;)
-- 
Kristoffer Haugsbakk

← back to recent threads