]> source.dussan.org Git - jgit.git/commit
Process unshallow commits first 63/140463/1
authorMasaya Suzuki <masayasuzuki@google.com>
Fri, 12 Apr 2019 02:39:22 +0000 (19:39 -0700)
committerMasaya Suzuki <masayasuzuki@google.com>
Fri, 12 Apr 2019 02:45:52 +0000 (19:45 -0700)
commit3c1af2761f91ec7c17b648c0537e6c7f1847032e
treeb119da6aa05b8be20b1d71da7439ff5b6fbe76a4
parent38eaa490f2500f3c682541f295232673b2c9663b
Process unshallow commits first

DepthGenerator marks commits reinteresting for the ones that are
reachable from unshallow commits as it walks over the revisions. Those
unshallow commits won't necessarily be processed first. Because of this,
even if a commit is reachable from unshallow commits, if it's processed
before the uninteresting commits, it will not be processed as
reinteresting and processed as uninteresting. This causes unshallow
git-fetch to be failed.

This changes DepthGenerator to process unshallow commits first
independent to their depth. This makes uninteresting flag carry work
properly.

Change-Id: I94378271cf85fbe6302cefc19a167d8cf68e1a69
Signed-off-by: Masaya Suzuki <masayasuzuki@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/revwalk/DepthGenerator.java