git-stack-cli 0.8.7 → 1.0.2
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 +32 -3
- package/dist/cjs/index.cjs +34770 -0
- package/package.json +21 -7
- package/dist/__fixtures__/metadata.js +0 -666
- package/dist/__fixtures__/metadata.json +0 -186
- package/dist/app/App copy.js +0 -30
- package/dist/app/App.js +0 -42
- package/dist/app/ArgCheck.js +0 -21
- package/dist/app/AutoUpdate.js +0 -128
- package/dist/app/Await.js +0 -45
- package/dist/app/Brackets copy.js +0 -10
- package/dist/app/Brackets.js +0 -11
- package/dist/app/Command.js +0 -7
- package/dist/app/Counter.js +0 -19
- package/dist/app/Debug.js +0 -33
- package/dist/app/DependencyCheck.js +0 -89
- package/dist/app/Exit.js +0 -14
- package/dist/app/FormatText.js +0 -9
- package/dist/app/GatherMetadata copy.js +0 -91
- package/dist/app/GatherMetadata.js +0 -100
- package/dist/app/GithubApiError.js +0 -50
- package/dist/app/InitMetadata.js +0 -14
- package/dist/app/Input.js +0 -15
- package/dist/app/KeepAlive.js +0 -11
- package/dist/app/LocalCommitStatus.js +0 -43
- package/dist/app/LocalMergeRebase.js +0 -157
- package/dist/app/Main copy.js +0 -200
- package/dist/app/ManualRebase copy.js +0 -127
- package/dist/app/ManualRebase.js +0 -220
- package/dist/app/MultiSelect copy.js +0 -76
- package/dist/app/MultiSelect.js +0 -143
- package/dist/app/NPMAutoUpdate.js +0 -34
- package/dist/app/Output.js +0 -19
- package/dist/app/Parens copy.js +0 -9
- package/dist/app/Parens.js +0 -10
- package/dist/app/PostRebaseStatus copy.js +0 -23
- package/dist/app/PostRebaseStatus.js +0 -23
- package/dist/app/PreLocalMergeRebase.js +0 -21
- package/dist/app/PreSelectCommitRanges copy.js +0 -21
- package/dist/app/PreSelectCommitRanges.js +0 -21
- package/dist/app/Providers.js +0 -5
- package/dist/app/RebaseCheck.js +0 -56
- package/dist/app/SelectCommitRange.js +0 -1
- package/dist/app/SelectCommitRanges.js +0 -207
- package/dist/app/Status copy.js +0 -46
- package/dist/app/Status.js +0 -61
- package/dist/app/StatusTable.js +0 -115
- package/dist/app/Store.js +0 -136
- package/dist/app/Table.js +0 -65
- package/dist/app/TextInput.js +0 -51
- package/dist/app/Url copy.js +0 -6
- package/dist/app/Url.js +0 -6
- package/dist/app/Waterfall.js +0 -20
- package/dist/app/YesNoPrompt copy.js +0 -24
- package/dist/app/YesNoPrompt.js +0 -40
- package/dist/app/main.js +0 -39
- package/dist/cli.js +0 -9
- package/dist/command.js +0 -60
- package/dist/core/CommitMetadata.js +0 -159
- package/dist/core/Metadata copy.js +0 -37
- package/dist/core/Metadata.js +0 -36
- package/dist/core/Metadata.test.js +0 -34
- package/dist/core/StackSummaryTable.js +0 -86
- package/dist/core/StackSummaryTable.test.js +0 -134
- package/dist/core/StackTable.js +0 -38
- package/dist/core/SummaryTable.js +0 -38
- package/dist/core/ZustandStore.js +0 -23
- package/dist/core/assertNever.js +0 -4
- package/dist/core/cache.js +0 -39
- package/dist/core/capitalize.js +0 -5
- package/dist/core/chalk.js +0 -83
- package/dist/core/clamp.js +0 -6
- package/dist/core/cli copy.js +0 -44
- package/dist/core/cli.js +0 -86
- package/dist/core/color.js +0 -83
- package/dist/core/colors.js +0 -15
- package/dist/core/date.js +0 -18
- package/dist/core/dependency_check.js +0 -27
- package/dist/core/env.js +0 -4
- package/dist/core/exit.js +0 -4
- package/dist/core/fetch_json.js +0 -24
- package/dist/core/get_commit_metadata.js +0 -61
- package/dist/core/github.js +0 -118
- package/dist/core/id.js +0 -61
- package/dist/core/invariant copy.js +0 -5
- package/dist/core/invariant.js +0 -5
- package/dist/core/isFiniteValue.js +0 -3
- package/dist/core/is_command_available.js +0 -15
- package/dist/core/is_dev.js +0 -1
- package/dist/core/is_finite_value.js +0 -3
- package/dist/core/json.js +0 -35
- package/dist/core/match_group.js +0 -9
- package/dist/core/readJson.js +0 -3
- package/dist/core/read_json.js +0 -12
- package/dist/core/safe_quote.js +0 -9
- package/dist/core/semver_compare.js +0 -26
- package/dist/core/serialize_json.js +0 -17
- package/dist/core/short_id.js +0 -60
- package/dist/core/sleep copy.js +0 -3
- package/dist/core/sleep.js +0 -3
- package/dist/core/wrap_index.js +0 -10
- package/dist/index.js +0 -13
- package/dist/main copy.js +0 -266
- package/dist/main.backup.js +0 -266
- package/dist/main.js +0 -265
package/README.md
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
- 🚫 **Avoid juggling mutiple branches and complex rebasing**
|
|
11
11
|
- 📚 **Preserve your detailed commit history**
|
|
12
12
|
|
|
13
|
-
|
|
14
13
|
## Demo
|
|
15
14
|
|
|
16
15
|
> <img src="https://github.com/magus/git-multi-diff-playground/assets/290084/069c304b-80cb-49a9-9dc6-4ed3b061a5bc">
|
|
@@ -18,12 +17,16 @@
|
|
|
18
17
|
## Install
|
|
19
18
|
|
|
20
19
|
```bash
|
|
20
|
+
# node
|
|
21
21
|
npm i -g git-stack-cli
|
|
22
|
+
|
|
23
|
+
# homebrew
|
|
24
|
+
brew tap magus/git-stack
|
|
25
|
+
brew install git-stack
|
|
22
26
|
```
|
|
23
27
|
|
|
24
28
|
## Usage
|
|
25
29
|
|
|
26
|
-
|
|
27
30
|
```bash
|
|
28
31
|
git stack
|
|
29
32
|
|
|
@@ -46,7 +49,6 @@ Managing stacked diffs manually involves managing multiple local branches, jumpi
|
|
|
46
49
|
This process gets even more complicated when you start getting feedback in code review and have to update individual branches.
|
|
47
50
|
Managing even a few stacked diffs requires a relatively strong knowledge of `git`, even with tricks like [`--update-refs`](https://git-scm.com/docs/git-rebase#Documentation/git-rebase.txt---update-refs).
|
|
48
51
|
|
|
49
|
-
|
|
50
52
|
## How is this different than **`x`**
|
|
51
53
|
|
|
52
54
|
### [`ghstack`](https://github.com/ezyang/ghstack)
|
|
@@ -62,10 +64,37 @@ Managing even a few stacked diffs requires a relatively strong knowledge of `git
|
|
|
62
64
|
## Development
|
|
63
65
|
|
|
64
66
|
```bash
|
|
67
|
+
git submodule update --init --recursive
|
|
68
|
+
npm i
|
|
65
69
|
npm run dev
|
|
66
70
|
npm link
|
|
67
71
|
|
|
72
|
+
# navigate to project to test within
|
|
73
|
+
npm link git-stack-cli
|
|
74
|
+
|
|
68
75
|
git stack --verbose
|
|
69
76
|
```
|
|
70
77
|
|
|
78
|
+
## Build standalone executable
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
npm run build:standalone
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Publishing
|
|
71
85
|
|
|
86
|
+
> [!IMPORTANT]
|
|
87
|
+
>
|
|
88
|
+
> **You must update the `version` in `package.json` and commit all changes first!**
|
|
89
|
+
|
|
90
|
+
### NPM
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
npm run release:npm
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Homebrew + Github
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
npm run release:github
|
|
100
|
+
```
|