Conversation

Jarkko Sakkinen

Edited 4 months ago

I like to start a bug fix by:

$ git commit -a -s --allow-empty -m "Fixes: 1085b8276bb4 (\"tpm: Add the rest of the session HMAC API\")"
[auth-null d5d3411b52f7] Fixes: 1085b8276bb4 ("tpm: Add the rest of the session HMAC API")

$ git show
commit d5d3411b52f741cb16cfb7180d24f454e97b4570 (HEAD -> auth-null)
Author: Jarkko Sakkinen <jarkko@kernel.org>
Date:   Wed Jul 3 18:47:46 2024 +0300

    Fixes: 1085b8276bb4 ("tpm: Add the rest of the session HMAC API")
    
    Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>

So that I get the fixes-line backed up fast :-) Then I just amend the meat.

For generating the fixes line I have:

git-fixes() {
  git --no-pager log --format='Fixes: %h ("%s")' --abbrev=12 -1 $1;
}

#git #linux #kernel

0
1
0