summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
Commit message (Collapse)AuthorAgeFilesLines
* Memoize reference_pattern/link_reference_patternmemoize-pattern-methodsYorick Peterse2016-04-011-2/+2
| | | | | These methods are called quite often in loops so by memoizing their output we can reduce timings a bit.
* Sanitize commit title when creating revert commit.issue_14453Rubén Dávila2016-03-221-1/+1
|
* Use Gitlab::Git::DiffCollectionsJacob Vosmaer2016-03-031-7/+9
|
* Ensure we don't check a commit's description for revert message if it has no ↵Rémy Coutable2016-02-221-1/+1
| | | | description
* More updates from the last code review.Rubén Dávila2016-02-191-1/+1
|
* Don't use `self` when looking for cross-references!Rubén Dávila2016-02-191-1/+1
|
* Some updates from last code review.Rubén Dávila2016-02-191-2/+2
|
* Don't show revert button if commit/MR has already been reverted.Rubén Dávila2016-02-191-6/+20
|
* Refactor commit message for revert commit.Rubén Dávila2016-02-191-3/+3
|
* No longer need to ignore temporary branch.Rubén Dávila2016-02-191-1/+1
| | | | | * Now it's only created when user choose to create a MR and logic to hide it is handled by https://gitlab.com/gitlab-org/gitlab-ce/blob/50595af7b0e304f16e2955109abd2d25cd96efda/app/helpers/application_helper.rb#L139
* Use a reference to the MR when reverting MRs.Rubén Dávila2016-02-191-1/+7
|
* Some updates after last code review.Rubén Dávila2016-02-191-3/+3
|
* Update copy and URLs used when reverting MRs.Rubén Dávila2016-02-191-0/+6
|
* Fix commit message plus other little fix.Rubén Dávila2016-02-191-1/+1
|
* Make it work for merge commits.Rubén Dávila2016-02-191-0/+4
|
* Add RevertService class with basic logic to revert commitRubén Dávila2016-02-191-0/+8
|
* Increase the minimum length for commit SHA matching to 7rs-issue-12706Robert Speicher2016-01-291-3/+3
| | | | | | This is the git default and will help to prevent false positive matches. Closes #12706
* Merge branch 'master' into tmp-reference-pipeline-and-cachingtmp-reference-pipeline-and-cachingDouwe Maan2015-12-101-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # Conflicts: # spec/lib/gitlab/markdown/autolink_filter_spec.rb # spec/lib/gitlab/markdown/commit_range_reference_filter_spec.rb # spec/lib/gitlab/markdown/commit_reference_filter_spec.rb # spec/lib/gitlab/markdown/cross_project_reference_spec.rb # spec/lib/gitlab/markdown/emoji_filter_spec.rb # spec/lib/gitlab/markdown/external_issue_reference_filter_spec.rb # spec/lib/gitlab/markdown/external_link_filter_spec.rb # spec/lib/gitlab/markdown/issue_reference_filter_spec.rb # spec/lib/gitlab/markdown/label_reference_filter_spec.rb # spec/lib/gitlab/markdown/merge_request_reference_filter_spec.rb # spec/lib/gitlab/markdown/redactor_filter_spec.rb # spec/lib/gitlab/markdown/reference_gatherer_filter_spec.rb # spec/lib/gitlab/markdown/relative_link_filter_spec.rb # spec/lib/gitlab/markdown/sanitization_filter_spec.rb # spec/lib/gitlab/markdown/snippet_reference_filter_spec.rb # spec/lib/gitlab/markdown/syntax_highlight_filter_spec.rb # spec/lib/gitlab/markdown/table_of_contents_filter_spec.rb # spec/lib/gitlab/markdown/task_list_filter_spec.rb # spec/lib/gitlab/markdown/upload_link_filter_spec.rb # spec/lib/gitlab/markdown/user_reference_filter_spec.rb
| * Normalize email when looking for GitLab users from commit info. #3854issue_3854Rubén Dávila2015-12-091-2/+2
| |
* | Merge branch 'master' into reference-pipeline-and-cachingreference-pipeline-and-cachingDouwe Maan2015-12-081-2/+26
|\ \ | |/
| * Merge branch 'webhook_payload_with_changes' into 'master' Valery Sizov2015-12-071-2/+26
| |\ | | | | | | | | | | | | | | | | | | Add added, modified and removed properties to commit object in webhook https://gitlab.com/gitlab-org/gitlab-ee/issues/20 See merge request !1988
| | * fixes after reviewwebhook_payload_with_changesValery Sizov2015-12-071-16/+9
| | |
| | * fox specsValery Sizov2015-12-071-14/+23
| | |
| | * Add added, modified and removed properties to commit object in webhookValery Sizov2015-12-041-1/+23
| | |
* | | Merge branch 'master' into reference-pipeline-and-cachingDouwe Maan2015-12-071-2/+14
|\ \ \ | |/ /
| * | Autolink first so we don't pick up numeric anchors as issue references.Douwe Maan2015-12-011-5/+2
| | |
| * | Render commit reference using short sha, but include full sha in comment.Douwe Maan2015-12-011-0/+8
| | |
| * | Recognize issue/MR/snippet/commit links as references.Douwe Maan2015-11-301-4/+11
| |/
* | Use faster, more appropriate pipeline for mentionable attributesDouwe Maan2015-10-221-1/+1
|/
* Correctly find last known blob for file deleted in MR.merge-request-deleted-fileDouwe Maan2015-10-201-4/+8
|
* Merge branch 'master' into rs-redactor-filterDouwe Maan2015-10-151-0/+8
|\
| * Implement Commit Status APIKamil Trzcinski2015-10-121-0/+8
| |
* | Participable doesn't need to know about MentionableDouwe Maan2015-10-141-2/+2
|/
* Only look up Commit authors/committers by emailrs-issue-1850Robert Speicher2015-06-231-2/+2
| | | | | - Removes looking up authors/committers by name - Renames `User.find_for_commit` to `User.find_by_any_email`
* Add `respond_to_missing?` for Commit and RepositoryRobert Speicher2015-06-101-4/+2
| | | | | | | As of Ruby 1.9, this is the correct way to handle `respond_to?` for methods implemented by `method_missing`. See https://robots.thoughtbot.com/always-define-respond-to-missing-when-overriding
* Surround Project.reference_pattern in parenthesis inside other patternsRobert Speicher2015-05-261-1/+4
|
* Add `reference_pattern` to Referable modelsRobert Speicher2015-05-261-0/+13
|
* Implement gfm_reference directly in MentionableRobert Speicher2015-05-261-5/+0
| | | | Except for Note, which still overrides it.
* Add `to_reference` for models that support referencesRobert Speicher2015-05-261-3/+13
| | | | | Now there is a single source of information for which attribute a model uses to be referenced, and its special character.
* Add Commit#==Robert Speicher2015-05-261-0/+4
| | | | | | | | Prior, comparison would use the Ruby object's ID, which got out of sync after a Spring fork and would result in erroneous test failures. Now we just check that the compared object is a Commit and then compare their underlying raw commit objects.
* Move participants method to shared Participable concern.Douwe Maan2015-04-241-15/+2
|
* No longer needed to pass project argument to commit methods.Douwe Maan2015-04-241-7/+7
|
* Let commit model know about its project.Douwe Maan2015-04-241-4/+7
|
* Clean up code somewhat.better-commit-mentionsDouwe Maan2015-04-171-4/+3
|
* Fix Snippet#participants.Douwe Maan2015-04-151-0/+1
|
* Clean up code around commit mentions.Douwe Maan2015-04-151-0/+19
|
* Don't use HTML ellipsis in EmailsOnPush subject truncated commit message.emailsonpush-hellipDouwe Maan2015-04-141-2/+2
|
* Refactor ClosingIssueExtractor.Douwe Maan2015-04-031-1/+1
|
* Only allow users to cross-reference and close issues they have access to.Douwe Maan2015-04-021-2/+2
|
* Add Commit#author and #committer.Douwe Maan2015-04-021-0/+8
|