git-rev-sync
Advanced tools
Comparing version 1.5.1 to 1.6.0
@@ -11,2 +11,3 @@ 'use strict'; | ||
console.log('git.tag() => ' + git.tag()); | ||
console.log('git.tag(true) => ' + git.tag(true)); | ||
console.log('git.count() => ' + git.count()); | ||
@@ -13,0 +14,0 @@ |
@@ -109,3 +109,7 @@ 'use strict'; | ||
function tag() { | ||
function tag(markDirty) { | ||
if (markDirty) { | ||
return _command('git', ['describe', '--always', '--tag', '--dirty', '--abbrev=0']); | ||
} | ||
return _command('git', ['describe', '--always', '--tag', '--abbrev=0']); | ||
@@ -112,0 +116,0 @@ } |
{ | ||
"name": "git-rev-sync", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"author": "kurttheviking", | ||
@@ -32,2 +32,6 @@ "bugs": { | ||
"url": "https://github.com/fugwenna" | ||
}, | ||
{ | ||
"name": "LorenzGardner", | ||
"url": "https://github.com/LorenzGardner" | ||
} | ||
@@ -34,0 +38,0 @@ ], |
@@ -50,5 +50,5 @@ git-rev-sync | ||
#### `git.tag()` → <String> | ||
#### `git.tag([markDirty])` → <String> | ||
return the current tag; this method will fail if the `git` command is not found in your `PATH` | ||
return the current tag and mark as dirty if markDirty is truthful; this method will fail if the `git` command is not found in your `PATH` | ||
@@ -55,0 +55,0 @@ #### `git.message()` → <String> |
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
9958
139