]> source.dussan.org Git - jgit.git/commit
Make MyersDiff interruptible 41/44041/1
authorHugo Arès <hugo.ares@ericsson.com>
Fri, 13 Mar 2015 17:57:38 +0000 (13:57 -0400)
committerHugo Arès <hugo.ares@ericsson.com>
Tue, 17 Mar 2015 20:28:46 +0000 (16:28 -0400)
commit954306be814846c33371b7b0edadc85ebe1c8fe5
treef7fdaf03d26c0bf2953a7ca6e88031f8f2b3d427
parent3ac06ca6de3fc175ddac5e16d5313bf84b70936f
Make MyersDiff interruptible

For some specific file, MyersDiff goes into an infinite loop[1]. Since
this problem is hard to reproduce and possibly harder to fix, this
change makes the MyersDiff interruptible so the diff can be aborted at
least when such infinite loop happens.

[1]https://bugs.eclipse.org/bugs/show_bug.cgi?id=444623

Change-Id: I6e006ccb122d1e68c9846a24d5399d94776c2858
Signed-off-by: Hugo Arès <hugo.ares@ericsson.com>
org.eclipse.jgit/src/org/eclipse/jgit/diff/MyersDiff.java
org.eclipse.jgit/src/org/eclipse/jgit/errors/DiffInterruptedException.java [new file with mode: 0644]