diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-07-16 22:19:07 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-07-16 22:19:07 +0300 |
| commit | 7a167cf1f74b4e74c4ba9de715585a1251165c5b (patch) | |
| tree | 99ee4ea2b292d7bcfa0adecb711572daf516c44c /app/models | |
| parent | a466b2175adc6021a75f31baabbaa42b14203d44 (diff) | |
| download | gitlab-ce-7a167cf1f74b4e74c4ba9de715585a1251165c5b.tar.gz | |
Move branches list to own controller with pagination. Ability to remove branches from UI
Diffstat (limited to 'app/models')
| -rw-r--r-- | app/models/repository.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index b18e98bdf47..384836951c3 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -1,4 +1,6 @@ class Repository + include Gitlab::ShellAdapter + attr_accessor :raw_repository def initialize(path_with_namespace, default_branch) @@ -33,6 +35,10 @@ class Repository commits end + def rm_branch(branch_name) + gitlab_shell.rm_branch(path_with_namespace, branch_name) + end + def round_commit_count if commit_count > 10000 '10000+' |
