diffcore-pickaxe: simplify has_changes and contains
commit3bdb5b9f1fe964dc9ac4aa29b7b80b1e89ba84dc
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 6 Jul 2013 13:53:27 +0000 (6 15:53 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Jul 2013 17:24:11 +0000 (7 10:24 -0700)
tree3f442b92af7214e81bc9a3165c8ae0b7a1b5df8b
parent61690bf4a1ad499a673995b92cd8ab51104a431c
diffcore-pickaxe: simplify has_changes and contains

Halve the number of callsites of contains() to two using temporary
variables, simplifying the code.  While at it, get rid of the
diff_options parameter, which became unused with 8fa4b09f.

Signed-off-by: René Scharfe <rene.scharfe@lsrfire.ath.cx>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diffcore-pickaxe.c