Socket
Socket
Sign inDemoInstall

git-rev-sync

Package Overview
Dependencies
26
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.11.0 to 1.11.1

2

package.json
{
"name": "git-rev-sync",
"version": "1.11.0",
"version": "1.11.1",
"author": "kurttheviking",

@@ -5,0 +5,0 @@ "bugs": {

@@ -36,6 +36,9 @@ git-rev-sync [![Build Status](https://travis-ci.org/kurttheviking/git-rev-sync-js.svg?branch=master)](https://travis-ci.org/kurttheviking/git-rev-sync-js)

#### `git.short([filePath])` → <String>
#### `git.short([filePath], [length])` → <String>
return the result of `git rev-parse --short HEAD`; optional `filePath` parameter can be used to run the command against a repo outside the current working directory
return the result of `git rev-parse --short HEAD`
- optional `filePath` parameter can be used to run the command against a repo outside the current working directory
- optional `length` parameter can be used to set the desired hash length (defaults to `7`)
#### `git.long([filePath])` → <String>

@@ -42,0 +45,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc