Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upQuote regexp-meaningful characters in function name #3524
Conversation
tarsius
referenced this pull request
Jul 25, 2018
Closed
magit-log-trace-definition doesn't work with Go #3523
tarsius
merged commit ce9ec52
into
magit:master
Jul 25, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
|
Looks safe enough. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zvbuhl commentedJul 25, 2018
This addresses #3523; it resolves a bug in which
magit-log-trace-definitiondoesn't work with Go methods on a pointer receiver (and in general, anything for whichwhich-functionreturns a string containing a regular expression metacharacter: the issue is that git expects a regular expression).I was a bit concerned that
regexp-quotemight not be suited toescaping the regular expressions git expects, but it appears to do the
right thing: escaping
[*.\?+^$but not(.