summaryrefslogtreecommitdiff
path: root/builtin/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-11-06 14:34:43 -0800
committerJunio C Hamano <gitster@pobox.com>2013-11-06 14:34:43 -0800
commit152a9c17a802379a3a48e025b74dedd76e2623cc (patch)
tree35adf01f3da51119a475392076d1cb290b800a00 /builtin/diff.c
parentf26f72de159d7ade2fbe8b48734ce98c1aba4d72 (diff)
parentabf03eeb8e99538cd31806d5f252214b9fe695a6 (diff)
downloadgit-152a9c17a802379a3a48e025b74dedd76e2623cc.tar.gz
Merge branch 'fc/trivial'
A random collection of style fixes and minor doc updates. * fc/trivial: setup: trivial style fixes run-command: trivial style fixes diff: trivial style fix revision: trivial style fixes pretty: trivial style fix describe: trivial style fixes transport-helper: trivial style fix sha1-name: trivial style cleanup branch: trivial style fix revision: add missing include doc/pull: clarify the illustrations t: replace pulls with merges merge: simplify ff-only option
Diffstat (limited to 'builtin/diff.c')
-rw-r--r--builtin/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/diff.c b/builtin/diff.c
index 2fb8c5dc0b..adb93a9efa 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;