mstrap
mstrap

Reputation: 17413

Is there a Git counterpart to svn:bugtraq properties?

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

Answers (5)

Richard
Richard

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

Thomas Koch
Thomas Koch

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

mstrap
mstrap

Reputation: 17413

As it seems that there currently is no such specification, I got that started:

https://github.com/mstrap/bugtraq

Upvotes: 5

mnagel
mnagel

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.

Upvotes: -2

VonC
VonC

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

Related Questions