-
- Downloads
Add new command "vcsetup" to dunecontrol
This patch adds the new command "vcsetup" to dunecontrol. This command is intended to perform various setup actions on a module that has been checked out from a version control system. For now, the command - installs the whitespace hook bin/git-whitespace-hook as a Git pre-commit hook if all of the following conditions are met: - the current module is a Git repository - the dune.module file contains the line "Whitespace-Hook: Yes" - there is no existing pre-commit hook that would be overwritten The script detects older versions of the whitespace hook and updates them if necessary. - applies Git configuration settings from the file .vcsetup/config. The contents of the file is simply fed to "git config" line by line. That way, Git configuration keys can be set by simply adding a line of the form "key value". Lines starting with "#" are filtered out and can thus be used for comments. - runs all executable files in the directory .vcsetup/run.d This can be used for more elaborate setups. Note that these scripts are run if any of the following files/directories are found: .git .svn CVS stamp-vc [[Imported from SVN: r7467]]
Please register or sign in to comment