Code

git-gui: Use prefix if blame is run in a subdirectory
authorShawn O. Pearce <spearce@spearce.org>
Wed, 9 May 2007 01:58:25 +0000 (21:58 -0400)
committerShawn O. Pearce <spearce@spearce.org>
Wed, 9 May 2007 01:58:25 +0000 (21:58 -0400)
commitc6127856eb318157121b0aeab150c074e9eeb3de
treedc7890d2b6ad4ac991c6f8c61f23d519cca84721
parent685caf9af672811b45ebeaaa299b8f9fbd743d82
git-gui: Use prefix if blame is run in a subdirectory

I think it was Andy Parkins who pointed out that git gui blame HEAD f
does not work if f is in a subdirectory and we are currently running
git-gui within that subdirectory.  This is happening because we did
not take the user's prefix into account when we computed the file
path in the repository.

We now assume the prefix as returned by rev-parse --show-prefix is
valid and we use that during the command line blame subcommand when
we apply the parameters.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh