New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

git-filter

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-filter - npm Package Compare versions

Comparing version
2.2.0
to
2.3.0
+1
-1
package.json
{
"name": "git-filter",
"version": "2.2.0",
"version": "2.3.0",
"description": "Create a filtered copy of a git repo with full commit history preserved",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -486,5 +486,5 @@ #!/usr/bin/env node

const ignoredPaths = options.ignoredPaths || [];
const commitDescriptionPrepend =
typeof options.commitDescriptionPrepend === "string"
? options.commitDescriptionPrepend
const commitDescriptionAppend =
typeof options.commitDescriptionAppend === "string"
? options.commitDescriptionAppend
: `This commit was filtered by https://github.com/kubk/git-filter\nSome files were excluded, so this commit may appear empty or incomplete.`;

@@ -503,3 +503,3 @@ return {

ignoredPaths,
commitDescriptionPrepend,
commitDescriptionAppend,
};

@@ -783,4 +783,4 @@ }

if (options.commitDescriptionPrepend) {
commit.message = options.commitDescriptionPrepend + "\n\n" + commit.message;
if (options.commitDescriptionAppend) {
commit.message = commit.message.trimEnd() + "\n\n" + options.commitDescriptionAppend + "\n";
}

@@ -787,0 +787,0 @@

@@ -196,3 +196,3 @@ const path = require("path");

const config = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": true,

@@ -223,3 +223,3 @@ "targetRepoPath": "${folder}-target",

const config = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": true,

@@ -305,3 +305,3 @@ "targetRepoPath": "${folder}-target",

const config = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": true,

@@ -392,3 +392,3 @@ "targetRepoPath": "${folder}-target",

const config = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": true,

@@ -476,3 +476,3 @@ "targetRepoPath": "${folder}-target",

const config = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -646,3 +646,3 @@ "followByLogFile": true,

const config = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -821,3 +821,3 @@ "followByLogFile": false,

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -840,3 +840,3 @@ "syncAllFilesOnLastFollowCommit": true,

const config2 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -935,3 +935,3 @@ "syncAllFilesOnLastFollowCommit": true,

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -954,3 +954,3 @@ "syncAllFilesOnLastFollowCommit": true,

const config2 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1059,3 +1059,3 @@ "syncAllFilesOnLastFollowCommit": true,

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1078,3 +1078,3 @@ "syncAllFilesOnLastFollowCommit": false,

const config2 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1165,3 +1165,3 @@ "syncAllFilesOnLastFollowCommit": false,

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1185,3 +1185,3 @@ "syncAllFilesOnLastFollowCommit": true,

const config2 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1281,3 +1281,3 @@ "syncAllFilesOnLastFollowCommit": true,

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1301,3 +1301,3 @@ "syncAllFilesOnLastFollowCommit": true,

const config2 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1407,3 +1407,3 @@ "syncAllFilesOnLastFollowCommit": true,

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1426,3 +1426,3 @@ "syncAllFilesOnLastFollowCommit": false,

const config2 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1513,3 +1513,3 @@ "syncAllFilesOnLastFollowCommit": false,

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1572,3 +1572,3 @@ "syncAllFilesOnLastFollowCommit": false,

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": true,

@@ -1611,3 +1611,3 @@ "targetRepoPath": "${folder}-target",

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1668,3 +1668,3 @@ "targetRepoPath": "${folder}-target",

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1725,3 +1725,3 @@ "targetRepoPath": "${folder}-target",

const config1 = `{
"commitDescriptionPrepend": "",
"commitDescriptionAppend": "",
"forceReCreateRepo": false,

@@ -1754,3 +1754,3 @@ "targetRepoPath": "${folder}-target",

test("git-filter commitDescriptionPrepend default", async () => {
test("git-filter commitDescriptionAppend default", async () => {
const folder = "ignore.commit-description-prepend";

@@ -1781,6 +1781,6 @@ const config = `{

test("git-filter commitDescriptionPrepend custom", async () => {
test("git-filter commitDescriptionAppend custom", async () => {
const folder = "ignore.commit-description-prepend-custom";
const config = `{
"commitDescriptionPrepend": "Custom prepend message",
"commitDescriptionAppend": "Custom prepend message",
"forceReCreateRepo": true,

@@ -1787,0 +1787,0 @@ "targetRepoPath": "${folder}-target",