author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Tue, 13 Dec 2011 16:50:50 +0000 (16:50 +0000) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sun, 18 Mar 2012 23:10:59 +0000 (10:10 +1100) | ||
commit | 65bb0bda75f4070a609d266d7231b4ec53d56972 | |
tree | 97ece392f1b7fdf8967575014d2bcd2e76f03840 | tree | snapshot |
parent | 44acce0befa22bc3af2132540e92da90a3a32286 | commit | diff |
gitk: Fix the display of files when filtered by path
Launching 'gitk -- .' or 'gitk -- ..\t' restricts the display to files
under the given directory but the file list is left empty. This is because
the path_filter function fails to match the filenames which are relative
to the working tree to the filter which is filessytem relative.
This solves the problem by making both names fully qualified filesystem
paths before performing the comparison.
Tested-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Launching 'gitk -- .' or 'gitk -- ..\t' restricts the display to files
under the given directory but the file list is left empty. This is because
the path_filter function fails to match the filenames which are relative
to the working tree to the filter which is filessytem relative.
This solves the problem by making both names fully qualified filesystem
paths before performing the comparison.
Tested-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |