[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jgit-dev] Git Notes Support?
|
As an exercise in learning more of the JGit internals, I'm looking at
implementing git-notes support.
The way I understand it, under the covers, when you add a "note" to an
object, that note is represented by a commit the message as a blob,
correct? So there's no special object type (e.g., blob, tree, commit,
tag)? From my investigation after doing a couple tags... you get
objects that look like this...
git cat-file -p a8052d2e4557fd3f047ef18288939c88330bc3f4
tree 5b4567f2f5035c9a7c2b7fae6948a04ceaddd1d1
parent 5ec32da35e1b9ecd9e1d417f2c0dba0f99511fd9
author Chris Aniszczyk <caniszczyk@xxxxxxxxx> 1282593696 -0500
committer Chris Aniszczyk <caniszczyk@xxxxxxxxx> 1282593696 -0500
Notes added by 'git notes add'
Inside of .git/refs/notes/commits seems to only contain the last
note... (e.g., a8052d2e4557fd3f047ef18288939c88330bc3f4)
So does it make more sense to modify RevCommit (or RevObject) or
create a new RevNotes object? Although it seems notes can be added to
any object in Git...
--
Cheers,
Chris Aniszczyk
http://aniszczyk.org
+1 860 839 2465