Socket
Socket
Sign inDemoInstall

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.3.0 to 1.4.0

9

examples/simple.js

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

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