Added branch and tag support to the git repository viewer. (#1406)
Many thanks to Adam Soltys and everyone else who tested this patch. * Updated git test repository so it has a branch with some differences from the master branch * Moved redmine diff class into a module so as not to clash with diff-lcs gem which is required by grit * Find changesets from all branches, not just master * Got revision browsing working * Got file actions working properly * Allow browsing by short form of commit identifier * Added a method to retrieve repository branches * Allow browsing by branch names as well as commit numbers * Handle the case where a git repository has no master branch * Expand revision box and handle finding revisions by first 8 characters * Added branches dropdown to repository show page * Combined repository browse and show into a single action. Moved branch/revision navigation into a partial. * Renamed partial navigation -> breadcrumbs * Made it so latest revisions list uses branch and path context * ...
Showing
- app/controllers/repositories_controller.rb 10 additions, 18 deletionsapp/controllers/repositories_controller.rb
- app/models/repository.rb 17 additions, 1 deletionapp/models/repository.rb
- app/models/repository/git.rb 50 additions, 33 deletionsapp/models/repository/git.rb
- app/views/repositories/_breadcrumbs.rhtml 21 additions, 0 deletionsapp/views/repositories/_breadcrumbs.rhtml
- app/views/repositories/_dir_list_content.rhtml 2 additions, 2 deletionsapp/views/repositories/_dir_list_content.rhtml
- app/views/repositories/_navigation.rhtml 18 additions, 18 deletionsapp/views/repositories/_navigation.rhtml
- app/views/repositories/annotate.rhtml 7 additions, 1 deletionapp/views/repositories/annotate.rhtml
- app/views/repositories/browse.rhtml 2 additions, 4 deletionsapp/views/repositories/browse.rhtml
- app/views/repositories/changes.rhtml 9 additions, 1 deletionapp/views/repositories/changes.rhtml
- app/views/repositories/entry.rhtml 7 additions, 1 deletionapp/views/repositories/entry.rhtml
- app/views/repositories/revision.rhtml 1 addition, 1 deletionapp/views/repositories/revision.rhtml
- app/views/repositories/revisions.rhtml 1 addition, 1 deletionapp/views/repositories/revisions.rhtml
- app/views/repositories/show.rhtml 4 additions, 9 deletionsapp/views/repositories/show.rhtml
- config/locales/bg.yml 3 additions, 0 deletionsconfig/locales/bg.yml
- config/locales/bs.yml 3 additions, 0 deletionsconfig/locales/bs.yml
- config/locales/ca.yml 3 additions, 0 deletionsconfig/locales/ca.yml
- config/locales/cs.yml 3 additions, 0 deletionsconfig/locales/cs.yml
- config/locales/da.yml 3 additions, 0 deletionsconfig/locales/da.yml
- config/locales/de.yml 3 additions, 0 deletionsconfig/locales/de.yml
- config/locales/en.yml 3 additions, 0 deletionsconfig/locales/en.yml
Please register or sign in to comment