Git Hooks For Ditz
June
26th
13:04
~/.ditz/hooks/after_add.rb
:
Ditz::HookManager.on :after_add do |project, config, issues|
issues.each do |issue|
`git add #{issue.pathname}`
end
end
~/.ditz/hooks/after_delete.rb
:
Ditz::HookManager.on :after_delete do |project, config, issues|
issues.each do |issue|
`git rm #{issue.pathname}`
end
end
Now begin the comments …
alternaman
Admittedly, this isn’t as cool, but here’s the Mercurial hook:
William
Funny, I just today added a Ditz plugin to tie issues to Git feature branches, so you get a list of commits associated with each issue. (If you are a feature branch addict like me.)
http://all-thing.net/2008/06/ditz-git-integration-plugin-in-git.html
Comments are closed for this entry.