summaryrefslogtreecommitdiff
path: root/lib/gitlab/git
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-07-06 15:07:30 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-07-07 10:07:31 +0530
commitb1c81f849e5e5b03f56e89cdcefba029ed5c0543 (patch)
treeccfad1ee0b534e6a2239f8a51fe4d468d4a14896 /lib/gitlab/git
parentd8d5424d25c1738b170d58657ef71d4dbc89ca5e (diff)
downloadgitlab-ce-b1c81f849e5e5b03f56e89cdcefba029ed5c0543.tar.gz
Have `Project#open_branches` return branches that are matched by a wildcard protected branch.18627-wildcard-branch-protection
1. The `open_branches` method is used to provide a list of branches while creating a protected branch. 2. It makes sense to include branches which are matched by one or more wildcard protected branches, since the user might want to make exact protected branches from these as well. 3. This also provides a large performance improvement. On my machine, in a project with 5000 branches and 2000 protected branches, the `ProtectedBranches#index` page went from a 40 seconds load time to 4 seconds (10x speedup).
Diffstat (limited to 'lib/gitlab/git')
0 files changed, 0 insertions, 0 deletions