gitlab-org--gitlab-foss/app/models
Dmitriy Zaporozhets 476cd0f763 Merge branch 'commit-count' into 'master'
Project commit count for default branch

Currently, the commit count displayed on a project's home page shows the total number of commits on the master branch. This can lead to situations in which a project may have no commits reported or very few if the project workflow does not involve the use of a branch named "master". Since number of commits can be an indicator of project health, showing 0 commits could make it harder to encourage adoption of a project.

This MR alters the repository model's `commit_count` method to return the count for the default branch instead of master.

See issue #299
2014-06-10 09:59:54 +00:00
..
concerns
network
project_services
.gitkeep
ability.rb
broadcast_message.rb
commit.rb
deploy_key.rb
deploy_keys_project.rb
diff_line.rb
email.rb
event.rb
forked_project_link.rb
group.rb
issue.rb
key.rb
merge_request.rb
merge_request_diff.rb
milestone.rb
namespace.rb
note.rb
notification.rb
personal_snippet.rb
project.rb
project_hook.rb
project_snippet.rb
project_team.rb
project_wiki.rb
protected_branch.rb
repository.rb
service.rb
service_hook.rb
snippet.rb
system_hook.rb
tree.rb
user.rb
users_group.rb
users_project.rb
web_hook.rb
wiki_page.rb