Modify

Opened 6 years ago

Closed 6 years ago

Last modified 3 years ago

#4287 closed enhancement (duplicate)

Disable WikiFormatting on commit messages

Reported by: dwclifton Owned by: hvr
Priority: low Component: GitPlugin
Severity: minor Keywords: log commit message
Cc: Trac Release: 0.11

Description

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 6 years ago by gsmith@…

  • Resolution set to duplicate
  • Status changed from new to closed

You didn't find the ticket here because this isn't a gitplugin issue, it exists in the svn-based Trac too. See http://trac.edgewall.org/ticket/476 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 6 years ago by dwclifton

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.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.