]> source.dussan.org Git - jgit.git/commit
Remember non-note tree entries when reading 50/1850/4
authorShawn O. Pearce <spearce@spearce.org>
Fri, 5 Nov 2010 00:06:48 +0000 (17:06 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 11 Nov 2010 18:57:16 +0000 (10:57 -0800)
commit5a2cbd4aa7b442ca0622ad81357258e8ea55e927
treec67baaff959bc43a8df12de3cec5fe81e55b45a0
parentb81b97fbddaab4bc2615fea5301f3eb39e3b03bd
Remember non-note tree entries when reading

In order to safely edit a notes tree, NoteMap needs to retain any
non-note tree entries it read from the source tree and put them
back out into the modified tree when it commits a new version of
the note branch.

Remember any tree entries that didn't look like a note during
the parsing of the tree, so they can be put into a TreeFormatter
later when the tree writes to the repository.

Change-Id: Ia284af7e7866da35db35374c6c5869f00c857944
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/notes/InMemoryNoteBucket.java
org.eclipse.jgit/src/org/eclipse/jgit/notes/NonNoteEntry.java [new file with mode: 0644]
org.eclipse.jgit/src/org/eclipse/jgit/notes/NoteParser.java