git-stack-cli 1.3.4 → 1.3.5
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/README.md
CHANGED
|
@@ -100,11 +100,8 @@ npm run build:standalone
|
|
|
100
100
|
|
|
101
101
|
> [!IMPORTANT]
|
|
102
102
|
>
|
|
103
|
-
> **You must update the `version` in `package.json` before running `npm run release
|
|
104
|
-
>
|
|
105
|
-
> ```bash
|
|
106
|
-
> npm version patch
|
|
107
|
-
> ```
|
|
103
|
+
> **You must update the `version` in `package.json` before running `npm run release`.
|
|
104
|
+
> DO NOT use `npm version` or commit the change, the release scripts handle git tags etc.**
|
|
108
105
|
|
|
109
106
|
```bash
|
|
110
107
|
npm run release
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -27595,7 +27595,7 @@ async function run$3() {
|
|
|
27595
27595
|
invariant(last_commit, "last_commit must exist");
|
|
27596
27596
|
// ensure clean base to avoid conflicts when applying patch
|
|
27597
27597
|
await cli(`git clean -fd`);
|
|
27598
|
-
await cli(`git cherry-pick "${first_commit.sha}^..${last_commit.sha}"`);
|
|
27598
|
+
await cli(`git cherry-pick "${first_commit.sha}^..${last_commit.sha}" --keep-redundant-commits`);
|
|
27599
27599
|
}
|
|
27600
27600
|
// after all commits have been cherry-picked and amended
|
|
27601
27601
|
// move the branch pointer to the newly created temporary branch
|
|
@@ -28673,7 +28673,10 @@ function SelectCommitRangesInternal(props) {
|
|
|
28673
28673
|
const commit_metadata_id = commit_map.get(commit.sha);
|
|
28674
28674
|
const selected = commit_metadata_id !== null;
|
|
28675
28675
|
let disabled;
|
|
28676
|
-
if (
|
|
28676
|
+
if (group_input) {
|
|
28677
|
+
disabled = true;
|
|
28678
|
+
}
|
|
28679
|
+
else if (group.id === props.commit_range.UNASSIGNED) {
|
|
28677
28680
|
disabled = true;
|
|
28678
28681
|
}
|
|
28679
28682
|
else {
|
|
@@ -34319,7 +34322,7 @@ async function command() {
|
|
|
34319
34322
|
.wrap(123)
|
|
34320
34323
|
// disallow unknown options
|
|
34321
34324
|
.strict()
|
|
34322
|
-
.version("1.3.
|
|
34325
|
+
.version("1.3.5" )
|
|
34323
34326
|
.showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`")
|
|
34324
34327
|
.help("help", "Show usage via `git stack help`").argv);
|
|
34325
34328
|
}
|
package/package.json
CHANGED
|
@@ -111,7 +111,9 @@ async function run() {
|
|
|
111
111
|
// ensure clean base to avoid conflicts when applying patch
|
|
112
112
|
await cli(`git clean -fd`);
|
|
113
113
|
|
|
114
|
-
await cli(
|
|
114
|
+
await cli(
|
|
115
|
+
`git cherry-pick "${first_commit.sha}^..${last_commit.sha}" --keep-redundant-commits`
|
|
116
|
+
);
|
|
115
117
|
}
|
|
116
118
|
|
|
117
119
|
// after all commits have been cherry-picked and amended
|
|
@@ -166,7 +166,9 @@ function SelectCommitRangesInternal(props: Props) {
|
|
|
166
166
|
|
|
167
167
|
let disabled;
|
|
168
168
|
|
|
169
|
-
if (
|
|
169
|
+
if (group_input) {
|
|
170
|
+
disabled = true;
|
|
171
|
+
} else if (group.id === props.commit_range.UNASSIGNED) {
|
|
170
172
|
disabled = true;
|
|
171
173
|
} else {
|
|
172
174
|
disabled = Boolean(selected && commit_metadata_id !== group.id);
|