git-stack-cli 1.13.2 → 1.15.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/README.md +13 -0
- package/dist/cjs/index.cjs +228 -135
- package/package.json +1 -1
- package/src/app/App.tsx +3 -0
- package/src/app/Debug.tsx +2 -1
- package/src/app/DirtyCheck.tsx +37 -26
- package/src/app/Exit.tsx +45 -8
- package/src/app/HandleCtrlCSigint.tsx +47 -0
- package/src/app/ManualRebase.tsx +12 -30
- package/src/app/SelectCommitRanges.tsx +14 -1
- package/src/app/Store.tsx +24 -2
- package/src/app/SyncGithub.tsx +12 -30
- package/src/command.ts +11 -5
- package/src/commands/Fixup.tsx +2 -2
- package/src/commands/Rebase.tsx +12 -30
- package/src/core/GitReviseTodo.ts +4 -0
- package/src/core/github.tsx +30 -8
- package/src/core/pretty_json.ts +12 -0
- package/src/index.tsx +20 -5
- package/src/types/global.d.ts +1 -0
package/README.md
CHANGED
|
@@ -83,6 +83,19 @@ To update your local branch with the latest changes in the remote branch (e.g. `
|
|
|
83
83
|
git stack rebase
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
+
### Customizing branch name
|
|
87
|
+
|
|
88
|
+
By default `git stack` generates a unique branch name such as `gs-3cmrMBSUj`.
|
|
89
|
+
|
|
90
|
+
You can specify a prefix for the generated branch name by using either the environment variable or the command line option.
|
|
91
|
+
In the example below branches would be generated such as `dev/magus/gs-3cmrMBSUj`.
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
GIT_STACK_BRANCH_PREFIX="dev/magus/" git stack
|
|
95
|
+
|
|
96
|
+
git stack --branch-prefix="dev/magus/"
|
|
97
|
+
```
|
|
98
|
+
|
|
86
99
|
## Why?
|
|
87
100
|
|
|
88
101
|
The goal of `git stack` is to combine the **simplicity of developing in a single branch** in order to **preserve your commit history** while also **grouping commits into pull requests for code review**.
|