0.0.0 • Published 10 years ago

current-commit v0.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

current-commit experimental

Retrieve the currently checked out commit in a git repository.

Simple and standalone – no forking out to a git process.

Usage

NPM

current(directory, done(err, commit))

Given a git repository at directory, call done(err, commit) with the resulting commit value. If your repository doesn't have any commits yet, you'll get false in return instead.

commit = current(directory)

Same as above, except synchronous.

License

MIT. See LICENSE.md for details.