It is easy to enable, for example from within the kernel repository:
$ git config --add remote.cros.fetch +refs/notes/*:refs/notes/*
$ git config notes.displayRef refs/notes/*
$ git remote update
And then look at a commit and you should see another section in the log:
$ git show dff00d1
commit dff00d1da70e860d50f9b361ce5acf6eb197f1c1
Author: Mandeep Singh Baines <m...@chromium.org>
Date: Mon Jun 20 15:30:12 2011 -0700
CHROMIUM: preserved: use wbinvd instead of set_memory_uc().
set_memory_uc() does a bunch of crazy stuff that is probably not
safe in the context of panic.
BUG=chromium-os:14497
TEST=platform_KernelErrorPaths
Change-Id: Ie41e3213b22456df9e13a179066b85fd3ff2f717
Signed-off-by: Mandeep Singh Baines <m...@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/2908
Reviewed-by: Duncan Laurie <dla...@chromium.org>
Reviewed-by: Simon Glass <s...@chromium.org>
Notes (review):
Verified+1: Mandeep Singh Baines <m...@chromium.org>
Code-Review+2: Duncan Laurie <dla...@chromium.org>
Code-Review+1: Simon Glass <s...@chromium.org>
Submitted-by: Mandeep Singh Baines <m...@chromium.org>
Submitted-at: Tue, 21 Jun 2011 10:15:12 -0700
Reviewed-on: http://gerrit.chromium.org/gerrit/2908
Project: chromiumos/third_party/kernel
Branch: refs/heads/chromeos-2.6.38
Hopefully this will be useful to others.
-duncan
This is very useful. On a related topic.
Is there a reason why gerrit puts the change-id in the commit-msg rather then in the notes. For that matter, the minor bugzilla integration also expects the bug-id to be noted in the commit-msg. We do not want to preserve this process specific information when the patch is ultimately pulled upstream. In order to preserve commit SHAs when upstreaming, we'd rather gerrit leverage this information in a git note.
I believe it is straight forward enough to do and we are prepared to take it on, unless of course there has been some work on this already.
Any ideas?