Improve the search/replace scripty foo a bit: don't traverse into .hg
and .git directories. This commit was SVN r24540.
Этот коммит содержится в:
родитель
dd2e57f41c
Коммит
733fa92ab8
@ -35,7 +35,7 @@ sub replace {
|
|||||||
# "special" directories
|
# "special" directories
|
||||||
if ( -l $_ ) { return; }
|
if ( -l $_ ) { return; }
|
||||||
if ( -d $_ ) {
|
if ( -d $_ ) {
|
||||||
if ((/\.svn/) || (/\.deps/) || (/\.libs/)) {
|
if ((/\.svn/) || (/\.deps/) || (/\.libs/) || (/\.hg/) || (/\.git/)) {
|
||||||
$File::Find::prune = true;
|
$File::Find::prune = true;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user