Skip to content

ihrke/git-ditz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

git-ditz

Git-integration for ditz.

  • requires git >= 1.7.7

Allows to run

git ditz <any-ditz-command>

in your git repository. It can automatically commit your new/modified issues and can handle the case that the issues live in a different branch than your project. It stores its configuration in git-config variables.

The following git-variables can be set:

  • ditz.branch - name of the branch where the ditz-issues are located
  • ditz.executable - path to the ditz-executable to use
  • ditz.post-hook - string that is eval'ed after running ditz with all commands
  • ditz.post-<command>-hook - string that is evaled after running ditz with command <command>
  • ditz.auto-commit - if set, automatically commit changes made to the ditz files by ditz
  • ditz.auto-commit-message - if set, use this message for auto commits
  • ditz.post-commit-hook - string that is eval'ed after automatically committing (needs to be enabled)

Example

Example 1

Ditz notes live in a different branch called "issues"

git config ditz.branch issues
git config ditz.auto-commit t

Example 2

Ditz notes live in a different branch called "gh-pages". After each update of the ditz database, update the html and push to github (such that the github-page reflects the current state of you ditz database).

git config ditz.branch gh-pages
git config ditz.auto-commit t
git config ditz.post-commit-hook "ditz html; git add html/*; git commit -a -m \"updated html\"; git push"

Now, after every commit (which happens after every change to ditz' database), the html is refreshed and pushed.

About

ditz integration with git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages