mergetool--lib: simplify API usage by removing more global variables
authorDavid Aguilar <davvid@gmail.com>
Sun, 12 Apr 2009 03:41:56 +0000 (20:41 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 12 Apr 2009 22:19:12 +0000 (15:19 -0700)
The mergetool--lib scriplet was tricky to use because it relied upon
the existance of several global shell variables. This removes more
global variables so that things are simpler for callers.

A side effect is that some variables are recomputed each time
run_merge_tool() is called, but the overhead for recomputing
them is justified by the simpler implementation.

Signed-off-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found