summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/resources
diff options
context:
space:
mode:
authorJonathan Tan <jonathantanmy@google.com>2018-11-08 14:46:10 -0800
committerJonathan Tan <jonathantanmy@google.com>2018-11-08 15:33:23 -0800
commitdf21eec1adb87a9000a62562f46ef3ff76cad482 (patch)
tree2a2a40b189a79a3b577dc6ae109caa39b5bf56e1 /org.eclipse.jgit/resources
parent1385f4b3dacca2b30dc4f78967e831720618c782 (diff)
downloadjgit-df21eec1adb87a9000a62562f46ef3ff76cad482.tar.gz
jgit-df21eec1adb87a9000a62562f46ef3ff76cad482.zip
DepthGenerator: fix multi-child boundary handling
Suppose that a repository has the following commit graph: B C \ / A and it was cloned with --shallow-exclude=A. DepthGenerator does not mark C as shallow, causing an invalid repository to be produced on the client, because A is not sent. (A similar issue occurs when --shallow-since is used to exclude A but neither B nor C.) This happens whenever an excluded commit has more than one child that is to be sent to the client. Fix DepthGenerator to handle this case correctly. While we're editing DepthWalk.Commit, fix the documentation of DepthWalk.Commit#isBoundary. Change-Id: I7068abf0fe0c864d1b0e56e1616dad1aa8719411 Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Diffstat (limited to 'org.eclipse.jgit/resources')
0 files changed, 0 insertions, 0 deletions