git-rev-sync
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -6,8 +6,11 @@ 'use strict'; | ||
console.log('git.short() => ' + git.short()); | ||
// 75bf4ee | ||
// e.g. 75bf4ee | ||
console.log('git.long() => ' + git.long()); | ||
// 75bf4eea9aa1a7fd6505d0d0aa43105feafa92ef | ||
// e.g. 75bf4eea9aa1a7fd6505d0d0aa43105feafa92ef | ||
console.log('git.branch() => ' + git.branch()); | ||
// master | ||
// e.g. master | ||
console.log('git.tag() => ' + git.tag()); | ||
// e.g. v1.4.0 |
@@ -100,3 +100,3 @@ 'use strict'; | ||
function tag() { | ||
throw new Error('not implemented') | ||
return _command('git', ['describe', '--always', '--tag', '--abbrev=0']); | ||
} | ||
@@ -103,0 +103,0 @@ |
{ | ||
"name": "git-rev-sync", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"author": "kurttheviking", | ||
@@ -5,0 +5,0 @@ "bugs": { |
@@ -27,3 +27,3 @@ git-rev-sync | ||
console.log(git.tag()); | ||
// not implemented | ||
// v1.3.1 | ||
@@ -60,2 +60,6 @@ console.log(git.log()); | ||
#### git.tag() → <String> | ||
return the current tag; this method will fail if the `git` command is not found in your `PATH` | ||
#### git.message() → <String> | ||
@@ -65,5 +69,4 @@ | ||
## License | ||
[MIT](https://github.com/kurttheviking/git-rev-sync/blob/master/LICENSE) |
@@ -18,2 +18,5 @@ var assert = require('assert'); | ||
result = git.tag(); | ||
assert.equal(!!result.length, true, 'tag() returns a string with non-zero length'); | ||
console.log('tests passed'); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8172
117
70