winniehell
|
0d8352973b
|
Use JavaScript tooltips for mentions (!5301)
|
2016-09-01 01:21:34 +02:00 |
|
Yatish Mehta
|
77d17719fd
|
Fix comment for project argument in commit_range.rb
|
2016-06-20 11:12:04 -07:00 |
|
Yorick Peterse
|
309ca405fa
|
Don't modify arguments in CommitRange#initialize
This method used to call strip! on input strings which will mess with
the strings if they're re-used or frozen.
|
2016-05-26 13:58:01 +02:00 |
|
Yorick Peterse
|
e7849b0b25
|
Memoize reference_pattern/link_reference_pattern
These methods are called quite often in loops so by memoizing their
output we can reduce timings a bit.
|
2016-04-01 11:13:30 +02:00 |
|
Robert Speicher
|
d97742570f
|
Increase the minimum length for commit SHA matching to 7
This is the git default and will help to prevent false positive matches.
Closes #12706
|
2016-01-29 19:52:29 -05:00 |
|
Douwe Maan
|
9aac53bcee
|
Satisfy Rubocop
|
2015-12-02 10:54:24 +01:00 |
|
Douwe Maan
|
f3ea06eb7f
|
Autolink first so we don't pick up numeric anchors as issue references.
|
2015-12-01 15:53:32 +01:00 |
|
Douwe Maan
|
62c14ba2ed
|
Render commit reference using short sha, but include full sha in comment.
|
2015-12-01 12:58:45 +01:00 |
|
Douwe Maan
|
bd4ab21c07
|
Fix code docs
|
2015-12-01 12:49:22 +01:00 |
|
Douwe Maan
|
bf5e7252ee
|
Recognize commit range with named refs in compare URLs.
|
2015-11-30 21:36:35 +01:00 |
|
Douwe Maan
|
d6a5b45c8e
|
Recognize issue/MR/snippet/commit links as references.
|
2015-11-30 21:36:34 +01:00 |
|
Douwe Maan
|
a7be01cd07
|
Render commit range reference with short shas, link to full shas.
|
2015-11-30 21:10:52 +01:00 |
|
Robert Speicher
|
b88da58cb6
|
Add reference_pattern to Referable models
|
2015-05-26 15:48:32 -04:00 |
|
Robert Speicher
|
136ab73803
|
Update CommitRange#to_reference to use full SHAs
We only want them shortened by the filter, which calls to_s
|
2015-05-26 15:48:31 -04:00 |
|
Robert Speicher
|
c0faf91ff2
|
Add to_reference for models that support references
Now there is a single source of information for which attribute a model
uses to be referenced, and its special character.
|
2015-05-26 15:48:30 -04:00 |
|
Robert Speicher
|
682ec038ac
|
Rename CommitRange#sha_from_as_param to #suffixed_sha_from
|
2015-04-25 14:59:47 -04:00 |
|
Robert Speicher
|
165cacce16
|
Rename CommitRange#inclusive? to #exclude_start?
|
2015-04-25 14:58:49 -04:00 |
|
Robert Speicher
|
92c681a53c
|
Remove CommitRange#to_a
|
2015-04-25 14:45:56 -04:00 |
|
Robert Speicher
|
2403a28b3f
|
Include caret in CommitRange#reference_title
|
2015-04-25 14:41:06 -04:00 |
|
Robert Speicher
|
c11d3c5789
|
Remove param from CommitRange#to_s
|
2015-04-25 14:41:06 -04:00 |
|
Robert Speicher
|
81a21e5796
|
CommitRange improvements
|
2015-04-25 14:41:06 -04:00 |
|
Robert Speicher
|
a8e6656481
|
Add CommitRange class
|
2015-04-25 14:40:40 -04:00 |
|