Skip to content

Commit 5d35a95

Browse files
avargitster
authored andcommitted
pickaxe: rename variables in has_changes() for brevity
Rename the {one,two}_contains variables to c{1,2}. This will make a follow-up change easier to read. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 52e011c commit 5d35a95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

diffcore-pickaxe.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ static int has_changes(mmfile_t *one, mmfile_t *two,
108108
struct diff_options *o,
109109
regex_t *regexp, kwset_t kws)
110110
{
111-
unsigned int one_contains = one ? contains(one, regexp, kws) : 0;
112-
unsigned int two_contains = two ? contains(two, regexp, kws) : 0;
113-
return one_contains != two_contains;
111+
unsigned int c1 = one ? contains(one, regexp, kws) : 0;
112+
unsigned int c2 = two ? contains(two, regexp, kws) : 0;
113+
return c1 != c2;
114114
}
115115

116116
static int pickaxe_match(struct diff_filepair *p, struct diff_options *o,

0 commit comments

Comments
 (0)