@withgraphite/graphite-cli 0.22.15 → 1.0.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/.CHANGELOG.md +66 -0
- package/graphite.js +1 -1
- package/package.json +1 -1
package/.CHANGELOG.md
CHANGED
|
@@ -1,5 +1,71 @@
|
|
|
1
1
|
# Graphite CLI Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.0 2023-09-13
|
|
4
|
+
|
|
5
|
+
**Renaming and configuration**
|
|
6
|
+
- All commands that fell under `branch`, `stack`, `upstack`, `downstack`, `repo`, and `user` have been renamed to drop the noun. Old command names still work, but will be removed in an upcoming version.
|
|
7
|
+
- The full list of commands is available in `gt --help` or at https://graphite.dev/docs/graphite-cli-v1-command-names.
|
|
8
|
+
- Graphite now supports custom aliasing for any command via `~/.config/graphite/aliases` (or `$XDG_CONFIG_HOME/graphite/aliases`).
|
|
9
|
+
- A preset to copy into this file to keep the old short command names is found at https://graphite.dev/docs/legacy-alias-preset.
|
|
10
|
+
|
|
11
|
+
- All Graphite configuration now lives in the interactive `gt config` command.
|
|
12
|
+
- Graphite's user-level configuration files are now XDG Base Directory Specification compliant, or stored in `~/.config/graphite` by default.
|
|
13
|
+
|
|
14
|
+
**gt create**
|
|
15
|
+
- `gt create` is the new command to create a Graphite branch (formerly `branch create`)
|
|
16
|
+
- `gt create` now supports inferring a branch name from the commit editor, which means it is now possible to run it with no arguments.
|
|
17
|
+
- If you have unstaged changes and no staged changes when running `gt create`, you are now asked whether you'd like to stage and commit them as part of the new branch.
|
|
18
|
+
|
|
19
|
+
**gt modify**
|
|
20
|
+
- `gt modify` is the new command to modify a Graphite branch (formerly `gt commit amend`/`gt commit create`).
|
|
21
|
+
- The default behavior is to amend the current commit on the branch, unless the branch has no commits or `--commit` is passed.
|
|
22
|
+
- When amending a commit, the editor is not opened by default unless `-e`/`--edit` is passed.
|
|
23
|
+
- If you have unstaged changes and no staged changes when running `gt amend`, you are now asked whether you'd like to stage them before running the amend or commit operation.
|
|
24
|
+
- `gt branch edit` has been moved to `gt modify --interactive-rebase`
|
|
25
|
+
|
|
26
|
+
**gt sync**
|
|
27
|
+
- `gt sync` is the new command to update your trunk branch, clean up merged branches, and restack most branches in your repo.
|
|
28
|
+
- `gt sync` now restacks all branches by default (no longer need `-r`).
|
|
29
|
+
- If any branch has conflicts with its parent branch, instead of launching you into a conflict resolution, `sync` will print out the list of conflicting branches so that you can run `gt restack` on them.
|
|
30
|
+
|
|
31
|
+
**gt submit**
|
|
32
|
+
- `gt submit` is the new command to push branches to GitHub and create stacked PRs for them.
|
|
33
|
+
- `gt submit` submits the currently checked out branch and its ancestors (dependent branches) by default.
|
|
34
|
+
- `gt ss` is included in the alias file by default as an alias for `gt submit --stack`, which replicates the behavior of the old `gt stack submit`
|
|
35
|
+
- `gt submit` now handles cases where branches in your stack have merged or been updated remotely, as long as there are no rebase conflicts to resolve. This includes both incorporating remote changes and removing merged branches from the stack.
|
|
36
|
+
- `gt submit` now ensures that your branches are restacked instead of failing when they aren't.
|
|
37
|
+
|
|
38
|
+
**Entirely new commands**
|
|
39
|
+
- `gt pop` to delete the current branch and check out its parent without modifying the working tree. Can't be run if the current branch has children.
|
|
40
|
+
- `gt trunk` to navigate directly to your trunk branch.
|
|
41
|
+
- `gt parent` to print out the raw parent of the branch (for scripting).
|
|
42
|
+
- `gt children` to print out the raw children of the branch, line by line (for scripting).
|
|
43
|
+
- `gt revert` (experimental) to create a branch that reverts a commit in your trunk branch.
|
|
44
|
+
|
|
45
|
+
**Other changes**
|
|
46
|
+
- Added a new `--stat` flag to `gt info` that prints out a diffstat instead of a full diff. Compatible with either `--diff` or `--patch`.
|
|
47
|
+
- `gt create --insert` now asks which siblings should be moved onto the new branch if there are more than one of them.
|
|
48
|
+
- Performance improvements.
|
|
49
|
+
|
|
50
|
+
**Bug fixes**
|
|
51
|
+
- Fixed a bug where stray output was printed while completing command names.
|
|
52
|
+
- Fixed an issue where a single optional PR template was interpreted as required PR template.
|
|
53
|
+
- Fixed a bug where branch prefixes could not end with a slash.
|
|
54
|
+
- Fixed a bug where `split --hunk` would not work for branches that added new files.
|
|
55
|
+
- Fixed a bug where the branches created by `split` were all based on the parent of the split branch instead of being stacked correctly.
|
|
56
|
+
- Fixed a bug where the `--patch` flag to `create` and `modify` did not include new files.
|
|
57
|
+
|
|
58
|
+
**Notes**
|
|
59
|
+
- The `test` command has been temporarily removed due to persistent bugginess, but will be added back when we have time to dedicate to making it work well. For now, one option is to script using the new `gt children` and `gt parent` commands, which should handle most use cases.
|
|
60
|
+
- We are still working on further improvements to `sync` and would love your feedback in this area!
|
|
61
|
+
- We'd also love to ehar about how we can make `revert` work best for you!
|
|
62
|
+
- As of the release of this version, certain parts of the web app and docs may still reference the old command names. We're updating those places as you read this!
|
|
63
|
+
|
|
64
|
+
## 0.22.16 2023-09-08
|
|
65
|
+
- Added autocomplete support for the renamed commands.
|
|
66
|
+
|
|
67
|
+
- Fixed a bug in `get` when the PR does not exist locally.
|
|
68
|
+
|
|
3
69
|
## 0.22.15 2023-09-07
|
|
4
70
|
- Introduced an environment variable to preview the command rename and custom aliasing system that will be released next week as Graphite CLI v1. For more details, see https://graphite.dev/docs/graphite-cli-v1-command-names.
|
|
5
71
|
- Introduced a new interactive command `gt config` which covers all user- and repo-level configurations. The `gt user` and `gt repo` top-level commands will be deprecated in an upcoming release.
|