mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-11 05:36:34 +01:00
48 lines
1.6 KiB
Markdown
Executable File
48 lines
1.6 KiB
Markdown
Executable File
#CodeGit
|
|
|
|
Git integration for Codiad
|
|
|
|
##Requirements
|
|
- Git version: ≥1.7.2
|
|
- Either one of the following for clone, push and pull
|
|
- Expect (Shell) (`sudo apt-get install expect` or [http://expect.sourceforge.net/](http://expect.sourceforge.net/))
|
|
- pexpect (Python) (`pip install pexpect`, [More details](https://github.com/pexpect/pexpect))
|
|
|
|
##Installation
|
|
|
|
- Download the zip file and unzip it to your plugin folder.
|
|
- Change if necessary the config in `config.php`, f.e. if you use pexpect
|
|
|
|
###Installation Guides
|
|
The standard installation works with Debian based systems, for other check the installation guides:
|
|
|
|
- [FreeBSD](https://github.com/Andr3as/Codiad-CodeGit/wiki/FreeBSD-installation)
|
|
|
|
|
|
###Lock Git User to Login User
|
|
By default, the username for the commit is the same as the login to Codiad. However, codegit does let the user override the username and commit as a different name.
|
|
|
|
If you wish to prevent the user overriding the username, forcing the name for all commits to be identical to the Codiad login, update the settings file `data/config/git.settings.php` to have the json value `lockuser` to `true`. For example, contents:
|
|
|
|
````php
|
|
<?php/*|{"lockuser":"true"}|*/?>
|
|
````
|
|
|
|
###Suppress diff on commit
|
|
|
|
For large changes it may be better to suppress a further diff on commit. Just activate the option in the settings.
|
|
|
|
##Problems?
|
|
|
|
Check the [wiki](https://github.com/Andr3as/Codiad-CodeGit/wiki) or open an issue.
|
|
|
|
##Example
|
|
|
|
![Example](http://andrano.de/Plugins/img/git.png "Example")
|
|
|
|
## Contributing
|
|
|
|
Contributions are always welcome.
|
|
|
|
####Formatting
|
|
- Indentation: 4 Spaces |