Skip to content

gluck/node-git-rest-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

103 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is not the project you are looking for !

This one is

GIT REST API

The aim of the project is to provide a 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-grep-client React UI.

Install

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

About

A restful Git API mimicking as most as possible the old good git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 97.1%
  • Puppet 1.9%
  • Makefile 1.0%