Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #1507

Closed
Open
Created Sep 19, 2012 by Administrator@rootOwner

Redesign routes that work with file paths

Created by: rspeicher

I'd like to redesign the routes that deal with filesystem paths (blobs, commits, tree, etc.) to be more uniform in their syntax and also to simplify them. I actually have about 90% of this done already, but I still have a few edge cases to figure out and more testing to do before I submit a PR. It can definitely be ready for 3.0.

Proposed routes:

# /:project_id/blame/*path
#   /gitlabhq/blame/master/app/contexts/base_context.rb
#   /gitlabhq/blame/test/branch/name/app/contexts/base_context.rb
#
# /:project_id/blob/*path
#   /gitlabhq/blob/master/app/contexts/base_context.rb
#   /gitlabhq/blob/test/branch/name/app/contexts/base_context.rb
#
# /:project_id/commit/:id
#   /gitlabhq/commit/caef9ed1121a16ca0cc78715695daaa974271bfd
#   /gitlabhq/commit/caef9ed1121a16ca0cc78715695daaa974271bfd.patch
#
# /:project_id/commits
#
# /:project_id/commits/*path
#   /gitlabhq/commits/master/app/contexts/base_context.rb
#   /gitlabhq/commits/test/branch/name/app/contexts/base_context.rb
#
# /:project_id/tree/*path
#   /gitlabhq/tree/master/app
#   /gitlabhq/tree/test/branch/name/app
Assignee
Assign to
Time tracking