~/.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
No comments yet.
You must be logged in to add your own comment.