Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
c006ebeb
Commit
c006ebeb
authored
Apr 18, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added .hgignore to list of typically ignored files
parent
4db5041d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
AppController.php
framework/console/controllers/AppController.php
+2
-2
AssetManager.php
framework/web/AssetManager.php
+2
-2
No files found.
framework/console/controllers/AppController.php
View file @
c006ebeb
...
@@ -294,7 +294,7 @@ class AppController extends Controller
...
@@ -294,7 +294,7 @@ class AppController extends Controller
* @param string $targetDir the target directory
* @param string $targetDir the target directory
* @param string $baseDir base directory
* @param string $baseDir base directory
* @param array $ignoreFiles list of the names of files that should
* @param array $ignoreFiles list of the names of files that should
* be ignored in list building process.
Argument available since 1.1.11.
* be ignored in list building process.
* @param array $renameMap hash array of file names that should be
* @param array $renameMap hash array of file names that should be
* renamed. Example value: array('1.old.txt'=>'2.new.txt').
* renamed. Example value: array('1.old.txt'=>'2.new.txt').
* @return array the file list (see {@link copyFiles})
* @return array the file list (see {@link copyFiles})
...
@@ -304,7 +304,7 @@ class AppController extends Controller
...
@@ -304,7 +304,7 @@ class AppController extends Controller
$list
=
array
();
$list
=
array
();
$handle
=
opendir
(
$sourceDir
);
$handle
=
opendir
(
$sourceDir
);
while
((
$file
=
readdir
(
$handle
))
!==
false
)
{
while
((
$file
=
readdir
(
$handle
))
!==
false
)
{
if
(
in_array
(
$file
,
array
(
'.'
,
'..'
,
'.svn'
,
'.gitignore'
))
||
in_array
(
$file
,
$ignoreFiles
))
{
if
(
in_array
(
$file
,
array
(
'.'
,
'..'
,
'.svn'
,
'.gitignore'
,
'.hgignore'
))
||
in_array
(
$file
,
$ignoreFiles
))
{
continue
;
continue
;
}
}
$sourcePath
=
$sourceDir
.
DIRECTORY_SEPARATOR
.
$file
;
$sourcePath
=
$sourceDir
.
DIRECTORY_SEPARATOR
.
$file
;
...
...
framework/web/AssetManager.php
View file @
c006ebeb
...
@@ -55,9 +55,9 @@ class AssetManager extends Component
...
@@ -55,9 +55,9 @@ class AssetManager extends Component
public
$linkAssets
=
false
;
public
$linkAssets
=
false
;
/**
/**
* @var array list of directories and files which should be excluded from the publishing process.
* @var array list of directories and files which should be excluded from the publishing process.
* Defaults to exclude '.svn'
and '.git
ignore' files only. This option has no effect if {@link linkAssets} is enabled.
* Defaults to exclude '.svn'
, '.gitignore' and '.hg
ignore' files only. This option has no effect if {@link linkAssets} is enabled.
**/
**/
public
$excludeFiles
=
array
(
'.svn'
,
'.gitignore'
);
public
$excludeFiles
=
array
(
'.svn'
,
'.gitignore'
,
'.hgignore'
);
/**
/**
* @var integer the permission to be set for newly published asset files.
* @var integer the permission to be set for newly published asset files.
* This value will be used by PHP chmod() function.
* This value will be used by PHP chmod() function.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment