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

git-diff-apply

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-diff-apply - npm Package Compare versions

Comparing version 0.19.0 to 0.19.1

2

package.json
{
"name": "git-diff-apply",
"version": "0.19.0",
"version": "0.19.1",
"description": "Use an unrelated remote repository to apply a git diff",

@@ -5,0 +5,0 @@ "main": "src",

@@ -10,3 +10,3 @@ 'use strict';

let sha = await run(`git --git-dir="${gitDir}" rev-parse ${tag}`);
await run(`git --git-dir="${gitDir}" --work-tree="${repoDir}" checkout ${sha}`);
await run(`git --git-dir="${gitDir}" --work-tree="${repoDir}" checkout ${sha.trim()}`);
};

@@ -6,4 +6,4 @@ 'use strict';

module.exports = async function getSubDir() {
let root = await run('git rev-parse --show-toplevel');
let root = (await run('git rev-parse --show-toplevel')).trim();
return root;
};

@@ -11,3 +11,3 @@ 'use strict';

let files = (await run('git ls-files', options)).split(/\r?\n/g);
let files = (await run('git ls-files', options)).trim().split(/\r?\n/g);

@@ -14,0 +14,0 @@ return files;

@@ -188,3 +188,3 @@ 'use strict';

try {
await utils.run(`git cherry-pick --no-commit ${sha}`);
await utils.run(`git cherry-pick --no-commit ${sha.trim()}`);
} catch (err) {

@@ -191,0 +191,0 @@ hasConflicts = true;

@@ -10,5 +10,4 @@ 'use strict';

let { stdout } = await exec(command, options);
let result = stdout.trim();
debug(result);
return result;
debug(stdout);
return stdout;
};
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