safe-push 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/git.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -20449,7 +20449,7 @@ async function getDiffFiles(remote = "origin") {
|
|
|
20449
20449
|
} else {
|
|
20450
20450
|
baseBranch = `${remote}/${branch}`;
|
|
20451
20451
|
}
|
|
20452
|
-
const output = await execGit(["diff", "--name-only", baseBranch
|
|
20452
|
+
const output = await execGit(["diff", "--name-only", `${baseBranch}...HEAD`]);
|
|
20453
20453
|
if (!output) {
|
|
20454
20454
|
return [];
|
|
20455
20455
|
}
|
|
@@ -31292,7 +31292,7 @@ function createMcpCommand() {
|
|
|
31292
31292
|
// package.json
|
|
31293
31293
|
var package_default = {
|
|
31294
31294
|
name: "safe-push",
|
|
31295
|
-
version: "0.
|
|
31295
|
+
version: "0.5.0",
|
|
31296
31296
|
description: "Git push safety checker - blocks pushes to forbidden areas",
|
|
31297
31297
|
type: "module",
|
|
31298
31298
|
bin: {
|
package/package.json
CHANGED
package/src/git.ts
CHANGED
|
@@ -101,7 +101,7 @@ export async function getDiffFiles(remote = "origin"): Promise<string[]> {
|
|
|
101
101
|
baseBranch = `${remote}/${branch}`;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
const output = await execGit(["diff", "--name-only", baseBranch
|
|
104
|
+
const output = await execGit(["diff", "--name-only", `${baseBranch}...HEAD`]);
|
|
105
105
|
if (!output) {
|
|
106
106
|
return [];
|
|
107
107
|
}
|