]> source.dussan.org Git - jgit.git/commit
Added very small optimization to exact rename detection 22/1122/2
authorJeff Schumacher <jeffschu@google.com>
Mon, 12 Jul 2010 18:48:56 +0000 (11:48 -0700)
committerJeff Schumacher <jeffschu@google.com>
Mon, 12 Jul 2010 19:54:01 +0000 (12:54 -0700)
commitbc08fafb411566522b232e37a2ec971db00676d6
tree179f43700f7331a9724dc88b177ca1e9c8d0824b
parenta20e6f6fec7a696047df86f7d6a85863c4335d83
Added very small optimization to exact rename detection

Optimized a small loop in findExactRenames. The loop would go through
all the items in a list of DiffEntries even after it already found
what it was looking for. I made it break out of the loop as soon as
a good match was found.

Change-Id: I28741e0c49ce52d8008930a87cd1db7037700a61
org.eclipse.jgit/src/org/eclipse/jgit/diff/RenameDetector.java