git-gui: support for $FILENAMES in tool definitions
commit52d196af6a5cb8441028914876a60ecec6c464e7
authorAlex Riesen <alexander.riesen@cetitec.com>
Tue, 28 Jun 2016 08:57:42 +0000 (28 10:57 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Mon, 3 Oct 2016 22:27:14 +0000 (3 23:27 +0100)
tree1d6cd160d07b67048b1c9ac04c439ee286976166
parentaf465c0c28d2b299c08613e97d6df0ec23d86fbb
git-gui: support for $FILENAMES in tool definitions

This adds a FILENAMES environment variable, which contains the repository
pathnames of all selected files the list.
The variable contains the names separated by LF (\n, \x0a).

If the file names contain LF characters, the tool command might be unable to
unambiguously split the value of $FILENAME into the separate names.

Note that the file marked and diffed immediately after starting the GUI up,
is not actually selected. One must click on it once to really select it.

Signed-off-by: Alex Riesen <alexander.riesen@cetitec.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
lib/tools.tcl