git-gui: Detect full path when parsing arguments
commite3d06ca93eebaf5e4bf8438255a30fb6c91ab277
authorAndrew Wong <andrew.kw.w@gmail.com>
Tue, 2 Oct 2012 16:25:14 +0000 (2 12:25 -0400)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Wed, 17 Oct 2012 20:47:49 +0000 (17 21:47 +0100)
treea6453cc148eba8d565e3c6cb4f4e32e449902800
parent5a5e4d2599faf51240e5c8f29645eeb2aedff5c2
git-gui: Detect full path when parsing arguments

When running "git-gui blame" from a subfolder (which means prefix is
non-empty), if we pass a full path as argument, the argument parsing
will fail to recognize the argument as a file name, because prefix is
prepended to the argument.

This patch handles that scenario by adding an additional branch that
checks the file name without using the prefix.

Signed-off-by: Andrew Wong <andrew.kw.w@gmail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
git-gui.sh