difftool: Eliminate global variables
authorDavid Aguilar <davvid@gmail.com>
Mon, 23 Jul 2012 03:57:08 +0000 (20:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jul 2012 04:41:18 +0000 (21:41 -0700)
commit75cd75830993e3b545f2b151d8eea2f3178f9ba4
treea30c6feb72b638f0448aac5bfcae1bceda0ea110
parent35989c68ee5f577ae959f69281e456fd14460469
difftool: Eliminate global variables

Organize the script so that it has a single main() function which
calls out to dir_diff() and file_diff() functions. This eliminates
"dir-diff"-specific variables that do not need to be calculated when
performing a regular file-diff.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-difftool.perl