difftool: use Git::* functions instead of passing around state
authorDavid Aguilar <davvid@gmail.com>
Tue, 19 Jul 2016 03:57:56 +0000 (20:57 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jul 2016 21:01:55 +0000 (14:01 -0700)
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>
No differences found