Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#4287 closed enhancement (duplicate)

Disable WikiFormatting on commit messages

Reported by: Douglas Clifton Owned by: Herbert Valerio Riedel
Priority: low Component: GitPlugin
Severity: minor Keywords: log commit message
Cc: Trac Release: 0.11


This is by no means important, just a suggestion. If the commit (log) message contains a word in CamelCase aka a WikiPageName, WikiFormatting kicks in and thinks it's a hyperlink (usually to a new page).

You could either disable the wiki engine for those strings, or parse them and prefix a ! on matches yourself. I searched the list of tickets and saw no mention of this topic. At any rate, thanks for a great plugin. I dumped SVN like a bad habit and when I later discovered Trac supports Git via your plugin, I was off to the races.

Attachments (0)

Change History (2)

comment:1 Changed 9 years ago by gsmith@…

Resolution: duplicate
Status: newclosed

You didn't find the ticket here because this isn't a gitplugin issue, it exists in the svn-based Trac too. See for the ticket you're duplicating.

Note that you should be careful before you just "disable wikiformatting" wholesale like the wiki_format_messages setting there allows, because you'd lose some useful things like the Trac Links you can use to associate commits with tickets. Also, what if you want to reference a CamelCase wiki page in your commit? I do that all the time. You might try out the ignore_missing_pages behavior and see if that's sufficient for you before turning off everything.

comment:2 Changed 9 years ago by Douglas Clifton

Thanks for the follow-up on this Greg. You do have a good point regarding referencing a wiki page in your commit message, I hadn't thought of that.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Herbert Valerio Riedel.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.