@withgraphite/graphite-cli 0.20.36

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 ADDED
@@ -0,0 +1,810 @@
1
+ # Graphite CLI Changelog
2
+
3
+ ## 0.20.35 2023-07-14
4
+
5
+ - No user facing changes
6
+
7
+ ## 0.20.34 2023-07-13
8
+ ## 0.20.33 2023-07-12
9
+ ## 0.20.32 2023-07-12
10
+ ## 0.20.31 2023-07-12
11
+ ## 0.20.30 2023-07-12
12
+ ## 0.20.29 2023-07-12
13
+ ## 0.20.28 2023-07-12
14
+ ## 0.20.27 2023-07-12
15
+ ## 0.20.26 2023-07-12
16
+ ## 0.20.25 2023-07-12
17
+ ## 0.20.24 2023-07-12
18
+
19
+ - Fix release
20
+
21
+ ## 0.20.23 2023-07-12
22
+
23
+ - No user facing changes
24
+
25
+ ## 0.20.22 2023-06-22
26
+
27
+ - Added the request ID to HTTP error message output for better user issue debugging
28
+
29
+ ## 0.20.21 2023-06-22
30
+
31
+ - No changes, had to bump a new version to get around accidentally pushing v0.20.19 to `npm` as v0.20.20
32
+
33
+ ## 0.20.20 2023-06-21
34
+
35
+ - `gt dash` commands now use the app URL from the user's profile when passing links to `open`.
36
+
37
+ ## 0.20.19 2023-05-11
38
+
39
+ - When editing a PR description, the temporary file is now named `GRAPHITE_PR_DESCRIPTION.md`. This allows for Markdown syntax highlighting, and also adding additional editor config by specifically targeting this file name.
40
+
41
+ ## 0.20.18 2023-4-28
42
+
43
+ - Fixed a bug where `gt changelog` was broken for the binary version of the CLI (e.g. installed via `brew`).
44
+ - Fixed a bug where `gt branch edit` was accidentally removed from the CLI. Thank you @vampire!
45
+ - Added `fish` completion support via `gt fish >> ~/.config/fish/completions/gt.fish`! Thank you @szamanr!
46
+
47
+ ## 0.20.17 2023-4-24
48
+
49
+ - This should fix the npm install issues!
50
+
51
+ ## 0.20.16 2023-4-21
52
+
53
+ - Fixed a bug where `repo sync` attempts to delete branches that were never associated with a PR.
54
+
55
+ ## 0.20.15 2023-3-22
56
+
57
+ - Add setting trunk to remote version if it cannot be fast-forwarded.
58
+
59
+ ## 0.20.14 2023-2-10
60
+
61
+ - Add `--always` flag to submit to always push updates, even if the branch has not changed.
62
+
63
+ ## 0.20.13 2022-1-20
64
+
65
+ - Tweaked git passthrough copy to make it clear that a command was run.
66
+ - Fixed a bug where `test` commands didn't support multiple separators in a branch name.
67
+ - Replaced individual `gt ls-remote` calls on `submit` with a single one, which should speed up submission significantly!
68
+ - Fixed a bug where PR data was not being synced in the background.
69
+
70
+ ## 0.20.12 2022-11-25
71
+
72
+ - `gt stack submit` now prompts for submission info inline after each individual branch, instead of after all branches.
73
+ - The `--edit/-e` flag on `submit` commands now allows updating the PR title and body.
74
+ - The `--reviewers/-r` flag on `submit` commands can now update existing PRs.
75
+ - The `--reviewers/-r` flag on `submit` commands now accepts a string of comma separated reviewers (e.g. `user1, user2`).
76
+
77
+ - `gt commit amend` no longer requires staged changes.
78
+ - `gt commit amend` no longer allowed on empty branches.
79
+ - `gt commit create/amend` no longer allowed during a rebase.
80
+
81
+ - Improved suggested messages when encountering errors during a rebase.
82
+ - Improved error messaging by showing error code and number when available.
83
+ - Improved error reporting when running `test` commands.
84
+
85
+ ## 0.20.11 2022-09-26
86
+
87
+ - Changed many error messages to be more actionable, and changed some tips to always-visible messages.
88
+ - Improved accuracy of checking whether a branch is up to date on `submit`.
89
+ - The `--edit/-e` flag on `submit` now opens an editor for each PR without prompting first. Passing no flag still prompts the user whether they'd like to open an editor, and `--no-edit` still skips the prompt,
90
+ - The `--select/-s` flag of `submit` now prompts about which branches to include in the submit as the first step so that it can validate that the correct dependencies are included in the submit scope.
91
+ - Fixed a bug preventing creation of a debug context within a large repository.
92
+ - Fixed a bug logging output for `gt branch test` on branches with a slash in the name.
93
+ - Running git commands no longer opens another terminal on Windows.
94
+
95
+ ## 0.20.10 2022-08-02
96
+
97
+ - Addressed one remaining gap in pager parity with git: set the environment variables `LESS=FRX` and `LV=-c` if unset.
98
+
99
+ ## 0.20.9 2022-08-02
100
+
101
+ - Fixed remaining issues with pager by switching from a temp file to a pipe.
102
+ - Fixed a bug where `gt log short` wouldn't show the filled-in circle for branches needing a restack.
103
+ - Fixed a bug where `gt branch split` untracked children of the branch being split if the last branch in the split kept its name.
104
+
105
+ ## 0.20.8 2022-07-29
106
+
107
+ - Improved error mesaging around failed pager execution.
108
+
109
+ ## 0.20.7 2022-07-29
110
+
111
+ - `gt log`, `gt changelog`, and `gt branch info` now display in a pager. The pager defaults to your git pager, but can be overridden with (for example) `gt user pager --set 'less -FRX'`.
112
+
113
+ - Fixed a bug where `--no-edit` on `submit` would automatically open new PRs in draft mode (it now prompts unless `--draft`, `--publish`, or `--no-interactive` is set).
114
+ - Fixed a bug where killing the CLI during submit could result in being unable to submit again (due to a temporary filename clash).
115
+ - Fixed colors for `gt branch info --patch`.
116
+ - Fixed a bug related to buffer size for certain git commands.
117
+ - Fixed the error displayed when attempting to install Graphite on old Node.js versions.
118
+
119
+ ## 0.20.6 2022-07-25
120
+
121
+ - `submit` after an aborted submit now asks the user whether they'd like to use their cached PR body instead of always using it.
122
+ - `gt branch split` now tracks untracked branches automatically before splitting.
123
+ - `gt branch untrack` now untracks the current branch if no branch name is provided.
124
+ - Fixed an issue where `gt branch create` would fail instead of creating a branch with no commit in certain cases.
125
+ - Fixed `gt branch edit`.
126
+
127
+ ## 0.20.5 2022-07-22
128
+
129
+ - Fixed `gt changelog`.
130
+ - Fixed `submit`, `downstack edit` for editor commands containing spaces.
131
+ - Fixed `git push` errors being swallowed on submit.
132
+
133
+ ## 0.20.4 2022-07-21
134
+
135
+ - Added `gt changelog` and `gt docs`. You probably want to pipe the changelog to a pager or file :).
136
+ - Fixed a bug where a `git rebase --abort` after a restack conflict would result in Graphite being wrong about the current branch.
137
+ - Improved `test` command output.
138
+ - Internal improvements.
139
+
140
+ ## 0.20.3 2022-07-21
141
+
142
+ - Minor internal fix.
143
+
144
+ ## 0.20.2 2022-07-19
145
+
146
+ - Fixed an issue preventing installation.
147
+
148
+ ## 0.20.1 2022-07-19
149
+
150
+ - Fixed an issue preventing installation.
151
+
152
+ ## 0.20.0 2022-07-19
153
+
154
+ - Added a new command `gt branch split` that allows the user to interactive split a branch into multiple dependent branches. There are two styles of operation:
155
+
156
+ - `--by-commit` mode (aliases `--commit`, `-c`) prompts the user to select the commits within the branch that they'd like to have branches at.
157
+ - `--by-hunk` mode (aliases `--hunk`, `-h`) prompts the user to create a series of single-commit branches from the changes of the branch using the `git add --patch` interface.
158
+
159
+ - Greatly improved `gt log short` readability. Give it a try!
160
+
161
+ - `gt branch create`, `gt commit create`, and `gt commit amend` now support the `-p/--patch` option (like `git commit --patch`). Please note that this won't be the most useful option until autostashing is implemented, planned soon.
162
+
163
+ - Branch navigation commands now notify the user if the branch being checked out is either
164
+ - behind its parent (needs restacking)
165
+ - upstack of a branch that is behind its parent
166
+ - untracked
167
+ - `gt log` and `gt log short` now show untracked branches when `--show-untracked/-u` is passed in.
168
+ - `gt branch checkout` now includes untracked branches in the selector when `--show-untracked/-u` is passed in.
169
+
170
+ - Added `-n` as an alias for `--no-edit` for `submit`. Try out `gt ss -np` to quickly publish your changes!
171
+ - Added `--select`/`-s` option for `submit` to select which branches to push.
172
+ - Added `--force`/`-f` option `submit` to do a force-push, i.e. `git push -f`, instead of the default `git push --force-with-lease`.
173
+ - Added a non-blocking note if the user submits a branch that is not restacked on trunk.
174
+ - On trying to submit branches with PRs already closed/merged, instead of failing immediately users will be prompted to choose either to abort or create new PRs.
175
+ - `submit` now correctly sets the upstream of the pushed branch.
176
+ - You can now configure whether you'd like commit messages in PR bodies by default behind the configuration `gt user submit-body --include-commit-messages`. Disabled by default. Use `gt user submit-body --no-include-commit-messages` to disable.
177
+
178
+ - Added `--force`/`-f` for `gt downstack get` to always overwrite local branches.
179
+ - `gt downstack track` can now take a positional branch name argument (like `gt branch track`).
180
+
181
+ - Added `--diff`/`-d` for `gt branch info` to show the diff of the whole branch (unlike `--patch`/`-p` which shows the diff of each commit).
182
+
183
+ - Interactive prompts autocomplete is now case-insensitive.
184
+ - `gt --help` now includes a link to the CLI documention.
185
+
186
+ - Improved `gt repo init` copy.
187
+ - Improved error messaging for when an internal `git` command fails.
188
+ - Improved error messaging for when a `submit` command fails due to a GitHub API error.
189
+ - Improved `test` command output.
190
+ - Improved clarity of positional arguments for all commands with them in `--help`
191
+ - Improved performance of internal cache.
192
+ - Improved telemetry.
193
+
194
+ - Fixed a bug where `test` commands were completely broken.
195
+ - Fixed a bug where `upstack onto` autocomplete did not work if `uso` shortcut was used.
196
+ - Fixed a bug where `--no-interactive` and `--no-edit` were not handled properly for `submit`
197
+ - Fixed a bug where `gt log` would break on the initial commit of a repository.
198
+ - Fixed a bug where trunk would be in the list of branches to track in `gt repo init`
199
+ - Fixed a bug where the error message for old versions of Node.js wouldn't show up.
200
+ - Added cycle detection for parent pointers.
201
+
202
+ ## 0.19.6 2022-07-07
203
+
204
+ - Fixed a bug where continue state could be corrupted by running a `gt` command before running `gt continue`.
205
+ - Fixed a bug where `upstack onto` could target untracked branches, resulting in corrupted state.
206
+ - Fixed a bug where renaming a branch to its current name resulted in corrupted state.
207
+ - Added `dstr` as an alias for `downstack track`.
208
+ - Slightly improved rebase conflict printout.
209
+
210
+ ## 0.19.5 2022-07-06
211
+
212
+ - Added a new command `gt downstack track` that, from an untracked branch, allows you to track recursively by choosing the parent until you reach a tracked branch. Use `--force/-f` to automatically select the nearest ancestor of each branch, which should give behavior similar to `gt stack fix --regen` of old.
213
+ - Added a new command `gt branch fold` that folds the changes of the current branch into the parent branch. Uses the parent branch's name for the new branch with default; pass in `--keep/-k` to use the current branch's name instead.
214
+ - Added a new command `gt branch squash` that turns a branch of multiple commits into a single-commit branch. Takes `--message/-m` and `--no-edit/-n` arguments just like `gt commit amend`, and defaults to using the message of the first commit on the branch.
215
+
216
+ - Fixed a bug where if neither `--draft` nor `--submit` was passed, updated PRs would always be published if previously drafts, and new PRs would be published instead of being created as draft.
217
+ - Fixed a bug where `gt branch track --force` wouldn't always select the nearest ancestor.
218
+ - Fixed a bug where `gt` with no command would throw an uncaught exception instead of displaying the help message.
219
+ - Fixed a bug where cancelling certain interactive prompts would result in undefined behavior.
220
+
221
+ ## 0.19.4 2022-07-05
222
+
223
+ - Based on a user survey, we've slightly changed the defaults for PR title and description on `submit` commands.
224
+ - PR Title defaults to the title of the first (or only) commit on the branch.
225
+ - PR Description defaults to a list of commit messages followed by a PR template, if one exists.
226
+ - `branch info` and `log` now show the commit hash of trunk.
227
+ - Added a `repo init --reset` which clears all Graphite metadata.
228
+ - Added a new user-scoped configuration enabled by `gt user restack-date --use-author-date` which when enabled passes `--committer-date-is-author-date` to the internal `git rebase` of restack operations. To return to the default, use `gt user restack-date --no-use-author-date`.
229
+ - Added autocompletion for the `branch up` disambiguation prompt.
230
+ - Added `gt dpr` as a shortcut for `gt dash pr`
231
+ - Renamed the `--no-draft` option for `submit` commands to `--publish/-p`. There are three modes of operation for the command:
232
+ - By default, leave existing PRs in the same state and create new PRs in draft mode.
233
+ - When `--draft/-d` is passed, all PRs in the submit scope will be marked as draft.
234
+ - When `--publish/-p` is passed, all PRs in the submit scope will be marked ready for review.
235
+ - Added an interactive prompt for `gt branch rename` when no new name is passed in.
236
+ - Added a `--force/-f` option for `gt branch track` that skips the interactive prompt by picking the nearest tracked ancestor.
237
+
238
+ - Fixed a bug where `branch submit` and `downstack submit` base validation would fail incorrectly on certain operating systems.
239
+ - Fixed a bug where leftover cached metadata across CLI versions could result in inconsistent state.
240
+
241
+ ## 0.19.3 2022-06-28
242
+
243
+ - Changed the flow of `gt branch track`. Now, it tracks the current branch by default, unless another branch is specified. By default, prompts the user to select a branch to be its parent if there are multiple possibilities, or you can pass in a `--parent`.
244
+ - Updated the new `log short` view to be more comprehensible (uses diagram symbols from `log`).
245
+
246
+ - Fixed a bug where `--restack` wouldn't restack all branches as expected if `gt repo sync` was run from trunk.
247
+ - Fixed a bug where `gt ss` would fail if run from trunk.
248
+ - Fixed a bug where `gt downstack get` would fail to get branches that existed locally but were untracked by `gt`.
249
+ - Fixed a bug where after a `git rebase`, Graphite metadata could end up in a broken state.
250
+ - Fixed a bug that prevented `gt feedback --with-debug-context` from working as expected.
251
+ - Fixed a bug where `gt upstack onto` interactive selection could appear wonky.
252
+
253
+ - Fixed some copy in v0.19 newly added features.
254
+
255
+ ## 0.19.2 2022-06-15
256
+
257
+ - Fixed an issue where `downstack get` was completely broken.
258
+ - Replaced the emoji for `Pushing to remote and creating/updating PRs...` step of `submit`
259
+ - Fixed an issue where `gt branch edit` would only work if the branch was not in need of restacking.
260
+ - Added support to rebase local changes on top of remote for `downstack get`
261
+ - Fixed a bug where choosing to cancel `submit` because of an empty branch did not abort correctly.
262
+
263
+ ## 0.19.1 2022-06-14
264
+
265
+ - Removed some development tooling as a workaround to unblock Homebrew release. Sorry for the delay!
266
+ - Fixed a shebang issue that resulted from trying to clean up Node.js v18 warnings. Added a different fix to prevent Node.js warnings from showing up in CLI output.
267
+ - Fixed a bug with Node.js v14 support.
268
+ - Changed the Homebrew Node.js dependency to v16, which is the same as we use for development.
269
+
270
+ ## 0.19.0 2022-06-13
271
+
272
+ - Ensured every commonly used command has an alias and changed a few names. A current list of commands will be included in the Community Slack with this release.
273
+
274
+ - `gt branch show` is now `gt branch info`. As this command is relatively new, we are not leaving `show` as an alias.
275
+ - `gt branch create --restack` is now `gt branch create --insert`. This was the originally intended name, and it does something different than `gt repo sync --restack`
276
+ - `gt downstack sync` is now `gt downstack get`. It was confusing to have two `sync` commands do entirely different things!
277
+ - The old names `gt branch prev` and `gt branch next` for `down` and `up` are now fully deprecated.
278
+
279
+ - Updated a significant portion of the info and error messages spanning almost every command.
280
+ - Ensured every command has up-to-date and helpful `--help`.
281
+ - Added a number of tips to various commands.
282
+ - Greatly improved autcompletion — now every command has autocomplete for nouns, verbs, flags, and branch names when applicable.
283
+ - `gt branch checkout`, `gt upstack onto`, and `gt branch track` now all have substring autocompletion for interactive branch selection. Enjoy! :D
284
+ - `gt auth` and `gt user` commands can now be run outside of a Git repository.
285
+
286
+ - Removed the concept of "ignored branches" from `gt repo init`, and the user config.Removed the `gt repo ignored-branches` command.
287
+ - Removed `gt <scope> fix`. `fix` is now an alias for `restack`.
288
+ - Removed `gt <scope> validate`
289
+ - Removed `gt branch parent`, `gt branch children`, and `gt branch pr-info`. All of this information is now found in `gt branch info`. `gt branch rename` is now the only way to reset PR info for a branch, as PR info is now synced by branch name for the open PR with that name.
290
+ - Removed `gt repo fix`.
291
+ - Removed `gt repo trunk`. You can change the trunk branch by running `gt repo init --trunk <trunkName>` .
292
+ - Removed `exec` functionality of `gt downstack edit` — we recommend using `gt stack test` for running a command on each branch in your stack.
293
+
294
+ - Added a new command `gt branch track`. In order to track an existing git branch `<branchName>`, ensure that it is based on a Graphite branch `<parentBranchName>`, and then with `<parentBranchName>` checked out, run `gt branch track <branchName>` to start tracking it as a Graphite branch.
295
+ - You can also specify a `--parent` in `gt branch track` instead of checking out the desired parent before running the command.
296
+ - If run without a branch to track `gt branch track` suggests branches that have the current branch/specified parent in their history.
297
+ - Added `gt branch untrack` to remove Graphite metadata for a branch.
298
+ - Added a new flow to `gt repo init` for letting users new to Graphite convert an existing "stack" of branches into a Graphite stack. Essentially calls `gt branch track` in a loop.
299
+
300
+ - Added a new verb `gt <scope> restack` for the `branch`, `upstack`, `downstack`, and `stack` nouns. For each branch in the scope, this command checks if the branch is based on its parent, and rebases it if necessary. `gt upstack fix` and `gt stack fix` will alias to `restack` for a couple versions.
301
+
302
+ - Improved `gt log short` - the view now essentially a single-line-per-branch version of `gt log`. The old style can still be accessed with `gt log short --classic`.
303
+ - Added a `--reverse` option to `gt log` and `gt log short`. Helpful for big stacks!
304
+ - Added `--stack` option for `gt log` and `gt log short`. Only displays the current stack (i.e. what `gt stack submit` would submit).
305
+ - Added `--steps <n>` option for `gt log` and `gt log short`. Implies `--stack` and only shows `n` levels above and below the current branch.
306
+ - Rebase conflict message now shows a `gt log short --steps 3` centered at the branch being resolved.
307
+ - Interactive selection for `gt branch checkout` and `gt upstack onto` now uses the new `gt log short` view. Much easier to see what you're doing with long branch names!
308
+
309
+ - `gt dash` can now open the PR page for the current branch or a specified one: `gt dash pr [numberOrBranchName]`
310
+ - `gt branch info` can now show the current PR description with `--description`.
311
+ - Added `upstack` and `downstack` counterparts of `gt branch test`.
312
+
313
+ - `gt branch delete` now restacks the deleted branch's children onto its parent.
314
+
315
+ - Removed the `--resubmit` flow from `repo sync` — we may add it back in the future.
316
+ - Added a `--restack` option to `repo sync`, which restacks the current branch and any branches in stacks with cleaned up branches. We imagine a common flow if you know that you don't have conflicts with trunk will be `gt rs -rf`. Or even `gt rs -rf && gt ss`.
317
+
318
+ - Fixed a bug where `--draft` and `--no-draft` on `submit` commands would unnecessarily submit unchanged PRs.
319
+ - Fixed bugs related to rebases not being performed properly that often resulted in confusing state and messaging.
320
+
321
+ - Now fails gracefully if running on an unsupported Node.js version (requires Node.js version 14 or higher)
322
+ - The Graphite CLI experience survey is no longer shown when commands are run in non-interactive mode.
323
+
324
+ **Note from the maintainers:**
325
+
326
+ Thanks for trying out the new version of the Graphite CLI! Please let us know if you see any issues with this new version, or have any suggestions for improvements related to functionality, flow, or transparency/simplicity.
327
+
328
+ New documentation for the CLI is coming soon! We love hearing your feedback about what documentation would be helpful — keep it coming!
329
+
330
+ Rebasing on `gt downstack get` has been outscoped for this release in order to get it to you sooner! We're still excited to put it out soon.
331
+
332
+ ## 0.18.7 2022-05-31
333
+
334
+ - Fixed a pervasive bug that prevented using `gt` on Windows at all — there are likely still remaining issues to work out before we have full support, and we still recommend using WSL for the most stable Graphite experience. Thanks to our community for helping out here!
335
+ - Fixed a bug where `git push` error messages would not be displayed on `submit`, resulting in confusion around whether pushes were failing because of e.g. `pre-push` hooks or`--force-with-lease` errors.
336
+ - Added better support for multiple checkouts (i.e. `git worktree`). We consider our support experimental, see the new section of the docs for details.
337
+
338
+ ## 0.18.6 2022-05-20
339
+
340
+ - Fixed a bug where running `gt branch rename` on submitted branches would result in `gt` becoming largely unusable.
341
+ - Added a new `--force/-f` option to `gt branch rename` that is required for already-submitted branches.
342
+ - `gt branch rename` now respects character replacement settings.
343
+
344
+ ## 0.18.5 2022-05-19
345
+
346
+ - `.` and `/` are no longer replaced in branch names.
347
+ - Fixed a regression where the current branch wouldn't be selected by default in `gt branch checkout` interactive mode.
348
+ - Upgraded `node` and `yarn` dependencies, please let us know if you see any weirdness!
349
+
350
+ ## 0.18.4 2022-05-16
351
+
352
+ - `gt downstack sync` no longer requires turning on a configuration option to use (for real this time)
353
+
354
+ ## 0.18.3 2022-05-13
355
+
356
+ - Rewrote `gt downstack sync` using a different mechanism for fetching remote stack dependencies.
357
+ - `gt downstack sync` no longer requires turning on a configuration option to use.
358
+ - Fixed an issue in `submit` where in-progress PR title wouldn't be saved if the user cancelled while writing the body.
359
+
360
+ ## 0.18.2 2022-05-12
361
+
362
+ - Fixed certain cases of an issue where restacking after `stack edit` and `commit create` would use an incorrect upstream. A broader fix is coming in v0.19.0.
363
+ - Fixed an issue where after certain `downstack edit` or `upstack onto` flows, branches would be pushed to GitHub in an order that caused them to be closed prematurely.
364
+ - Added `gt branch-prefix --reset` to turn off the user prefix for automatically generated branch names.
365
+ - Cleaned up copy in `submit` commands.
366
+
367
+ ## 0.18.1 2022-05-10
368
+
369
+ - `gt repo sync` and `gt repo fix` now prompt to delete closed branches in addition to merged ones.
370
+ - Added more customization for auto-generated branch name prefixes. Check out `gt user branch-date` and `gt user branch-replacement`.
371
+ - Config files are now written with 600 permissions instead of 644.
372
+ - Fixed an issue where `downstack sync` would overwrite the local copy of a branch even if the user chose not to.
373
+ - Fixed an issue where a misconfigured trunk wouldn't be brought to the user's attention.
374
+ - Fixed an issue where Graphite would fail to parse repository owner/name.
375
+ - Removed deprecation warning for `gt stacks` - it's been long enough.
376
+ - Cleaned up interactive mode copy for `submit`.
377
+
378
+ ## 0.18.0 2022-05-04
379
+
380
+ **New functionality**
381
+
382
+ - Added an experimental command `gt downstack sync` to pull down the remote copy of a branch and its downstack dependencies from remote. This feature is gated behind a configuration by default, and we are still working on the documentation. If you would like to try it out and help us iterate on the feature, please join the #experimental channel in the Graphite community Slack server!
383
+ - Added additional functionality to `submit` to support the experimental collaboration features. Gated by default.
384
+ - Added additional functionality to `gt repo sync` to support the experimental collaboration features. Gated by default.
385
+
386
+ **New commands**
387
+
388
+ - Added a new command `gt branch edit` that runs a native `git rebase --interactive` over the commits on the current branch. This command is intended for advanced Git users who want to make use of the commit structure within a branch while working with Graphite.
389
+ - Added a new command `gt branch show` that runs a native `git log` over the commits on the current branch. Includes a `--patch/-p` option to view the diffs.
390
+
391
+ **New ways to use existing commands**
392
+
393
+ - Added an `--insert` option to `gt branch create` which restacks all children of the parent of the new branch onto the new branch itself.
394
+ - Added interactive branch selection for `gt upstack onto` (similar to `gt branch checkout`). No longer requires a positional argument.
395
+
396
+ - `gt repo sync` now handles `--no-interactive` correctly.
397
+ - `gt commit amend --no-edit` now fails and warns the user when there are no staged changes, just like `gt commmit create`.
398
+ - `--no-edit` is now aliased to `-n` for `gt continue` and `gt commit amend`.
399
+ - `gt continue` now supports `--all/-a` to stage all changes.
400
+ - `submit --no-interactive` no longer un-publishes submitted PRs (unless `--draft` is specified).
401
+ - `gt downstack edit` now supports an `exec/x` option to execute arbitrary shell commands in between branch restacks (based on `git rebase --interactive`).
402
+ - `gt branch delete` now supports deleting the current branch. It checks out the parent (or trunk if Graphite cannot find a parent).
403
+
404
+ **Fixes**
405
+
406
+ - Fixed a bug where `submit --no-interactive` could prompt the user for reviewers.
407
+ - Fixed a bug where `gt repo owner` would set the remote as well, breaking `sync` and resulting in having to manually edit the configuration file to get Graphite working again.
408
+ - Fixed a bug where `submit` would fail for certain classes of branch name.
409
+ - Fixed a bug where comments in the `gt downstack edit` file were not respected.
410
+ - Fixed a bug where `p` as an alias for `pick` in `gt downstack edit` did not work properly.
411
+ - Fixed a bug where `fix` could swallow a rebase exception and leave the repository in a bad state.
412
+ - Fixed a bug where `gt branch checkout` interactive selection would fail if executed from an untracked branch.
413
+ - Fixed a bug where `gt branch delete` could fail to delete the branch but leave it in a corrupt state.
414
+
415
+ **Improvements**
416
+
417
+ - Improved the speed of `gt downstack edit` and `gt upstack onto` by being smarter about when a rebase is actually necessary.
418
+ - Improved the speed of stack validation for some commands.
419
+ - Cleaned up output of various commands and added more `--debug` logging.
420
+
421
+ **Under the hood**
422
+
423
+ - Added infra to backfill the SHA of branch parent in metadata globally wherever it is safe to do so to prepare for an upcoming update to the stack validation algorithm that we expect to improve performance and reduce hangs.
424
+ - Added plenty of tests and refactored code core to many commands for stability and future extensibility.
425
+
426
+ ## 0.17.11 2022-04-23
427
+
428
+ - Fix an issue introduced in the previous version where the async calls to fill in PR info on `submit` would not be awaited serially, resulting in a poor user experience.
429
+
430
+ ## 0.17.10 2022-04-22
431
+
432
+ - `sync` commands no longer allow pushing to branches associated with closed/merged PRs.
433
+ - Rename `gt branch sync` to `gt branch pr-info` as its behavior is not aligned with the other `sync` commands.
434
+ - Fix some output formatting for `sync` and `submit` commands.
435
+ - Fix an issue where pr data could be overwritten on `submit`.
436
+ - Decreased max branch name length slightly to support an upcoming feature.
437
+ - Start tracking SHA of branch parent in metadata, a requirement for some upcoming features.
438
+ - This version includes some initial changes to sync branch metadata with remote, gated by a hidden flag.
439
+
440
+ ## 0.17.9 2022-04-14
441
+
442
+ - Flipped `gt log short` view to match other log commands and `up`/`down` naming convention. `↳` → `↱`!
443
+ - Graphite now asks for confirmation if the user tries to submit an empty branch.
444
+ - Graphite now displays an info message when it creates an empty commit on a new branch.
445
+ - The empty commit copy in the commit editor now only appears when Graphite has created an empty commit.
446
+ - Added support for remotes not named `origin` - use the new `gt repo remote` command to set the name of your remote.
447
+ - Added support for branch names up to GitHub's max supported length (256 bytes including `/refs/heads` gives us room for 245 bytes).
448
+ - Allowlisted many git commands for passthrough.
449
+ - Added autocomplete support for `gt branch delete`.
450
+ - Changed force option on `gt branch delete` from `-D` to `-f`.
451
+ - Cleaned up output on `gt branch delete` failure.
452
+ - Fixed an issue where a branch could not be submitted if its name matched a file in the repository.
453
+ - Fixed an issue where `gt repo max-branch-length` wouldn't print the configured value.
454
+ - Added more debug information for the `--debug` option.
455
+
456
+ ## 0.17.8 2022-04-08
457
+
458
+ - Happy Friday! This should fix many hangs that users are experiencing.
459
+
460
+ ## 0.17.7 2022-04-08
461
+
462
+ - Graphite no longer cleans up local branches that share a name with merged branches on remote unless they have been associated with the merged PR (via a `submit` command).
463
+ - Fix bug where PR info wasn't being synced periodically.
464
+ - Added a new command `upstack fix`, similar to `stack fix` that only runs upstack of the current branch.
465
+ - `commit create` and `commit amend` now internally run an `upstack fix` instead of a `stack fix`.
466
+ - Fix a hang related to `git config diff.external` being set.
467
+ - Fix autocompletions for `gt branch checkout`.
468
+
469
+ ## 0.17.6 2022-03-29
470
+
471
+ - Support handling corrupted `.graphite_merge_conflict` files.
472
+
473
+ ## 0.17.5 2022-03-23
474
+
475
+ - Add deprecation warnings for `gt branch next` and `gt branch prev` in favor of `gt branch up` and `gt branch down`, respectively.
476
+ - Add `gt bu` and `gt bd` shortcuts for `gt branch up` and `gt branch down`, respectively.
477
+ - Change `gt branch delete` shortcut to `gt bdl`.
478
+ - Support passing through `gt stash` as `git stash`.
479
+ - Fix bug where `fish` users couldn't add backticks to commit message using the `-m` option.
480
+ - Silence retype errors.
481
+ - Minor copy updates.
482
+
483
+ ## 0.17.4 2022-02-25
484
+
485
+ - Refactored config loading to reduce race conditions.
486
+ - Add quotes around commit message in ammend command.
487
+ - Minor copy updates.
488
+
489
+ ## 0.17.3 2022-02-25
490
+
491
+ - Fix bug regarding repository config file reading from repository subdirs.
492
+
493
+ ## 0.17.2 2022-02-16
494
+
495
+ - Support numbers when generating a branch name from a commit message through `gt bc -m <message>`
496
+ - Prompt for a commit message when autogenerating an empty commit when running `branch create` with no staged changes.
497
+
498
+ ## 0.17.1 2022-02-15
499
+
500
+ - Support creating new branches with no staged changes, by automatically creating an empty commit.
501
+
502
+ ## 0.17.0 2022-02-15
503
+
504
+ - Enable changing existing PRs' draft status using the `--draft` flag on submit.
505
+ - Add a new command, `gt downstack edit` which enables interactive reordering of stack branches.
506
+ - Update implementation of `gt stack submit` to avoid GitHub rate limitted when submitting large stacks.
507
+
508
+ ## 0.16.8 2022-02-02
509
+
510
+ - Enable manually setting reviewers on submit with the `-r` flag.
511
+
512
+ ## 0.16.7 2022-02-01
513
+
514
+ - Allow Graphite to run when there are untracked files.
515
+
516
+ ## 0.16.6 2022-01-27
517
+
518
+ - Fix issue with detecting downstack/upstack branches on submit
519
+
520
+ ## 0.16.5 2022-01-07
521
+
522
+ - Fix issue with detecting some PR templates
523
+
524
+ ## 0.16.4 2021-12-13
525
+
526
+ - Wildcard matching for ignored branches (`gt repo ignored-branches --set`) now accepts glob-patterns
527
+ - Option to remove a branch from ignored list (`gt repo ignored-branches --unset`)
528
+ - Submit now supports --update-only option which will only update-existing PRs and not create new ones.
529
+ - Bugfix: Submit to honor the --no-verify flag
530
+ - Better logging and documentation to clarify behavior
531
+
532
+ ## 0.16.3 2021-12-3
533
+
534
+ - Support up and down aliases for `gt branch` next/prev respectively.
535
+ - Fix issue where `gt tips` could not be disabled.
536
+ - Inherit shell editor preference for user from env ($GIT_EDITOR/$EDITOR) and prompt user to set shell editor preference on submit if env not set.
537
+ - Allow user to change editor preference using `gt user editor`
538
+
539
+ ## 0.16.2 2021-10-25
540
+
541
+ - Support for `gt continue` to continue the previous Graphite command when interrupted by a rebase.
542
+
543
+ ## 0.16.1 2021-10-14
544
+
545
+ - Fix issue with `gt repo sync` deleting metadata for existing branches.
546
+ - Reduce merge conflicts caused by `gt commit amend`.
547
+
548
+ ## 0.16.0 2021-10-12
549
+
550
+ - Support for branch autocomplete functionality on gt branch-related commands. Enable this functionality by running `gt completion` and adding the ouputted bash script to your relevant bash profile (e.g. ~/.bashrc, ~/.zshrc).
551
+ - Added functionality to query users for feedback on the Graphite CLI.
552
+ - Refactor the suite of gt submit commands to make them more easily cancellable; re-ordered submit to edit all PRs locally before doing any writes and cancelling mid-submit will save any previously entered data (e.g. title and body).
553
+ - Submit also now includes a `--dry-run` flag to show the user what will be submitted in the invocation.
554
+ - Submit queries GitHub for PRs before submitting, resolving an issue where submit would sometimes try to create a new PR though one already existed for that head branch/base branch combo on GitHub (Graphite just didn't know about it).
555
+
556
+ ## 0.15.1 2021-10-4
557
+
558
+ - Fix `gt commit create -m` multi-word commit messages.
559
+
560
+ ## 0.15.0 2021-10-4
561
+
562
+ - Support for `gt stack top` and `gt stack bottom`.
563
+ - Adjusted logic for cleaning metadata in `gt repo sync`.
564
+
565
+ ## 0.14.4 2021-10-1
566
+
567
+ - Improve performance of stack logic on repos with a high number of local branches.
568
+ - Allow `gt commit create` to be used without `-m`, launching the system editor.
569
+ - Infer the body of a PR from the commit message body (if it exists).
570
+ - Add `gt repo trunk --set`.
571
+
572
+ ## 0.14.3 2021-09-30
573
+
574
+ - Improved `gt repo sync` performance when repos have a high number of stale branches. `gt repo sync` now deletes branches more eagerly and has an optional flag to show progress (`--show-delete-progress`).
575
+ - New command `gt repo fix` searches for common problems that cause degraded Graphite performance and suggests common remediations.
576
+
577
+ ## 0.14.2 2021-09-29
578
+
579
+ - Tacit support for merge-based workflows; merges no longer cause exponential branching in `gt log` and hang `gt upstack onto`.
580
+ - Fixes to recreation of debug state in `gt feedback debug-context --recreate`.
581
+
582
+ ## 0.14.1 2021-09-27
583
+
584
+ - Assorted improvements to the `gt repo sync` merged branch deletion logic and options to fix dangling branches.
585
+ - `gt branch parent --reset` resets Graphite's recorded parent for a branch (to undefined).
586
+ - `gt branch sync --reset` resets Graphite's recorded PR info a branch (to undefined).
587
+
588
+ ## 0.14.0 2021-09-16
589
+
590
+ - `gt debug-context` captures debug metadata from your repository and can send that to Screenplay to help troubleshoot issues.
591
+ - `gt repo sync` now pulls in PR information for all local branches from GitHub to link any PRs Graphite doesn't know about/better remove already-merged branches.
592
+ - Re-enable metadata deletion from `repo sync`.
593
+ - Re-enable pull request base pushing from `repo sync`.
594
+ - `gt branch create -m` now has `-a` flag to include staged changes in the commit.
595
+
596
+ ## 0.13.1 2021-09-01
597
+
598
+ - Disable metadata deletion from `repo sync`
599
+ - Disable pull request base pushing from `repo sync`
600
+
601
+ ## 0.13.0 2021-08-31
602
+
603
+ - `stack submit` now checks if update is needed for each branch.
604
+ - Support `upstack submit` and `branch submit`
605
+ - Fixed bug which was preventing `upstack` from having the alias `us`
606
+ - Added a command `branch rename` to rename branches and correctly update metadata.
607
+ - Better support cancelling out of prompts.
608
+ - Rename `stack clean` to `repo sync` and update to be able to be run from any branch.
609
+ - Update `repo sync` to delete old branch metadata refs.
610
+ - Update `repo sync` to update PR merge bases if necessary.
611
+ - Support passing through commands to git which aren't supported by Graphite.
612
+ - Add experimental command `stack test`.
613
+ - Fix bug causing branches to show up twice in log commands.
614
+ - Show PR and commit info in `log` command
615
+ - Add tip advising against creating branches without commits.
616
+
617
+ ## 0.12.3 2021-08-23
618
+
619
+ - Fix outdated copy reference to gp.
620
+ - Print error stack trace when --debug flag is used.
621
+ - Flag midstack untracked branches in `gt ls` output.
622
+ - Improve submit to correctly support `gt stack submit` and `gt downstack submit`
623
+ - Reduce unnecessary git ref calls to improve performance in large repos.
624
+ - Support graceful handling of sigint.
625
+
626
+ ## 0.12.2 2021-08-23
627
+
628
+ - Fix bug in `gt ls` stack traversal.
629
+
630
+ ## 0.12.1 2021-08-23
631
+
632
+ - Fix bug resulting in always showing tips for `gt ls`.
633
+
634
+ ## 0.12.0 2021-08-23
635
+
636
+ - Disallow branching off an ignored branch.
637
+ - Disallow sibling branches on top of trunk branch.
638
+ - Establish pattern of toggleable CLI tips.
639
+ - Rewrite `gt ls` to improve speed and output formatting.
640
+ - Optimize git ref traversal and memoization.
641
+
642
+ ## 0.11.0 2021-08-18
643
+
644
+ - Support PR templates in `stack submit` command.
645
+ - Update `stack submit` to support interactive title and description setting.
646
+ - Update `stack submit` to support creating draft PRs.
647
+ - Allow max branch length to be configured (from the default of 50).
648
+ - Fix a crash in logging that happened in a edge case involving trailing trunk branches.
649
+ - Hide remote branches in `log long` output.
650
+
651
+ ## 0.10.0 2021-08-17
652
+
653
+ - Fix case where commands fail if a branch's stack parent had been deleted.
654
+ - Fix copy across CLI to use `gt` rather than the old `gp`.
655
+ - Add more shortcut aliases for commands such as `s` for `submit`
656
+ - Fix copy around `repo-config` to `repo`
657
+ - Add command `branch checkout`
658
+ - Refactor `stacks` command into `log short`
659
+ - Update `log` command to support `log`, `log short` and `log long`
660
+ - Support dropping the space on double-alias shortcuts. Eg `branch next` = `b n` = `bn`, `stack submit` = `ss` etc
661
+ - Throw actionable errors if two branches point at the same commit.
662
+ - Add top level `graphite` alias such that the CLI can be called using both `gt` and `graphite`.
663
+
664
+ ## 0.9.1 2021-08-15
665
+
666
+ - Fix `gp` alias deprecation warning for homebrew installations.
667
+
668
+ ## 0.9.0 2021-08-15
669
+
670
+ - Rename graphite CLI alias to `gt` from `gp` per feedback.
671
+
672
+ ## 0.8.2 2021-08-13
673
+
674
+ - Improved performance of `gp stacks` command, particularly in repositories with a large number of stale branches.
675
+ - Changed search-space limiting settings to live at the top level and apply to both stacks and log. (`gp repo max-stacks-behind-trunk`, `gp repo max-days-behind-trunk`).
676
+
677
+ ## 0.8.1 2021-08-10
678
+
679
+ - Improved performance of `gp log` command, particularly in repositories with a large number of stale branches.
680
+ - Users can now set the maximum number of stacks to show behind trunk in `gp log` (`gp repo log max-stacks-behind-trunk`) as well as the maximum age of stacks to show (`gp repo log max-days-behind-trunk`).
681
+ - `gp log` also now has `--on-trunk` and `--behind-trunk` options.
682
+ - Improved CLI documentation and copy.
683
+
684
+ ## 0.8.0 2021-08-07
685
+
686
+ - Autogenerated branch name date format change.
687
+ - stack fix command now has `stack f` alias.
688
+ - branch create command now has `branch c` alias.
689
+ - branch create command now has `branch c` alias.
690
+ - `stack regen` is deprecated, and is now a flag for `stack fix --regen`.
691
+ - `stack fix` now shows an interactive prompt by default.
692
+
693
+ ## 0.7.1 2021-08-06
694
+
695
+ - Dont zero count months when generating branch names.
696
+ - Improve help text for amend.
697
+ - Improve help auth print out.
698
+
699
+ ## 0.7.0 2021-08-05
700
+
701
+ - Refactor `gp log` command, while supporting old behavior with `gp log --commits/-c`
702
+ - Check for updates in orphaned child process, making all commands faster.
703
+ - More helpful validation error messaging.
704
+ - `gp branch next/prev` now support interactive choices and stepping multiple branches.
705
+ - `gp branch create [-m]` now doesn't commit by default. It can also autogenerate branch names from commit messages.
706
+ - Added `gp commit create -m` for creating commits and fixing upstack.
707
+ - Added `gp commit amend -m` for amending commits and fixing upstack.
708
+ - Added `gp user branch-prefix [--set]` reading and setting your branch prefix.
709
+ - Added `gp branch parent [--set]` plumbing command for reading and setting a branch parent.
710
+ - Added `gp branch children` plumbing command for reading the children of a branch.
711
+
712
+ ## 0.6.3 2021-08-02
713
+
714
+ - Better telemetry for measuring cli performance.
715
+ - `gp l` alias for log command.
716
+
717
+ ## 0.6.2 2021-08-02
718
+
719
+ - `stack fix` now works for a individual stack. (Upstack inclusive for now)
720
+
721
+ ## 0.6.1 2021-08-02
722
+
723
+ - Fix homebrew release to not include a dev dependency on `chai`.
724
+
725
+ ## 0.6.0 2021-08-02
726
+
727
+ - Support `--no-verify` flag when running `branch create` to skip precommit hooks.
728
+ - Validation passes when a branch points to the same commit as trunk HEAD.
729
+ - Add `repo init` command.
730
+ - Self heal `.graphite_repo_config` file.
731
+ - Always track trunk branch and ignored branches.
732
+ - Update `stack regen` to always set stack foundations to trunk.
733
+ - Update `stack regen` such that, when from from trunk, regenerates all stacks.
734
+ - `branch next/prev` now traverses based on Graphite's stack metadata.
735
+ - Refactor `gp stacks` print output.
736
+
737
+ ## 0.5.4 2021-07-30
738
+
739
+ - Update `stack regen` to operate across entire stack rather than just upstack.
740
+ - `stack submit` infers PR title from single-commit branches.
741
+ - Using trunk branch inference, ignore trunk parents such as trailing `prod` branches.
742
+
743
+ ## 0.5.3 2021-07-29
744
+
745
+ - Begin infering trunk branch from .git config.
746
+ - Ignore trunk parent branches during validation and other operations.
747
+
748
+ ## 0.5.2 2021-07-28
749
+
750
+ - `upstack onto` can now move branches with no parent branches.
751
+ - `validate` now passes cases where branches point to the same commit.
752
+ - `stack fix` now prints better messaging during rebase conflicts.
753
+ - Removed unused args from `stack submit` and `stack fix`.
754
+ - Updated copy
755
+
756
+ ## 0.5.1 2021-07-28
757
+
758
+ - Dont automatically create repository config file.
759
+
760
+ ## 0.5.0 2021-07-27
761
+
762
+ - Improved `stack submit` command and promoted command out of expermental status.
763
+
764
+ ## 0.4.3 2021-07-27
765
+
766
+ - Update all copy to match new termonology from the 4.0.0 refactor.
767
+
768
+ ## 0.4.2 2021-07-27
769
+
770
+ - Update `branch create` command to accept optional positional argument for branch name.
771
+
772
+ ## 0.4.1 2021-07-27
773
+
774
+ - Fix demo command and downstack string.
775
+
776
+ ## 0.4.0 2021-07-27
777
+
778
+ - Refactor all command names into a noun-verb subcommand pattern.
779
+ - Introduce concept of `upstack` and `downstack`.
780
+ - Simplify documentation.
781
+ - Minor bugfixes.
782
+
783
+ ## 0.3.4 2021-07-25
784
+
785
+ - Fix bug in checking for uncommitted changes.
786
+
787
+ ## 0.3.3 2021-07-25
788
+
789
+ - Self heal if branch metadata parent somehow becomes self.
790
+ - Diff rolls back changes if commit hook fails.
791
+ - Fix bug in metadata stack traversal used by `fix` command.
792
+ - Restack fails fast if there are uncommitted changes.
793
+
794
+ ## 0.3.2 2021-07-24
795
+
796
+ - Slim down size of homebrew artifact.
797
+
798
+ ## 0.3.1 2021-07-24
799
+
800
+ - Diff now only commits staged changes.
801
+
802
+ ## 0.3.0 2021-07-24
803
+
804
+ - Support resolving merge conflicts during a recursive restack.
805
+ - Update `sync` command to be visable in `--help`.
806
+
807
+ ## 0.2.0 2021-07-22
808
+
809
+ - Update unlisted `gp sync` command to support trunk argument.
810
+ - Update unlisted `gp sync` command to prompt before deleting branches.