简体   繁体   中英

Customize display of git commit message display to create link to issue tracker

The only thing I liked didn't hate about SVN was that my GUI (Cornerstone) could be configured to recognize issue codes in commit messages and provide a link to open the URL for the relevant issue.

Is there any way to do similar for git, either through modifying git's log display, by customizing gitx or gitk or by using some other gui? I'd much prefer a method that accomplished the above via the command line, but doubt if it's possible.

I suppose a viable solution would be to just write a simple bash script that allows me to type jira 332 to open issue 332 in the browser, but such a solution wouldn't sate my curiosity on the matter :)

This is not currently available in gitk bug here is a quick patch that should get things moving the right way: gitk patch for bug links

The patch isn't that configurable - just hack in the right regexp to extract a suitable link id and compose it as a url. Fortunately we can co-opt git web--browse as a cross-platform browser launcher.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM