Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.16 KB

File metadata and controls

40 lines (28 loc) · 1.16 KB

Build Status

GIT BARE NODE REST API

The aim of the project is to provide a readonly restful Git API over a set of bare repositories.

# returns all repositories hosted
GET /
  [ "foo.git", "bar.git" ]

# returns all repositories matching regexp
GET /repo/^foo
  [ "foo.git" ]
  
# the real deal comes now:
# executes git grep over matching repositories/path/refspec and return results
GET /repo/^foo/grep/HEAD?q=SOMETHING&path=*.md
  [ {
    "branch": "HEAD",
    "file": "README.cs",
    "line_no": "128",
    "line": "Now this is really SOMETHING",
    "repo": "foo.git"
  } ... ]

Frontend

You can use this service from the git-react-client React UI.

Install

You can run it manually using npm start, or use forever to keep it running.

Set the REPODIR env variable to the folder containing your bare repositories.

Credits

Project was initially forked from git-rest-api but has cut most of the ties now.