difftool: chdir as early as possible
authorDavid Aguilar <davvid@gmail.com>
Fri, 9 Dec 2016 08:58:47 +0000 (00:58 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Dec 2016 00:18:54 +0000 (16:18 -0800)
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>
No differences found