Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glentiki/git-query
https://github.com/glentiki/git-query
Last synced: 43 minutes ago
JSON representation
- Host: GitHub
- URL: https://github.com/glentiki/git-query
- Owner: GlenTiki
- License: mit
- Created: 2017-04-08T18:50:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-09T13:07:53.000Z (over 7 years ago)
- Last Synced: 2024-11-25T20:22:47.615Z (about 1 month ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Git-Query
A tool for doing simple useful queries in a git repository.
## API
```didPathChangeSinceCommit(commit, path, callback)```
Does a diff against a commit sha to see if a path has been affected since that commit.
Takes the following parameters:
- `commit`: A git commit sha to do a diff against.
- `path`: The path you want to check has changed - any valid glob should work.
- `callback`: The function to be called with the resultCallback has the following signature:
```
function callback (error, result)
```where `error` is an error object if something bad occurred, and `result` is a Boolean that says if the path has been affected since a commit.
## LICENSE
[MIT](./LICENSE)