difftool: use Git::* functions instead of passing around state
commit32b8c581ecf35e73bebe2c6e9f6de617807b7f91
authorDavid Aguilar <davvid@gmail.com>
Tue, 19 Jul 2016 03:57:56 +0000 (18 20:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jul 2016 21:01:55 +0000 (28 14:01 -0700)
treeb181ebed7a3acdc6b0103ea46338b2c8fbe3f662
parent98f917ed421a477e0575c58f801ac25f0e261b9d
difftool: use Git::* functions instead of passing around state

Call Git::command() and friends directly wherever possible.
This makes it clear that these operations can be invoked directly
without needing to manage the current directory and related GIT_*
environment variables.

Eliminate find_repository() since we can now use wc_path() and
not worry about side-effects involving environment variables.

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