]> source.dussan.org Git - jgit.git/commit
ObjectWalk: Fix reset for non-commit objects 81/2381/1
authorShawn O. Pearce <spearce@spearce.org>
Sun, 30 Jan 2011 22:43:49 +0000 (14:43 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 31 Jan 2011 20:31:52 +0000 (12:31 -0800)
commitc2ab3421a25d8f218951e6c3186037cb0b4e3a34
treedc4f666a2b57fab61951be85531ee7e1a3f68f2e
parent9ffcf2a8b3cb49c445fabd011b26a36e622a033c
ObjectWalk: Fix reset for non-commit objects

Non-commits are added to a pending queue, but duplicates are
removed by checking a flag.  During a reset that flag must be
stripped off the old roots, otherwise the caller cannot reuse
the old roots after the reset.

RevWalk already does this correctly for commits, but ObjectWalk
failed to handle the non-commit case itself.

Change-Id: I99e1832bf204eac5a424fdb04f327792e8cded4a
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/ObjectWalk.java