public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* Feature Request: Add comments to commits
@ 2025-08-27 10:29 Rune Philosof
  2025-08-27 10:32 ` Kristoffer Haugsbakk
  0 siblings, 1 reply; 4+ messages in thread
From: Rune Philosof @ 2025-08-27 10:29 UTC (permalink / raw)
  To: git

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/>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature Request: Add comments to commits
  2025-08-27 10:29 Feature Request: Add comments to commits Rune Philosof
@ 2025-08-27 10:32 ` Kristoffer Haugsbakk
  2025-08-27 16:53   ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Kristoffer Haugsbakk @ 2025-08-27 10:32 UTC (permalink / raw)
  To: Rune Philosof, git

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)

> 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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature Request: Add comments to commits
  2025-08-27 10:32 ` Kristoffer Haugsbakk
@ 2025-08-27 16:53   ` Junio C Hamano
  2025-08-27 20:25     ` Kristoffer Haugsbakk
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2025-08-27 16:53 UTC (permalink / raw)
  To: Kristoffer Haugsbakk; +Cc: Rune Philosof, git

"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>]".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature Request: Add comments to commits
  2025-08-27 16:53   ` Junio C Hamano
@ 2025-08-27 20:25     ` Kristoffer Haugsbakk
  0 siblings, 0 replies; 4+ messages in thread
From: Kristoffer Haugsbakk @ 2025-08-27 20:25 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Rune Philosof, git

On Wed, Aug 27, 2025, at 18:53, Junio C Hamano wrote:
> "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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-08-27 20:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-27 10:29 Feature Request: Add comments to commits Rune Philosof
2025-08-27 10:32 ` Kristoffer Haugsbakk
2025-08-27 16:53   ` Junio C Hamano
2025-08-27 20:25     ` Kristoffer Haugsbakk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox