Skip to content

Commit

Permalink
Implemented #74: xml refactoring: Split up all configuration into sep…
Browse files Browse the repository at this point in the history
…arated config files by features

 - Added reading extra dirs.
  • Loading branch information
andkirby committed Aug 17, 2016
1 parent a2e3c64 commit 6dc5cf6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/config/root.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,25 @@
<!--Additional configuration file-->
<additional_config>
<main xs:type="ConfigFile">config/commithook.xml</main>
<!--Per module/validator/filter-->
<modules xs:type="ConfigFile">config/modules/</modules>
<validators xs:type="ConfigFile">config/validators/</validators>
<filters xs:type="ConfigFile">config/filters/</filters>
<!--Common config-->
<pre-commit xs:type="ConfigFile">config/pre-commit.xml</pre-commit>
<commit-msg xs:type="ConfigFile">config/commit-msg.xml</commit-msg>
<magento xs:type="ConfigFile">config/pre-commit-magento.xml</magento>
<local xs:type="ConfigFile">../commithook-local.xml</local>
<!--User-->
<userprofile xs:type="ConfigFile">HOME/.commithook/commithook.xml</userprofile>
<userprofile-pre-commit xs:type="ConfigFile">HOME/.commithook/pre-commit.xml</userprofile-pre-commit>
<userprofile-commit-msg xs:type="ConfigFile">HOME/.commithook/commit-msg.xml</userprofile-commit-msg>
<!--Project, project dir-->
<project_all xs:type="ConfigFile">PROJECT_DIR/.commithook/</project_all>
<project xs:type="ConfigFile">PROJECT_DIR/commithook.xml</project>
<!--Project, user dir-->
<project_local xs:type="ConfigFile">HOME/.commithook/projects/PROJECT_NAME/commithook.xml</project_local>
</additional_config>

<cache_dir>HOME/.commithook/cache</cache_dir>
</config>

0 comments on commit 6dc5cf6

Please sign in to comment.