difftool: chdir as early as possible
commitf242a03d7330a68baf0748e595c0b2290d3a05a5
authorDavid Aguilar <davvid@gmail.com>
Fri, 9 Dec 2016 08:58:47 +0000 (9 00:58 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Dec 2016 00:18:54 +0000 (11 16:18 -0800)
tree17e64f98f9a6756d7cdf5ba0db7d64bd85a4d4c5
parente6e3e2a67c8dacb0ed726f09cf203568f24f8e74
difftool: chdir as early as possible

Make difftool chdir to the top-level of the repository as soon as it can
so that we can simplify how paths are handled.  Replace construction of
absolute paths via string concatenation with relative paths wherever
possible.  The bulk of the code no longer needs to use absolute paths.

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