gitlab-org--gitlab-foss/app
Yorick Peterse b6a18f1093
Tweak checking branches in Project#open_branches
This changes 4 things:

1. Project#protected_branches_names has been renamed to
   Project#protected_branch_names.

2. Project#open_branches uses a Set for the branch names as checking
   values in a Set is faster than checking values in a (large) Array.

3. Some redundant code in Project#open_branches has been removed.

4. Project#protected_branch_names now uses #pluck instead of #map,
   removing the need for loading entire DB records into memory.
2016-04-29 22:44:08 +02:00
..
assets Merge branch 'dz-small-ui-fixes' into 'master' 2016-04-29 17:56:46 +00:00
controllers Merge branch 'async-new-branch-button' into 'master' 2016-04-28 21:00:22 +00:00
finders Remove the `.distinct` when finding issues 2016-04-21 18:49:08 +02:00
helpers Remove deprecated CI badge helper 2016-04-29 12:21:20 +02:00
mailers
models Tweak checking branches in Project#open_branches 2016-04-29 22:44:08 +02:00
services Support supressing text file diffs on the default branch with .gitattributes 2016-04-29 12:45:15 +01:00
uploaders
validators
views Merge branch 'dz-small-ui-fixes' into 'master' 2016-04-29 17:56:46 +00:00
workers Do not fsck projects less than a day old 2016-04-26 13:35:52 +02:00