Git Hooks For Ditz

June 26th 13:04
by why

~/.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 …

2 comments

alternaman

said on June 26th 15:22

Admittedly, this isn’t as cool, but here’s the Mercurial hook:


  hg addre bugs

William

said on June 26th 17:47

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.