author | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 26 Jan 2007 03:38:59 +0000 (22:38 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 26 Jan 2007 05:41:01 +0000 (00:41 -0500) | ||
commit | 156b29211ae4f8143f143fd6cce6e93b60c51f43 | |
tree | e79ab695b1ce93ec65f8a4c608e4e75dff8aca0e | tree | snapshot |
parent | 5f8b70b1dc3d149782564e04d5d55565a5157d93 | commit | diff |
git-gui: Always use lsearch -exact, to prevent globbing.
Anytime we are using lsearch we are doing [lsearch -sorted] and we
are applying it to file paths (or file path like things). Its valid
for these to contain special glob characters, but when that happens
we do not want globbing to occur. Instead we really need exact
match semantics. Always supplying -exact to lsearch will ensure that
is the case.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Anytime we are using lsearch we are doing [lsearch -sorted] and we
are applying it to file paths (or file path like things). Its valid
for these to contain special glob characters, but when that happens
we do not want globbing to occur. Instead we really need exact
match semantics. Always supplying -exact to lsearch will ensure that
is the case.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |