# Feature Request: Add comments to commits

4 messages from 2025-08-27 to 2025-08-27. Participants: Rune Philosof, Kristoffer Haugsbakk, Junio C Hamano.
Thread: https://gitlist.dev/t/64045

## Rune Philosof, 2025-08-27 10:29

Subject: Feature Request: Add comments to commits
Message-ID: <CAL8J5gbKu7qB8Byg82CGqtrYK0gm4gf5V=qrc7npzAoF+kAXJA@mail.gmail.com>
URL: https://gitlist.dev/e/CAL8J5gbKu7qB8Byg82CGqtrYK0gm4gf5V%3Dqrc7npzAoF%2BkAXJA%40mail.gmail.com

```
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, 2025-08-27 10:32

Subject: Re: Feature Request: Add comments to commits
Message-ID: <a0c393df-a23c-49e0-8985-4748e1769a62@app.fastmail.com>
URL: https://gitlist.dev/e/a0c393df-a23c-49e0-8985-4748e1769a62%40app.fastmail.com
In-Reply-To: <CAL8J5gbKu7qB8Byg82CGqtrYK0gm4gf5V=qrc7npzAoF+kAXJA@mail.gmail.com>

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

```

## Junio C Hamano, 2025-08-27 16:53

Subject: Re: Feature Request: Add comments to commits
Message-ID: <xmqqwm6o1zab.fsf@gitster.g>
URL: https://gitlist.dev/e/xmqqwm6o1zab.fsf%40gitster.g
In-Reply-To: <a0c393df-a23c-49e0-8985-4748e1769a62@app.fastmail.com>

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

```

## Kristoffer Haugsbakk, 2025-08-27 20:25

Subject: Re: Feature Request: Add comments to commits
Message-ID: <dc0651fb-4059-41a7-817a-a68c8736ec70@app.fastmail.com>
URL: https://gitlist.dev/e/dc0651fb-4059-41a7-817a-a68c8736ec70%40app.fastmail.com
In-Reply-To: <xmqqwm6o1zab.fsf@gitster.g>

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

```
