Skip to contentSkip to conversation

Fixes tags need work in the block tree

DISCUSSION Mark Brown 2 participants 2 messages Apr 2 Linux-next tree

lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

In commit

7a9ffcf2cbf88 ("io_uring/zcrx: use dma_len for chunk size calculation")

Fixes tag

Fixes 8c0cab0b7bf76 ("always dma map in advance")

has these problem(s):

- Subject does not match target commit subject

    Just use
	git log -1 --format='Fixes: %h ("%s")'
#1 lore raw
Quoted 6 lines · Mark Brown

In commit

7a9ffcf2cbf88 ("io_uring/zcrx: use dma_len for chunk size calculation")

Fixes tag

Quoted 7 lines
Fixes 8c0cab0b7bf76 ("always dma map in advance")

has these problem(s):

- Subject does not match target commit subject

    Just use
	git log -1 --format='Fixes: %h ("%s")'

Fixed this and the other one. Pavel, JFYI. What I usually say is add:

[pretty]

	fixes = Fixes: %h (\"%s\")

[alias]

	fixes = log -1 --format=fixes

to your ~/.gitconfig so you can just run:

$ git fixes 8c0cab0b7bf768594e8efc73f7b8f3d5abeb74f1
Fixes: 8c0cab0b7bf7 ("io_uring/zcrx: always dma map in advance")

and it does the right thing for you. Nobody remembers that full git log line, and then people try and do it manually, and invariably mess up the formatting. git fixes <sha> is the way.

Signature · 1 line
Jens Axboe