Re: git-mv: fully detect 'directory moved into itself'
Hi, Josef Weidendorfer wrote:
> + if (($bad eq "") && ($dst =~ /^$src\//)) {> + if (($bad eq "") && ($dst =~ /^\Q$src\E\//)) {otherwise you will mistakenly match "foo-bar" with "foo.bar".
--
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
If people drank ink instead of Schlitz, they'd be better off.
-- Edward E. Hippensteel
[What brand of ink? Ed.]