Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

git-rev-sync

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-rev-sync - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

1

examples/extended.js

@@ -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 @@ ],

4

README.md

@@ -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>

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc