Howto refs/notes/bugs in NetworkManager [git-notes]



For the record, we use git-notes for NetworkManager upstream.


It's currently used to amend the commit message in case it was
originally forgotten. Currently there are three uses:

- add a bug-URL that is related to the commit
- add a "Fixes: $ID" entry indicating that this commit fixes
  a (parent) commit.
- add a "(cherry-picked from $ID)" entry indicating that
  this commit was a backport from another commit.
- add a "backport" entry, indicating that this commit should be 
  backported.





There is one git-notes "refs/notes/bugs". So you want to fetch that:

[remote "origin"]
        url = git://anongit.freedesktop.org/NetworkManager/NetworkManager
        fetch = +refs/heads/*:refs/remotes/origin/*
        fetch = refs/notes/bugs:refs/notes/bugs


Then, you might want to configure:

[notes]
        displayRef = refs/notes/bugs



This gives you:

$ git log f627214 
commit f6272144e98c00db18cf6708aceab96e6e7b1705
Author: Thomas Haller <thaller redhat com>
Date:   Tue Nov 10 15:19:50 2015

    build: hack around compiler warning in g-ir-scanner

    [snip]
    
Notes (bugs):
    https://bugzilla.gnome.org/show_bug.cgi?id=757934





Lastly, don't non-fast-forward push to refs/notes/bugs.



Thomas

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]