Reputation: 17413
I'm looking for a specification or guidelines on how a Git client should integrate with bug tracking systems. For SVN, there are bugtraq:
-properties. Is there something similar for Git?
Upvotes: 8
Views: 1780
Reputation: 16742
You can put this in your /.git/config file to work with TortoiseGit:
[bugtraq]
url = http://jira.com:8080/browse/
number = false
warnifnoissue = true
message = http://jira.com:8080/browse/%BUGID%
label = Issue number
append = false
Upvotes: 4
Reputation: 2931
There's seldom a question that has not been asked before. There already is a popular standard for project information like the link to a bugtracker and much more: https://en.wikipedia.org/wiki/DOAP (Description of a Project)
Upvotes: -2
Reputation: 17413
As it seems that there currently is no such specification, I got that started:
https://github.com/mstrap/bugtraq
Upvotes: 5
Reputation: 6854
integration of bug trackers with git usually works by parsing the git commit messages in the bug tracker.
i.e. you mention "fixes #1234" or "relates #1332" in your message and the bug tracker establishes the connection.
e.g. redmine: http://www.redmine.org/projects/redmine/wiki/RedmineSettings#Referencing-issues-in-commit-messages
e.g. github: https://help.github.com/articles/closing-issues-via-commit-messages
Upvotes: -2
Reputation: 1323115
One way would be to use git notes
(which I detail here), in order to store on top of any regular commit a 'bugtrag
' note (in a notes/bugtraq
namespace for instance).
That would allow an integration without rewriting the git repo history of commits already present.
Upvotes: 1