aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/notes
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-12-03 13:02:15 -0800
committerShawn O. Pearce <spearce@spearce.org>2010-12-03 13:03:12 -0800
commit8d4c95a64511951e98bc4c168a4e306fedc22165 (patch)
tree9c0591fee70108fe92f06a992477a6eaf0e6a44c /org.eclipse.jgit/src/org/eclipse/jgit/notes
parent9ad802c15b497042ab77bd5dd06618469aac828f (diff)
downloadjgit-8d4c95a64511951e98bc4c168a4e306fedc22165.tar.gz
jgit-8d4c95a64511951e98bc4c168a4e306fedc22165.zip
Add insert(TreeFormatter) to ObjectInserter
This makes usage of a TreeFormatter more similar to a CommitBuilder or a TagBuilder: populate the formatter and pass to the ObjectInserter. Change-Id: I5a45ef3a35cc73f4905a34bc6f6228510df8eb2c Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Reviewed-by: Chris Aniszczyk <caniszczyk@gmail.com>
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/notes')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/notes/FanoutBucket.java2
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/notes/LeafBucket.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/notes/FanoutBucket.java b/org.eclipse.jgit/src/org/eclipse/jgit/notes/FanoutBucket.java
index e1b96eaae9..944e575008 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/notes/FanoutBucket.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/notes/FanoutBucket.java
@@ -254,7 +254,7 @@ class FanoutBucket extends InMemoryNoteBucket {
for (; e != null; e = e.next)
e.format(fmt);
- return fmt.insert(inserter);
+ return inserter.insert(fmt);
}
private int treeSize() {
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/notes/LeafBucket.java b/org.eclipse.jgit/src/org/eclipse/jgit/notes/LeafBucket.java
index af6c6f455e..db56eda2b1 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/notes/LeafBucket.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/notes/LeafBucket.java
@@ -190,7 +190,7 @@ class LeafBucket extends InMemoryNoteBucket {
for (; e != null; e = e.next)
e.format(fmt);
- return fmt.insert(inserter);
+ return inserter.insert(fmt);
}
private int treeSize(final int nameLen) {