diff options
author | Yggy King <yggy@zeroandone.ca> | 2011-07-13 01:30:26 -0700 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2011-07-24 15:52:53 +1000 |
commit | de665fd3cfee674a62818246dfb158ecf81b2b76 (patch) | |
tree | 0536a7ff07508e78bf948eb5bf28c5efa9cd1b01 /Documentation/git-unpack-file.txt | |
parent | gitk: Show modified files with separate work tree (diff) | |
download | tgif-de665fd3cfee674a62818246dfb158ecf81b2b76.tar.xz |
gitk: Make "touching paths" search support backslashes
Gitk can search for commits touching a specified path. The search text is
always treated as a regular expression, regardless of the matching option
selected (Exact, IgnCase, or Regexp). In particular, backslashes escape
the next character. This is inconvenient on Windows systems, where backslashes
are the norm for path specifiers, for example when copy/pasting from
Windows Explorer or a cmd shell -- these copy-pasted paths must be manually
modified in the gitk search text edit box before they will work.
This change uses the match option "Exact" to mean that a slash is a slash,
not part of a regular expression. Backslashes are converted to frontslashes
before searching, thus allowing easy copy/pasting of paths on Windows
systems. If the previous behaviour of "touching paths" search is desired,
simply select the "Regexp" search mode.
One potential drawback is that the default setting for the match option
($findtype in the code) is "Exact", and so this change alters the default
behaviour, which may confuse users and lead to bug reports.
Signed-off-by: Yggy King <yggy@zeroandone.ca>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'Documentation/git-unpack-file.txt')
0 files changed, 0 insertions, 0 deletions