cmd_diff(): make it obvious which cases are exclusive of each other
commit5b1e14eab3109c1d33e27b00ee18f8f9f60e779c
authorMichael Haggerty <mhagger@alum.mit.edu>
Sat, 25 May 2013 09:08:06 +0000 (25 11:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 May 2013 16:25:01 +0000 (28 09:25 -0700)
tree1163f874d9d52c02fe00840804035f465572252b
parent026f09e79689f99f573b8399443e8c4ffa84a794
cmd_diff(): make it obvious which cases are exclusive of each other

At first glance the OBJ_COMMIT, OBJ_TREE, and OBJ_BLOB cases look like
they might be mutually exclusive.  But the OBJ_COMMIT case doesn't end
the loop iteration with "continue" like the other two cases, but
rather falls through.  So use if...else if...else construct to make it
more obvious that only the last two cases are mutually exclusive.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/diff.c