summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-10-31 09:25:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-10-31 20:48:09 (GMT)
commit4e7e4b6b1bd3412a30ac577d06907ab47ede9483 (patch)
tree881e097f5dbf1f169f2d77b3ca54b87868b52b49
parent9e57ac55cecec8bd2cf94d675e4458bc68a7336f (diff)
downloadgit-4e7e4b6b1bd3412a30ac577d06907ab47ede9483.zip
git-4e7e4b6b1bd3412a30ac577d06907ab47ede9483.tar.gz
git-4e7e4b6b1bd3412a30ac577d06907ab47ede9483.tar.bz2
diff: trivial style fix
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/diff.c b/builtin/diff.c
index 2fb8c5d..adb93a9 100644
--- a/builtin/diff.c
+++ b/builtin/diff.c
@@ -169,7 +169,7 @@ static int builtin_diff_tree(struct rev_info *revs,
if (ent1->item->flags & UNINTERESTING)
swap = 1;
sha1[swap] = ent0->item->sha1;
- sha1[1-swap] = ent1->item->sha1;
+ sha1[1 - swap] = ent1->item->sha1;
diff_tree_sha1(sha1[0], sha1[1], "", &revs->diffopt);
log_tree_diff_flush(revs);
return 0;