@withgraphite/graphite-cli 1.7.16 → 1.7.18

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 DELETED
@@ -1,1655 +0,0 @@
1
- # Graphite CLI Changelog
2
-
3
- # 1.7.16 2026-01-20
4
- - Added new `--remote-upstack` (`-u`) flag to `gt get` to fetch upstack branches submitted by other users.
5
- - Fixed a bug where frozen branches could be updated by `gt submit` after a `gt sync`.
6
- - Fixed `gt reorder` incorrectly splitting stacks when reordering branches above frozen branches.
7
- - Fixed commit message formatting when using multiple -m flags - messages now include newlines between each flag, which matches native git behavior.
8
- - Fixed a bug where `gt submit` would use the wrong branch's metadata to generate a title and description under some circumstances.
9
-
10
- # 1.7.15 2026-01-07
11
- - Added new `--close` flag (alias `-c`) to `gt delete` to also close a branch's associated PR on GitHub.
12
- - Improved branch name suggestion logic when running `gt split` to match behavior of `gt create`.
13
-
14
- # 1.7.14 2025-12-16
15
- - Added new `--into` flag to `gt modify` for committing changes into a downstack branch instead of the current branch.
16
-
17
- # 1.7.13 2025-12-15
18
- - Fixed some internal issues with builds.
19
-
20
- # 1.7.12 2025-12-10
21
- - Fixes issue with branch selection when running `gt create --insert`.
22
- - Add current branch indicator in `gt log`.
23
- - Always prompt a user before opening an editor for a PR description.
24
- - Fixed `gt submit --cli --ai` prompt to reflect AI auto-fills PR descriptions when skipped.
25
-
26
- # 1.7.11 2025-12-04
27
-
28
- - Updated `gt up` and `gt down` to return a non-zero exit code when they cannot move because the current branch is already at the top or bottom of the stack.
29
- - Running `gt undo` right after `gt abort` will now undo the command that ran before the aborted command instead of failing.
30
- - Updated all CLI help text and generated documentation links to use graphite.com instead of graphite.dev.
31
-
32
- # 1.7.10 2025-11-20
33
-
34
- - Added a new feature to `gt submit` that lets users choose whether reviewers should be applied to all PRs or only to newly created PRs when submitting a stack that contains a mix of new and existing PRs.
35
- - Fixed a circular dependency bug in split by file that occurred when branch names conflicted after a split was performed.
36
- - Fixed an alias parsing issue causing unintentional command execution upon user typos
37
-
38
- # 1.7.9 2025-11-14
39
-
40
- - Added ability to set and manage a default profile through the interactive config menu.
41
- - Show unstaged changes during `gt create`.
42
- - Added a tip explaining the difference between `gt checkout` (unfrozen) and `gt get` (frozen) when fetching new branches.
43
- - Fixed error with missing refs on remote.
44
- - Made `--edit-title` and `--edit-description` imply `--cli` automatically.
45
- - Ensured `--cli` is auto-enabled only when PR title/description editing is actually enabled.
46
- - Added clarification to `gt delete` explaining that deleting branches for open PRs is a local-only operation; PRs must be manually closed in GitHub.
47
-
48
- # 1.7.8 2025-11-10
49
-
50
- - Added a feature to automatically check out branches authored by the current user as unfrozen when using `gt get`.
51
- - Optimized performance when gathering rebase metadata.
52
-
53
- # 1.7.7 2025-11-05
54
-
55
- - Added `--to <target_branch>` flag to `gt up` for targeted branch navigation within large stacks.
56
- - Updated CLI, menu bar app, and VS Code extensions to request `app.graphite.com` instead of `app.graphite.dev`.
57
- - Trim whitespace from branch names in `gt rename` to prevent command failures.
58
- - Changed debug log file extension from `.log` to `.log.jsonl` to match updated format.
59
-
60
- # 1.7.6 2025-10-31
61
-
62
- - Added a feature to display warnings from PR submissions directly in the CLI to provide additional guidance to users.
63
- - Added retries on intermittent server errors.
64
- - Updated `--edit` to imply `--cli` in `gt submit` to ensure users can edit PR titles and descriptions directly in the CLI.
65
-
66
- - Fixed an issue where checking out the current branch after a rebase would create incorrect previous-branch entries in the reflog.
67
- - Fixed inconsistencies in upgrade behavior due to different packaging systems.
68
- - Fixed messaging for update-only submissions.
69
- - Fixed an issue where editing a PR description wouldn't show the existing content by fetching the PR body from the server.
70
- - Fixed an issue where `gt-fetch-head` refs could cause conflicts when creating new refs by deleting them when deleting a branch.
71
- - Fixed terminal alignment issues by replacing the pencil emoji (✏️) with a memo emoji (📝).
72
-
73
- - Improved error messages when a branch is updated outside of Graphite and `gt submit` fails.
74
- - Improved error reporting from server.
75
-
76
- # 1.7.5 2025-10-25
77
-
78
- - Fixed an issue where `gt submit` would incorrectly warn about out-of-date trunk when trunk was up-to-date.
79
- - Fixed a bug where `gt submit` would fail with a force-with-lease error with custom fetch refspecs (or shallow clones).
80
- - Added automatic re-tries in some cases to improve `gt submit` reliability.
81
-
82
- # 1.7.4 2025-10-21
83
-
84
- - Added a feature to automatically fast-forward the trunk to the upstream merge base when it's out of sync, improving UX during sync operations.
85
- - Added a feature that prevents submitting changes after a branch has been merged or added to a merge queue.
86
-
87
- - Improved messaging to help users resolve "BlockedWhileMerging" errors by suggesting next steps in the CLI.
88
- - Fixed messaging in gt demo stack output to use "upstack" instead of "downstack" for descendant branches.
89
-
90
- - Fixed a critical logging regression that caused loss of debug logs.
91
- - Fixed an issue where the CLI wouldn't update the trunk when fetching if a branch hadn't yet been submitted.
92
-
93
- # 1.7.2 2025-10-06
94
-
95
- - Added a feature to block submits and modifications to merging branches.
96
- - Added various performance optimizations on sync/get commands.
97
- - Fixed issue where syncing or fetching a frozen branch would unfreeze it.
98
-
99
- # 1.7.1 2025-09-26
100
-
101
- - Added controls to show/hide inline tips.
102
- - Added `--reset-author` flag to `gt modify` for resetting commit authorship.
103
- - Added the ability to `gt get` PRs opened outside of Graphite.
104
- - Fixed bug where progress indicators would sometimes interfere with prompts for ssh key passphrases.
105
- - Fixed autocomplete output formatting for better terminal compatibility.
106
-
107
- # 1.7.0 2025-09-01
108
-
109
- - Added new `gt freeze` and `gt unfreeze` commands. Freezing a branch prevents modifications to that branch.
110
- - New branches from `gt get` will be frozen by default.
111
- - Added warnings for newly empty branches after restack operations.
112
- - Added a cap to debug log size.
113
- - Improved `gt feedback` experience and reliability.
114
-
115
- - Fixed issue where `gt undo` could remove unstaged or untracked changes.
116
- - Fixed bug where `gt undo` sometimes failed after `gt continue`.
117
- - Fixed issue where org prefixes were duplicated for team reviewers in PRs.
118
- - Fixed branch sync to correctly detect trunk status when upstream is missing.
119
- - Fixed issue where `gt sync` would hang when branches were too far behind trunk.
120
- - Automatically set `--no-interactive` mode when stdin/stdout are not TTYs.
121
-
122
- # 1.6.8 2025-08-05
123
-
124
- - Added warnings when trunk is out of date during `gt submit`.
125
- - Fixed an issue where `gt sync` and `gt get` could result in slow operations.
126
- - Fixed an issue where `gt feedback` incorrectly reported a failure.
127
- - Fixed an issue where `gt submit` incorrectly required the `--force` flag.
128
- - Fixed an issue where `gt log` with `-n 0` would report the incorrect branch.
129
- - Fixed an issue where `gt revert` would fail to perform any action.
130
- - Fixed an issue where git hooks configured absolute paths would not be found.
131
-
132
- # 1.6.7 2025-07-09
133
-
134
- - Fixed an issue where `gt submit` would incorrectly report a branch as having a "New parent".
135
- - `gt submit --branch` now validates that a branch name is provided when the flag is used.
136
- - Fixed an issue where `gt absorb` would fail with an error message "Shas does not match current stack".
137
- - Fixed an issue where rebasing empty branch could cause incorrect metadata.
138
- - Fixed an issue where `gt track` would not recover a diverged branch if the branch was already tracked.
139
-
140
- # 1.6.6 2025-06-11
141
-
142
- - Add an option to cancel the operation when `gt get` or `gt sync` encounter merge conflicts.
143
- - Fixed an issue where `gt submit` would incorrectly warn about missing remote changes.
144
-
145
- # 1.6.5 2025-06-04
146
-
147
- - Added logging of processes holding index.lock when Git commands fail due to lock contention.
148
- - Extended debug log expiry from 1 to 7 days for better access to historical logs.
149
- - Added validation for unexpected arguments in the `gt checkout` command to avoid accidental invocations.
150
- - Fixed an issue where some vscode extension activity could cause excessive log file usage.
151
-
152
- # 1.6.4 2025-05-19
153
-
154
- - Fixed a bug where `gt submit` and `gt sync` could incorrectly report a new remote version.
155
- - Fixed a bug where `gt submit` may try to push the same branch twice.
156
- - Fixed a bug where help text would be displayed in a single column when piped to another command.
157
- - Fixed an issue where polling in the vscode extension could cause large amounts of log file usage.
158
-
159
- # 1.6.3 2025-05-09
160
-
161
- - Fixed a bug in `gt submit` and `gt sync` that caused performance degradation and crashes when pull requests were modified outside of Graphite.
162
-
163
- # 1.6.2 2025-05-02
164
-
165
- - `gt track` shows the exact number of commits that will go into the new branch, making it easier to spot oversized stacks.
166
- - Updated git fetch commands to longer fetch tags, reducing network usage and speeding up operations.
167
-
168
- - Fixed a bug in `gt pr` where branch names were interpreted as a PR number if they started with a digit.
169
- - Fixed a bug in `gt submit` where PR descriptions were being generated larger than the GitHub PR description limit.
170
- - Fixed a bug in `gt submit` where PR titles were being generated larger than the GitHub PR title limit.
171
- - Fixed a bug in `gt submit` where pushing all the branches in a stack could partially fail leading to inconsistent diffs in some PRs.
172
- - Fixed a bug in `gt submit` where temporary branches were not being cleaned up correctly.
173
- - Fixed a bug in `gt create` where the branch name was incorrectly added to the commit message.
174
-
175
- # 1.6.1 2025-03-21
176
-
177
- - Fixed a bug where in certain cases, trunk commits could be included in a tracked branch, resulting in many Graphite operations hanging or failing.
178
- - Fixed a bug where certain cases of syncing a branch submitted outside of Graphite would crash the CLI.
179
- - Added better protections against running too many `git` subprocesses.
180
-
181
- # 1.6.0 2025-03-07
182
-
183
- - Added support for multiple `-m` flags in `gt create`, `gt modify`, and `gt squash`.
184
- - Provided additional context when commands fail due to Graphite maintenance and incidents.
185
- - Use commit message for branch name if there are no staged changes.
186
- - Updated output colors to avoid difficult to read output.
187
-
188
- - Fixed a bug where `gt feedback` could fail due to large log files.
189
- - Fixed a bug where the remote repository could be marked as ''.
190
- - Fixed a bug where a large number of commits can cause "Invalid string length" exceptions.
191
- - Fixed a bug where whitespace in the repository path is not handled correctly when worktrees are used.
192
-
193
- - Dropped official support for Node 18 in anticipation of its end-of-life date on 2024-04-30 (note: this is only a minor version bump because we don't expect any breaking changes).
194
- - Removed `gt interactive`
195
-
196
- # 1.5.3 2025-01-21
197
-
198
- - Introduced a progress bar for `git fetch` and `git push` operations.
199
-
200
- - Fixed an issue where feature flags could be inadvertently disabled.
201
- - Adjusted some command output formatting for consistency.
202
-
203
- # 1.5.2 2024-12-23
204
-
205
- - Cleanup `graphite-base` branches if a submit fails to push to remote
206
- - Fixed a bug where `graphite-base` branches were incorrectly introduced in trailing trunk multi-trunk configurations
207
- - Fixed a bug where `gt submit` could lead to incorrect diffs upstack if submit was not run on the full stack
208
- - Fixed a bug where `gt rename` did not use configured branch prefixes
209
- - Fixed a bug where `gt` commands could fail with `EAGAIN` errors
210
- - Fixed a bug where `gt delete` could fail when run on untracked branches
211
-
212
- # 1.5.1 2024-12-12
213
-
214
- - Fixed a bug where `gt submit` on a stack would lead to temporary incorrect diffs on the upstack remote PRs
215
- - Fixed a bug where `gt sync` failed with "RangeError: Invalid string length"
216
-
217
- - Updated `gt rename` to fail if the user aborts the command
218
- - Updated `gt squash` to fail if the squash command does nothing
219
- - Updated all output to properly respect the --no-interactive flag (e.g. gt log, gt info…)
220
-
221
- # 1.5.0 2024-12-04
222
-
223
- - Introduced `gt abort`, which aborts the current rebase operation and restores the repository state to before the original command that introduced the conflict
224
- - Introduced `gt undo`, which undoes the most recent Graphite mutation, restoring the repository to its state before the mutation was applied
225
-
226
- - Fixed a bug where submitting a moved branch could temporarily result in incorrect diffs on remote
227
- - Updated `gt create` to prompt for a branch name for empty branches if one was not provided
228
-
229
- # 1.4.11 2024-11-22
230
-
231
- - Internal improvements to config files
232
- - Add linux arm64 build to releases
233
-
234
- # 1.4.8 2024-10-31
235
-
236
- - Added additional debugging information for pr info updates
237
-
238
- # 1.4.7 2024-10-22
239
-
240
- - Fixed a bug in `gt demo` that would corrupt the repo's name and owner
241
- - Updated sending non-info cli output to stderr instead of sending everything to stdout
242
-
243
- # 1.4.6 2024-09-26
244
-
245
- - Fixed a bug where `gt sync` would not update trunk if there were no previously submitted branches
246
- - Updated `gt submit --branch` to work while checked out untracked branches
247
- - Updated support for git pre-push hooks on Windows machines
248
-
249
- # 1.4.5 2024-09-13
250
-
251
- - Added support for working with and updating branches checked out across worktrees
252
- - Added support for working with branches automatically rebased by graphite
253
-
254
- - Fixed a bug where adding an undefined trunk would corrupt cli metadata
255
- - Fixed a bug where `gt sync --all` would only clean up branches on the current trunk
256
- - Improved `gt submit` performance by skipping unnecessary fetches
257
- - Improved performance of deleting branches by only deleting required metadata
258
- - Updated `gt checkout` to work while on a detached head
259
- - Updated `gt submit` to submit branches that have never been submitted with Graphite
260
- - Updated `gt sync` to better handle cases where the branch was updated outside of Graphite
261
- - Updated `gt init --trunk` to warn against setting a trunk that does not exist locally
262
- - Updated `gt sync` and `gt get` to work on untracked branches
263
-
264
- # 1.4.4 2024-08-29
265
-
266
- - Added new `gt unlink` command to unlink a branch from the currently associated PR
267
- - Added better support for re-using branch names
268
- - Added support for passing a branch name to `gt info`
269
- - Added installation information to CLI releases
270
-
271
- - Fixed a bug where rebases would not handle commits without a parent commit (e.g. original or orphaned commits)
272
- - Fixed a bug where rebases with merge commits would cause conflicts with already merged commits
273
- - Fixed a bug where request error logs could cause circular structure errors
274
- - Updated `gt rename` to use the correct name when asking for a rename confirmation
275
- - Updated `gt create --insert` to leave descendants in an un-restacked state when there are conflicts
276
- - Updated `gt delete` to also prune branches
277
- - Updated pre-push git hooks to better handle running in repo root
278
-
279
- # 1.4.3 2024-08-09
280
-
281
- - Added a `--stack` flag to `gt checkout` to only show current stack
282
-
283
- - Fixed a bug where `gt log` and `gt checkout` don't work on untracked branches
284
- - Fixed a bug where unsetting a trunk would not fully unset it
285
- - Fixed a bug where `gt` throws a cannot read undefined error while reading 'validationResult'
286
- - Fixed a bug where `gt track` might get into an infinite loop while recovering diverged branches
287
- - Improved merge conflict status to handle unstaged changes during rebasing
288
- - Updated instructions for committing untracked files to be more clear
289
- - Updated networking error diagnostics
290
- - Updated `gt pr`, `gt docs`, and `gt dash` to print out the URL being opened
291
-
292
- # 1.4.2 2024-07-30
293
-
294
- - Added support for `--verbose/-v` in `gt create` and `gt modify` to include diff in commit message template
295
- - Added a `--add` flag to `gt trunk` to configure an additional trunk branch
296
-
297
- - Updated list of unmerged conflict files to print paths relative to the current working directory
298
- - Updated `gt create` to suppress the detached HEAD message on every create
299
- - Update pre-push hook error messages to include more details
300
- - Updated `gt demo` to work in repos the user cannot submit to yet
301
- - Fixed a bug where the branch name date prefix was incorrect in `gt config`
302
- - Fixed a bug where `gt submit` would not fetch the branch before submitting to determine if it needs submitting
303
- - Fixed a bug where `gt rebase --continue` would swallow the post-rewrite git hook output
304
- - Fixed a bug where `gt track` would incorrectly tell you to track the branch
305
- - Fixed a bug where the `--force` flag was not respected in `gt submit` when the remote was updated
306
- - Fixed a bug in the interactive selector with `--all` where trunks could not be correctly selected
307
-
308
- # 1.4.1 2024-07-10
309
-
310
- - Added a `--trunk/-t` to `gt checkout` to switch to the current trunk
311
-
312
- - Fixed bug where `gt sync` would try to update a trunk you don't have configured
313
- - Fixed bug in `gt demo` that incorrectly created a "-p" directory to run the demo in
314
- - Updated `gt init --reset` to also reset PR metadata
315
- - Reduced the maximum number of parallel git calls in order to reduce spawn errors
316
-
317
- # 1.4.0 2024-07-03
318
-
319
- **This version of the Graphite CLI adds support for working on multiple trunks that will be rolled out over the coming weeks via a server-side feature flag.**
320
-
321
- If you'd like to be included in the initial rollout of these changes, please let us know in the #cli-beta channel on our Community Slack. Since we are using a server-side feature flag, updating to `1.4.0` alone will not enable the new behavior.
322
-
323
- - Major changes to the internal gt data model to support having multiple trunks at once
324
- - Added new `gt config` repository options to:
325
- - Add an additional trunk
326
- - Remove additional trunks
327
- - Configure a local trunk to open all PRs against a different target trunk, supporting workflows where users work locally off a descendant of their remote trunk
328
- - Updated `gt trunk` to print out the current trunk name instead of checkout the trunk
329
- - Added a `--all` option to `gt trunk` to print out all the configured trunks
330
- - Added a `--all` option to `gt log` to show all branches across all configured trunks
331
- - Added a `--all` option to `gt checkout` to show all branches across all configured trunks in the interactive selector
332
- - Added a `--all` option to `gt move` to show all branches across all configured trunks in the interactive selector
333
- - Added a `--all` option to `gt sync` to pull all configured trunks and sync all branches across all these trunks. By default only syncs the current trunk branches.
334
- - Added a `--target-trunk` option to `gt submit` to define what trunk to open PRs against on remote.
335
- - Updated `gt sync` and `gt submit` to handle cases where a merged PR's merge commit is not actually included in the up-to-date trunk
336
- - Updated `gt init` to reset gt back to single trunk, warning the user if they have multiple trunks currently configured
337
-
338
- - Fixed a bug during command initialization that caused the CLI to hang infinitely
339
-
340
- # 1.3.10 2024-06-26
341
-
342
- - Updated `gt squash` to no-op when there are no commits to squash or only a single commit
343
- - Updated all prompt suggestions to support fuzzy searching branches
344
-
345
- # 1.3.9 2024-06-18
346
-
347
- - Updated `gt demo` to initialize Graphite automatically if the current repo has not yet been initialized
348
-
349
- # 1.3.8 2024-06-12
350
-
351
- - Updated `gt absorb` to print the number of hunks that were not absorbed
352
- - Updated `gt log` to not show `updated remotely` since it does not respect the new sync changes
353
-
354
- - Fixed bug where `gt sync` would always ask to reconcile when there were local changes
355
-
356
- # 1.3.7 2024-06-05
357
-
358
- - Updated `gt modify` to print out conflicts when it cannot restack cleanly
359
-
360
- - Added better error handling in `gt sync/get` for server-side errors
361
- - Fixed more cases of the bug where local version was being overwritten by remote even when user selected `no` from prompt.
362
- - Fixed bug where remote tracking errors would cause commands to fail completely
363
- - Fixed bug where staged changes were incorrectly detected because of a stale index cache
364
-
365
- # 1.3.6 2024-05-29
366
-
367
- - Updated `gt feedback` to not require to be run in a repo
368
-
369
- - Fixed bug where a command could trigger thousands of parallel git commands at once causing spawn issues
370
- - Fixed bug where `gt get` would try to checkout a branch that was just deleted
371
-
372
- # 1.3.5 2024-05-22
373
-
374
- - Updated `gt modify` to leave descendants in an unrestacked state when there are conflicts.
375
- - Updated `gt split` behavior to skip git hooks.
376
-
377
- - Fixed bug where local version was being overwritten by remote even when user selected `no` from prompt.
378
- - Fixed bug where remote rebase-only changes were not reconciled during `gt sync`.
379
- - Fixed bug where staged changes were incorrectly detected as unstaged.
380
- - Fixed bug where files changed in parent directories were not detected.
381
- - Fixed bug where children of split branches were not being tracked.
382
- - Fixed bug where pre-push hooks were not being run from the repo root.
383
-
384
- - Removed references to deprecated command names.
385
-
386
- # 1.3.4 2024-04-29
387
-
388
- - Fixed multiple issues with the new versions of `gt get`, `gt sync`, and `gt submit`. The new versions will be rolled back out with this release.
389
- - Fixed an issue where `post-checkout` hooks were swallowed, resulting in issues when interactive scripts are used.
390
- - Fixed some typos in command output.
391
- - `gt demo` now skips all Git hooks (with an implicit global `--no-verify`).
392
- - `gt sync` no longer prints out `Restacking branches` if there are no branches to restack.
393
- - Added details about troubleshooting to `gt --help`.
394
-
395
- # 1.3.3 2024-04-05
396
-
397
- - Fixed an issue where `gt submit` could fail in certain cases due to the format of a Git remote URL.
398
- - Fixed an issue where the wrong branch name was referenced by `gt move`'s prompt.
399
- - Fixed an issue where `gt absorb` could fail in certain environments.
400
- - Fixed an issue where `gt log short` could incorrectly show a branch as "updated remotely" when it was not.
401
- - Added interactivity to `gt feedback`.
402
-
403
- # 1.3.2 2024-03-26
404
-
405
- - Fixed a bug where `gt submit` would hang in certain cases.
406
-
407
- # 1.3.1 2024-03-23
408
-
409
- - Updated `gt submit` to match the new behavior of `gt sync` and `gt get`.
410
- - `gt submit` now skips branches with no commits between head and base and their descendants, instead of failing outright (GitHub does not allow PRs with no commits).
411
- - `gt submit` now prompts to restack if the `--restack` flag is not passed and it would fail without restacking.
412
- - Fixed a bug where `gt submit` would restack in certain cases when the `--restack` flag was not passed.
413
- - Fixed a bug where `gt submit` was not prompting to choose between pasting template/commit messages and editing them.
414
- - Fixed a bug where legacy scoped submit commands were not enforcing that branches be restacked before submitting.
415
-
416
- - Deleting branches in `gt sync`, `gt get`, `gt submit`, or with `gt delete` now prints the SHA the branch was at before deletion like Git, as there is no reflog for deleted branches.
417
-
418
- - Added better error messaging for the new version of `gt sync` when unauthed.
419
- - Fixed a bug where commands that open a URL would fail if `xdg-open` was not installed, instead of printing the URL to the terminal.
420
- - Fixed a bug where `gt get` would not set up the remote-tracking branch properly.
421
- - Fixed a bug in the new version of `gt get` and `gt sync` where branches would not get newly associated with PRs.
422
- - Fixed a typo in `gt absorb`.
423
-
424
- # 1.3.0 2024-03-20
425
-
426
- - This version of the Graphite CLI includes a significant update to `gt sync` and `gt get` that will be rolled out over the coming weeks via a server-side feature flag.
427
-
428
- - The primary goal of these changes is to improve the experience of syncing remote changes to your local branches, ensuring that flows like collaborating on a stack or applying suggested edits to a PR are seamless and reliable.
429
- - Notably, `gt sync` now syncs all branches, where previously it just synced trunk. This brings it closer to the behavior of `gt get`.
430
- - Conversely, `gt get` with no argument passed is essentially "`gt sync` for the currently checked out stack."
431
- - The full behavior is:
432
- 1. Update the trunk branch to match remote
433
- 2. Clean up branches associated with merged or closed PRs
434
- 3. Sync any remote changes to local branches
435
- 4. Restack branches as needed
436
- - If you'd like to be included in the initial rollout of these changes, please let us know in the #cli-beta channel on our Community Slack. Since we are using a server-side feature flag, updating to 1.3.0 alone will not enable the new behavior.
437
- - The changes are largely based on your feedback, and we're excited to see how they improve your experience with Graphite. THANK YOU!
438
-
439
- - `gt create` now applies the branch prefix to branch names passed in directly (e.g. `gt create branch-name` with a prefix of `prefix/` will yield a branch called `prefix/branch-name`). This behavior can be disabled in `gt config`. If the branch name already begins with the prefix, it will not be added again.
440
- - Graphite now sets the environment variable `GT` to `1`, which can be checked by subprocesses like an editor or Git hook to determine if they are being run from Graphite.
441
-
442
- - Fixed a bug where `gt absorb` would fail if the git config to detect copies in diffs was enabled.
443
- - Fixed a bug where `gt split --by-hunk` would leave the user in a detached state if interrupted.
444
- - If no changes are staged in a step of `gt split --by-hunk`, it will now prompt to stage changes again instead of exiting with an error.
445
-
446
- - Slightly updated help text and error messages for `gt fold`.
447
-
448
- # 1.2.8 2024-03-12
449
-
450
- - Fixed a segfault issue caused by a dependency.
451
-
452
- # 1.2.7 2024-03-07
453
-
454
- - Added support for `gt demo` to use a temporary repository if run from outside of a repository.
455
- - Added support for `gt demo` to be run without authenticating the CLI.
456
- - Fixed an issue where tab autocompletion did not work inside of `gt demo`.
457
-
458
- - Added support for `gt create` to use AI to populate commit message and branch name. This will be rolled out via a server-side feature flag over the coming weeks.
459
-
460
- # 1.2.6 2024-03-05
461
-
462
- - By default, `gt create` will now replace slashes in commit messages when inferring branch names, and will convert uppercase letters to lowercase. Both of these new behaviors can be disabled in `gt config`.
463
- - Added individual `--edit-title` and `--edit-description` flags to `gt submit` to allow for editing the PR title and body, respectively. `--no-edit-title` and `--no-edit-description` can be used to skip the prompts for each. Note that `--edit` and `--no-edit` will still work as before.
464
- - Added support for `gt submit` to use AI to populate PR titles and description. This will be rolled out via a server-side feature flag over the coming weeks.
465
- - When creating new PRs, `gt submit` will continue to a web browser to edit PR metadata. `--cli` can be passed to use the CLI flow.
466
- - Added a setting to `gt config` to toggle the above behavior: i.e., use the CLI instead of web by default. In that case, `--web` can be passed to use the web flow.
467
-
468
- - Fixed an issue resulting in certain commands failing when using a YubiKey-protected SSH key.
469
- - Fixed an issue where `gt demo` would not work on Windows.
470
-
471
- - Debug logs are now always written, even when the `--debug` flag is not passed.
472
- - The `--debug` flag now logs to the terminal as well as to a file.
473
- - `gt feedback <message> --with-debug-context` now sends our engineers all debug logs from the past 24 hours.
474
- - Debug logs are cleaned up after 24 hours.
475
-
476
- # 1.2.5 2024-02-27
477
-
478
- - Adjusted the set of branches that might be included in the new prompt to update upstack branches.
479
- - Fixed an issue where staged changes could be discarded inadvertently during a `gt sync`.
480
- - Fixed an issue where `gt demo` would fail on Windows.
481
- - Added an NPM `postinstall` script to ensure NodeJS version compatibility.
482
-
483
- # 1.2.4 2024-02-22
484
-
485
- - `gt submit` now prompts to update upstack branches with open PRs when run from a mid-stack branch.
486
- - `gt submit` is now able to detect when GitHub/Graphite sync is not enabled for a repository. We'll be rolling out the check for this over the coming weeks.
487
- - A warning is now displayed when branches diverge from Graphite's tracking, and a new flow has been added to `gt track` to remediate diverged branches.
488
- - `gt log` is now sorted stably.
489
-
490
- - Fixed the `gt sq` alias for `gt squash`.
491
- - Fixed an issue where `gt submit` would fail (before submitting upstack branches) if run from a merged branch.
492
- - Fixed an issue where `gt submit` would fail if a pre-push hook had spaces in its path.
493
- - Ensured better error messaging for various commands when a rebase is in progress.
494
- - Removed the `--show-delete-progress` flag of `gt submit`.
495
-
496
- # 1.2.3 2024-02-14
497
-
498
- - Fixed an issue where `gt submit` would fail in repositories using `git-lfs`.
499
-
500
- # 1.2.2 2024-02-13
501
-
502
- - Adjusted some copy in `gt absorb`.
503
- - Fixed an issue where `gt absorb` only worked when run from the root of a repository.
504
- - Fixed an issue where aborting a `gt create` could leave you in a detached state.
505
- - Added protections against creating server-side PR dependency cycles.
506
-
507
- # 1.2.1 2024-02-11
508
-
509
- - Fixed an issue where the `gt ab` alias for absorb wasn't recognized.
510
- - Fixed an issue where `gt absorb --patch` hung instead of opening the patch selector.
511
- - Fixed an issue where invalid Graphite metadata would prevent any command from being run.
512
-
513
- # 1.2.0 2024-02-09
514
-
515
- - Introduced `gt absorb`, which automatically amends staged changes to commits in your stack.
516
-
517
- - You can now select which PR template will be used by default in `gt config`.
518
- - `gt checkout -` now selects the last branch that was checked out, just like Git.
519
- - `gt sync` now denotes the currently checked out branch when it was unable to restack it cleanly.
520
-
521
- - Added clearer messaging for the action needed to avoid detected merge conflicts on `submit`.
522
-
523
- - Fixed an issue where pressing Escape in an interactive prompt selected the current option.
524
- - Fixed an issue where GitHub pull request templates with extensions other than .txt and .md were not detected.
525
- - Fixed an issue where invalid/expired auth on `gt get` resulted in an unclear error message.
526
- - Fixed an issue where `gt get` would not work for stacked branches if using a YubiKey-protected SSH key.
527
- - Fixed an issue where `gt track` would display remote-tracking branches as potential parents.
528
-
529
- # 1.1.5 2024-02-02
530
-
531
- - Fixed bug in `create` and `modify` where we showed `--update` as an option when there were only unstaged changes (now we only show `--all` and `--patch`).
532
- - We now show `--patch` as an option for `create` and `modify` even when there are only untracked changes.
533
- - Added interface to let users pick untracked files to track in `--patch` mode (in `create` and `modify`).
534
-
535
- - Improved error messaging for `gt get` for when we can't find a PR for the requested branch.
536
- - Updated `gt get <trunk>` functionality to checkout the trunk branch.
537
-
538
- - Improved error messaging for when a user tries to fold a branch into main.
539
- - Added an example to `gt fold --help`.
540
-
541
- - Fixed bug where `gt rename` could cause branches to become untracked.
542
-
543
- - Added support for `pre-push` git hook.
544
-
545
- # 1.1.4 2024-01-31
546
-
547
- - Added an alias `gt --help --all`, which is equivalent to `gt --help --all-commands`.
548
-
549
- # 1.1.3 2024-01-22
550
-
551
- - Added an option to change the trunk branch name in `gt config`.
552
- - Removed prompt to submit on web when the `--no-edit` flag is passed to `gt submit`.
553
-
554
- - Updated `gt --help --all-commands`.
555
- - Added `gt completion` to `gt --help --all`.
556
-
557
- # 1.1.2 2024-01-16
558
-
559
- - Fixed a bug where `gt demo` would error out once the user attempts to run `gt create`.
560
-
561
- # 1.1.1 2024-01-12
562
-
563
- - Fixed a bug where `gt submit` would unnecessarily prompt that the branch would conflict with remote.
564
-
565
- # 1.1.0 2024-01-04
566
-
567
- - Added new `gt demo` feature which interactively teaches you how to use `gt` to create pull requests and stacks.
568
- - Run `gt demo pull-request` from any repo to create a sample PR.
569
- - Run `gt demo stack` from any repo to create a sample stack of PRs.
570
- - Made improvements to `gt help --all-commands`
571
-
572
- - Organized the commands into sections, for better scanning & readability
573
- - Updated each command description to be shorter on this help page, for better readability
574
- - Added docs links to the bottom of the help output
575
- - Configured wrap width of the output to be more responsive to your terminal size
576
- - Colorized anything in `backticks` in the help output
577
-
578
- - Fixed error messaging in `gt pr` to show the branch name when we couldn't find an open PR for the current branch
579
- - Fixed the copy in `gt guide workflow` based on community feedback.
580
- - Fixed `gt merge` to correctly handle the case when a branch is locked.
581
- - Fixed a bug with `gt get` where it was not correctly checking out the branch after syncing it
582
-
583
- # 1.0.14 2023-12-20
584
-
585
- - Improved error messaging when config file is invalid.
586
- - Updated `gt submit` behavior when upstack branches have merged.
587
- - Added `gt interactive` command to open the Graphite Interactive extension.
588
- - Updated `gt auth` to print more information about the user's auth status.
589
-
590
- - Fixed an issue where `gt track` would hang if no parent was explicitly passed to the command.
591
-
592
- # 1.0.13 2023-12-13
593
-
594
- - Fixed bug where "needs restack" was not printing out in `gt log short`.
595
-
596
- # 1.0.12 2023-12-11
597
-
598
- - Updated `gt --help` to be an overview of `gt` and the Graphite workflow.
599
- - Moved the previous command help reference to `gt --help --all-commands`.
600
- - Added an inline CLI guide to the Graphite workflow, available underneath `gt guide workflow`.
601
-
602
- # 1.0.11 2023-11-27
603
-
604
- - Fixed bug where aliases were not respected.
605
-
606
- - Added retry when fetching branch from remote fails.
607
-
608
- # 1.0.10 2023-11-13
609
-
610
- - Updated the `gt submit --draft` flag to only no longer convert already published PRs back to drafts.
611
- - Added support for team reviewers. Team reviewers can either be specified using `gt submit --team-reviewers slug` or through `gt submit --reviewers org/slug`.
612
-
613
- - Added output to `log short` when a branch needs to be fetched from remote (using `gt get`).
614
- - Added output after `gt checkout` specifying whether a branch needs to be submitted, fetched, or restacked.
615
-
616
- - Removed a reference to legacy command names.
617
-
618
- # 1.0.9 2023-10-23
619
-
620
- - Improved how PR descriptions are persisted across aborted `submit` runs.
621
- - Modified version prompting so users are only asked to upgrade their CLIs once per day.
622
-
623
- - Fixed a bug in remote changes detection.
624
-
625
- # 1.0.8 2023-10-16
626
-
627
- - Added a `--update` option for `create` and `modify` that stages changes to all already-tracked files.
628
- - Added support for `gt get <pr-number>`.
629
- - Added a `--comment` flag to `submit` which will add a comment with the provided text to the submitted PR.
630
- - Added additional debugging information to the output file of the `--debug` flag.
631
-
632
- - Fixed a bug where the incorrect version number was displayed after running `gt get` for a remote branch.
633
-
634
- # 1.0.7 2023-10-04
635
-
636
- - Added `gt aliases --legacy` command to automatically add all of the old shortcuts to your aliases configuration.
637
- - Added ability to navigate through prompts using ctrl+n and ctrl+p.
638
- - Updated `submit` description behavior to include commit messages if no default template exists.
639
- - Updated how we detect if there are remote changes to a PR that need to be resolved.
640
-
641
- - Fixed a bug where local state could become corrupt after switching trunk branch.
642
- - Fixed a bug where we were syncing information for untracked branches.
643
- - Fixed incorrect `restack` deprecation warning.
644
-
645
- # 1.0.6 2023-09-29
646
-
647
- - Updated the default behavior on `gt submit` to not restack branches.
648
- - Added an optional `--restack` flag to `gt submit`.
649
- - Always prompt on `gt submit` if the branch will have conflicts with main.
650
-
651
- ## 1.0.5 2023-09-18
652
-
653
- - Fixed a stray line of output in `gt create`.
654
- - Fixed an issue where syncing PR data from remote could set the wrong parent.
655
-
656
- ## 1.0.4 2023-09-18
657
-
658
- - Updated `--help` output to be more consistent and more helpful.
659
- - Added a new command `gt aliases` to open up the alias file in your editor.
660
- - Now removes `~/.graphite_user_config` once your configuration has been moved to the new location to reduce confusion.
661
-
662
- - `gt submit` now opens the PR in your browser if you pass the `--view` flag.
663
- - `gt rename` now prompts instead of immediately failing if you don't pass `--force` when required.
664
- - `gt up` interactive selection now prompts you a single time instead of at each level (similar to the `top` change from v1.0.2).
665
-
666
- - Fixed the `gt pr` command.
667
- - Fixed a bug where no error message was printed when you try to create a branch with an invalid or existing name.
668
- - Updated branch naming validation to more closely match the Git specification. Please let us know if you see any inconsistencies.
669
-
670
- ## 1.0.3 2023-09-15
671
-
672
- - Fixed an issue where restacking did not respect the `commit.gpgSign` configuration value.
673
- - Fixed an issue where `create` with just a branch name incorrectly failed to execute.
674
- - Fixed an issue where the `git --version` check failed on Windows (and likely certain other git distributions).
675
-
676
- ## 1.0.2 2023-09-15
677
-
678
- - `gt top` interactive selection now offers which tip to travel to instead of prompting at each intermediate step. We'll be porting the same behavior to `gt up` soon.
679
- - The `--debug` flag now logs to a file instead of stdout.
680
- - Clearer error messaging for outdated Git version.
681
-
682
- - Fixed a bug where `gt sync` could reset the index and working tree, and improved error handling in similar cases with uncommitted changes.
683
- - Fixed the error messge when running a deprecated command to print the correct alias file location.
684
-
685
- ## 1.0.1 2023-09-14
686
-
687
- - Fixed a bug where `gt submit --stack` did not work from the trunk branch.
688
-
689
- ## 1.0.0 2023-09-13
690
-
691
- **Renaming and configuration**
692
-
693
- - 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.
694
- - The full list of commands is available in `gt --help` or at https://graphite.dev/docs/graphite-cli-v1-command-names.
695
- - Graphite now supports custom aliasing for any command via `~/.config/graphite/aliases` (or `$XDG_CONFIG_HOME/graphite/aliases`).
696
- - A preset to copy into this file to keep the old short command names is found at https://graphite.dev/docs/legacy-alias-preset.
697
-
698
- - All Graphite configuration now lives in the interactive `gt config` command.
699
- - Graphite's user-level configuration files are now XDG Base Directory Specification compliant, or stored in `~/.config/graphite` by default.
700
-
701
- **gt create**
702
-
703
- - `gt create` is the new command to create a Graphite branch (formerly `branch create`)
704
- - `gt create` now supports inferring a branch name from the commit editor, which means it is now possible to run it with no arguments.
705
- - 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.
706
-
707
- **gt modify**
708
-
709
- - `gt modify` is the new command to modify a Graphite branch (formerly `gt commit amend`/`gt commit create`).
710
- - The default behavior is to amend the current commit on the branch, unless the branch has no commits or `--commit` is passed.
711
- - When amending a commit, the editor is not opened by default unless `-e`/`--edit` is passed.
712
- - 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.
713
- - `gt branch edit` has been moved to `gt modify --interactive-rebase`
714
-
715
- **gt sync**
716
-
717
- - `gt sync` is the new command to update your trunk branch, clean up merged branches, and restack most branches in your repo.
718
- - `gt sync` now restacks all branches by default (no longer need `-r`).
719
- - 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.
720
-
721
- **gt submit**
722
-
723
- - `gt submit` is the new command to push branches to GitHub and create stacked PRs for them.
724
- - `gt submit` submits the currently checked out branch and its ancestors (dependent branches) by default.
725
- - `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`
726
- - `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.
727
- - `gt submit` now ensures that your branches are restacked instead of failing when they aren't.
728
-
729
- **Entirely new commands**
730
-
731
- - `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.
732
- - `gt trunk` to navigate directly to your trunk branch.
733
- - `gt parent` to print out the raw parent of the branch (for scripting).
734
- - `gt children` to print out the raw children of the branch, line by line (for scripting).
735
- - `gt revert` (experimental) to create a branch that reverts a commit in your trunk branch.
736
-
737
- **Other changes**
738
-
739
- - Added a new `--stat` flag to `gt info` that prints out a diffstat instead of a full diff. Compatible with either `--diff` or `--patch`.
740
- - `gt create --insert` now asks which siblings should be moved onto the new branch if there are more than one of them.
741
- - Performance improvements.
742
-
743
- **Bug fixes**
744
-
745
- - Fixed a bug where stray output was printed while completing command names.
746
- - Fixed an issue where a single optional PR template was interpreted as required PR template.
747
- - Fixed a bug where branch prefixes could not end with a slash.
748
- - Fixed a bug where `split --hunk` would not work for branches that added new files.
749
- - Fixed a bug where the branches created by `split` were all based on the parent of the split branch instead of being stacked correctly.
750
- - Fixed a bug where the `--patch` flag to `create` and `modify` did not include new files.
751
-
752
- **Notes**
753
-
754
- - 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.
755
- - We are still working on further improvements to `sync` and would love your feedback in this area!
756
- - We'd also love to ehar about how we can make `revert` work best for you!
757
- - 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!
758
-
759
- ## 0.22.16 2023-09-08
760
-
761
- - Added autocomplete support for the renamed commands.
762
-
763
- - Fixed a bug in `get` when the PR does not exist locally.
764
-
765
- ## 0.22.15 2023-09-07
766
-
767
- - 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.
768
- - 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.
769
-
770
- - `checkout` now prompts to `sync` when the branch's PR has been merged.
771
- - `get` no longer fetches branches for merged PRs.
772
-
773
- - Fixed a bug where having the VSCode extension open while restacking could corrupt cached stack data.
774
- - Fixed a bug where restacks would get stuck in a confusing/corrupt state due to concurrent git processes (i.e. VSCode extesnion).
775
- - Fixed a bug where an `git range-diff` failure could block submit.
776
-
777
- ## 0.22.14 2023-09-06
778
-
779
- - Fixed a bug where users with a Yubikey-protected SSH key were unable to `sync`.
780
- - Fixed a bug where an uncaught IPC exception would appear after running a command.
781
-
782
- ## 0.22.9 2023-08-31
783
-
784
- - Fixed a bug where the wrong version could be shown in `gt log`.
785
- - Fixed a bug where `get` didn't work to fetch new branches.
786
- - Cleaned up a suggestion to run `submit --force`
787
-
788
- - Removed the interactive portion at the end of `init` for branch tracking (hint about `track` is still shown).
789
-
790
- - `GT_RENAME` flag now displays the correct command names in suggestions.
791
-
792
- ## 0.22.8 2023-08-31
793
-
794
- - You guessed it -- more performance improvements!
795
-
796
- - `submit` commands now automatically pull in changes from remote and rebase on top of them when your local changes don't conflict with them.
797
- - `downstack get` now shows which version of the PR has been fetched.
798
- - `gt log` now shows the last submitted version of each PR, as well as whether you need to `submit` or `get`.
799
- - `branch checkout` now informs you if you need to `get`.
800
-
801
- - Fixed an issue where `branch checkout --patch` failed with an incorrect error message.
802
- - Fixed an issue where `downstack get` failed with an incorrect error message.
803
- - Fixed some issues with incosistent failures in `get`
804
-
805
- - Added an experimental `.graphite_aliases` file (see below)
806
-
807
- We are currently in the process of renaming all Graphite commands. This version is the first one with the full set of renamed commands implemented. If you'd like to try out this new command surface, you can add "export GT_RENAME=1" to your shell configuration file (e.g. ~/.zshrc) to be warned when you run a renamed command and what the new name is. It may be unstable and is primarily meant for employee testing purposes until further notice. There is no overlap between the old set of commands and the new set. For more information, see https://www.notion.so/withgraphite/Proposal-for-Graphite-CLI-changes-400d068c7c8546fcbc90b5573e6f27e9?pvs=4.
808
-
809
- The cool part is that turning this configuration on allows you to set custom aliases via the `~/.graphite_aliases` file, which we know some of you have been asking us about for quite a while!
810
-
811
- ## 0.22.6 2023-08-25
812
-
813
- - More performance improvements!
814
-
815
- - Fixed an issue where mangled output was displayed in `gt user editor`.
816
- - Fixed an issue where `downstack merge` didn't exit if the PR was already merging/merged.
817
- - Fixed an issue where `downstack get` did not work.
818
-
819
- ## 0.22.4 2023-08-21
820
-
821
- - More performance improvements!
822
-
823
- - Added a clearer warning about Node.js version compatibility for `npm` installs.
824
- - Fixed an issue where `--force` in `submit` was not respected.
825
- - Building on a change from 0.22.1, `downstack get` now automatically pulls in changes from GitHub if the local state of the branch matches a submitted version of the branch's open pull request, **even if rebased**.
826
- - `submit` now prompts for a `downstack get` in cases where there are remote changes that need to be synced.
827
-
828
- ## 0.22.3 2023-08-16
829
-
830
- - Many small performance improvements!
831
-
832
- - Added a `--rerequest-review` flag to `submit` commands that rerequests review from anyone who has reviewed the PR.
833
- - `submit` is now blocked by an ongoing rebase.
834
- - `--quiet` is now respected by underlying `git commit` calls.
835
-
836
- ## 0.22.1 2023-08-10
837
-
838
- - Fixed a bug where "prNumber" was incorrectly displayed in the `gt log` output instead of the actual PR number.
839
-
840
- - `downstack get` now automatically pulls in changes from GitHub if the local state of the branch matches a submitted version of the branch's open pull request.
841
- - `submit` commands now suggest running `downstack get` when the above situation is detected.
842
-
843
- - YubiKey prompting for SSH is now moved behind a config, in order to address some bugs that passing through the YubiKey prompt introduced. If you are using a YubiKey to authenticate with GitHub, you can enable this config with `gt user yubikey --enable`.
844
-
845
- - Added a global `--cwd` flag to run any Graphite command in a directory other than the one it is initiated from.
846
-
847
- ## 0.22.0 2023-08-04
848
-
849
- - Added a new `gt downstack merge` command to merge stacks and PRs directly from the CLI.
850
-
851
- - `submit` commands now display code updates and metadata updates as two different statuses in the list of updates.
852
-
853
- ## 0.21.5 2023-07-27
854
-
855
- - We had a few versions' worth of iterating on internal issues and the new release process from our monorepo, thanks for bearing with us!
856
-
857
- ## 0.21.0 2023-07-21
858
-
859
- - We pushed a few patch versions to npm and brew between 0.20.24 and now, but there were no major changes in any of them, so they are not listed in the changelog.
860
-
861
- - `gt log` now shows the PR's overall status (consistent with Graphite dashboard; takes stacks into account).
862
- - Added a new `-m` flag to `submit` commands that enables "merge when ready" on the Graphite dashboard, merging the PR if it is already ready to be merged.
863
-
864
- - Added a new option `--exclude-templates` to `gt user submit-body` which specifies that the PR template should not be included in the default PR description when `--include-commit-messages` is enabled.
865
-
866
- - Fixed a few long-standing performance issues that affected all commands, most noticeably shorter-running ones.
867
- - Fixed an issue where the Yubikey prompt shown by git commands was not being diplayed.
868
- - Fixed an issue where the `branch track` command was missing.
869
-
870
- ## 0.20.22 2023-06-22
871
-
872
- - Added the request ID to HTTP error message output for better user issue debugging
873
-
874
- ## 0.20.21 2023-06-22
875
-
876
- - No changes, had to bump a new version to get around accidentally pushing v0.20.19 to `npm` as v0.20.20
877
-
878
- ## 0.20.20 2023-06-21
879
-
880
- - `gt dash` commands now use the app URL from the user's profile when passing links to `open`.
881
-
882
- ## 0.20.19 2023-05-11
883
-
884
- - 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.
885
-
886
- ## 0.20.18 2023-4-28
887
-
888
- - Fixed a bug where `gt changelog` was broken for the binary version of the CLI (e.g. installed via `brew`).
889
- - Fixed a bug where `gt branch edit` was accidentally removed from the CLI. Thank you @vampire!
890
- - Added `fish` completion support via `gt fish >> ~/.config/fish/completions/gt.fish`! Thank you @szamanr!
891
-
892
- ## 0.20.17 2023-4-24
893
-
894
- - This should fix the npm install issues!
895
-
896
- ## 0.20.16 2023-4-21
897
-
898
- - Fixed a bug where `repo sync` attempts to delete branches that were never associated with a PR.
899
-
900
- ## 0.20.15 2023-3-22
901
-
902
- - Add setting trunk to remote version if it cannot be fast-forwarded.
903
-
904
- ## 0.20.14 2023-2-10
905
-
906
- - Add `--always` flag to submit to always push updates, even if the branch has not changed.
907
-
908
- ## 0.20.13 2022-1-20
909
-
910
- - Tweaked git passthrough copy to make it clear that a command was run.
911
- - Fixed a bug where `test` commands didn't support multiple separators in a branch name.
912
- - Replaced individual `gt ls-remote` calls on `submit` with a single one, which should speed up submission significantly!
913
- - Fixed a bug where PR data was not being synced in the background.
914
-
915
- ## 0.20.12 2022-11-25
916
-
917
- - `gt stack submit` now prompts for submission info inline after each individual branch, instead of after all branches.
918
- - The `--edit/-e` flag on `submit` commands now allows updating the PR title and body.
919
- - The `--reviewers/-r` flag on `submit` commands can now update existing PRs.
920
- - The `--reviewers/-r` flag on `submit` commands now accepts a string of comma separated reviewers (e.g. `user1, user2`).
921
-
922
- - `gt commit amend` no longer requires staged changes.
923
- - `gt commit amend` no longer allowed on empty branches.
924
- - `gt commit create/amend` no longer allowed during a rebase.
925
-
926
- - Improved suggested messages when encountering errors during a rebase.
927
- - Improved error messaging by showing error code and number when available.
928
- - Improved error reporting when running `test` commands.
929
-
930
- ## 0.20.11 2022-09-26
931
-
932
- - Changed many error messages to be more actionable, and changed some tips to always-visible messages.
933
- - Improved accuracy of checking whether a branch is up to date on `submit`.
934
- - 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,
935
- - 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.
936
- - Fixed a bug preventing creation of a debug context within a large repository.
937
- - Fixed a bug logging output for `gt branch test` on branches with a slash in the name.
938
- - Running git commands no longer opens another terminal on Windows.
939
-
940
- ## 0.20.10 2022-08-02
941
-
942
- - Addressed one remaining gap in pager parity with git: set the environment variables `LESS=FRX` and `LV=-c` if unset.
943
-
944
- ## 0.20.9 2022-08-02
945
-
946
- - Fixed remaining issues with pager by switching from a temp file to a pipe.
947
- - Fixed a bug where `gt log short` wouldn't show the filled-in circle for branches needing a restack.
948
- - Fixed a bug where `gt branch split` untracked children of the branch being split if the last branch in the split kept its name.
949
-
950
- ## 0.20.8 2022-07-29
951
-
952
- - Improved error mesaging around failed pager execution.
953
-
954
- ## 0.20.7 2022-07-29
955
-
956
- - `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'`.
957
-
958
- - 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).
959
- - Fixed a bug where killing the CLI during submit could result in being unable to submit again (due to a temporary filename clash).
960
- - Fixed colors for `gt branch info --patch`.
961
- - Fixed a bug related to buffer size for certain git commands.
962
- - Fixed the error displayed when attempting to install Graphite on old Node.js versions.
963
-
964
- ## 0.20.6 2022-07-25
965
-
966
- - `submit` after an aborted submit now asks the user whether they'd like to use their cached PR body instead of always using it.
967
- - `gt branch split` now tracks untracked branches automatically before splitting.
968
- - `gt branch untrack` now untracks the current branch if no branch name is provided.
969
- - Fixed an issue where `gt branch create` would fail instead of creating a branch with no commit in certain cases.
970
- - Fixed `gt branch edit`.
971
-
972
- ## 0.20.5 2022-07-22
973
-
974
- - Fixed `gt changelog`.
975
- - Fixed `submit`, `downstack edit` for editor commands containing spaces.
976
- - Fixed `git push` errors being swallowed on submit.
977
-
978
- ## 0.20.4 2022-07-21
979
-
980
- - Added `gt changelog` and `gt docs`. You probably want to pipe the changelog to a pager or file :).
981
- - Fixed a bug where a `git rebase --abort` after a restack conflict would result in Graphite being wrong about the current branch.
982
- - Improved `test` command output.
983
- - Internal improvements.
984
-
985
- ## 0.20.3 2022-07-21
986
-
987
- - Minor internal fix.
988
-
989
- ## 0.20.2 2022-07-19
990
-
991
- - Fixed an issue preventing installation.
992
-
993
- ## 0.20.1 2022-07-19
994
-
995
- - Fixed an issue preventing installation.
996
-
997
- ## 0.20.0 2022-07-19
998
-
999
- - 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:
1000
-
1001
- - `--by-commit` mode (aliases `--commit`, `-c`) prompts the user to select the commits within the branch that they'd like to have branches at.
1002
- - `--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.
1003
-
1004
- - Greatly improved `gt log short` readability. Give it a try!
1005
-
1006
- - `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.
1007
-
1008
- - Branch navigation commands now notify the user if the branch being checked out is either
1009
- - behind its parent (needs restacking)
1010
- - upstack of a branch that is behind its parent
1011
- - untracked
1012
- - `gt log` and `gt log short` now show untracked branches when `--show-untracked/-u` is passed in.
1013
- - `gt branch checkout` now includes untracked branches in the selector when `--show-untracked/-u` is passed in.
1014
-
1015
- - Added `-n` as an alias for `--no-edit` for `submit`. Try out `gt ss -np` to quickly publish your changes!
1016
- - Added `--select`/`-s` option for `submit` to select which branches to push.
1017
- - Added `--force`/`-f` option `submit` to do a force-push, i.e. `git push -f`, instead of the default `git push --force-with-lease`.
1018
- - Added a non-blocking note if the user submits a branch that is not restacked on trunk.
1019
- - 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.
1020
- - `submit` now correctly sets the upstream of the pushed branch.
1021
- - 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.
1022
-
1023
- - Added `--force`/`-f` for `gt downstack get` to always overwrite local branches.
1024
- - `gt downstack track` can now take a positional branch name argument (like `gt branch track`).
1025
-
1026
- - 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).
1027
-
1028
- - Interactive prompts autocomplete is now case-insensitive.
1029
- - `gt --help` now includes a link to the CLI documention.
1030
-
1031
- - Improved `gt repo init` copy.
1032
- - Improved error messaging for when an internal `git` command fails.
1033
- - Improved error messaging for when a `submit` command fails due to a GitHub API error.
1034
- - Improved `test` command output.
1035
- - Improved clarity of positional arguments for all commands with them in `--help`
1036
- - Improved performance of internal cache.
1037
- - Improved telemetry.
1038
-
1039
- - Fixed a bug where `test` commands were completely broken.
1040
- - Fixed a bug where `upstack onto` autocomplete did not work if `uso` shortcut was used.
1041
- - Fixed a bug where `--no-interactive` and `--no-edit` were not handled properly for `submit`
1042
- - Fixed a bug where `gt log` would break on the initial commit of a repository.
1043
- - Fixed a bug where trunk would be in the list of branches to track in `gt repo init`
1044
- - Fixed a bug where the error message for old versions of Node.js wouldn't show up.
1045
- - Added cycle detection for parent pointers.
1046
-
1047
- ## 0.19.6 2022-07-07
1048
-
1049
- - Fixed a bug where continue state could be corrupted by running a `gt` command before running `gt continue`.
1050
- - Fixed a bug where `upstack onto` could target untracked branches, resulting in corrupted state.
1051
- - Fixed a bug where renaming a branch to its current name resulted in corrupted state.
1052
- - Added `dstr` as an alias for `downstack track`.
1053
- - Slightly improved rebase conflict printout.
1054
-
1055
- ## 0.19.5 2022-07-06
1056
-
1057
- - 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.
1058
- - 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.
1059
- - 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.
1060
-
1061
- - 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.
1062
- - Fixed a bug where `gt branch track --force` wouldn't always select the nearest ancestor.
1063
- - Fixed a bug where `gt` with no command would throw an uncaught exception instead of displaying the help message.
1064
- - Fixed a bug where cancelling certain interactive prompts would result in undefined behavior.
1065
-
1066
- ## 0.19.4 2022-07-05
1067
-
1068
- - Based on a user survey, we've slightly changed the defaults for PR title and description on `submit` commands.
1069
- - PR Title defaults to the title of the first (or only) commit on the branch.
1070
- - PR Description defaults to a list of commit messages followed by a PR template, if one exists.
1071
- - `branch info` and `log` now show the commit hash of trunk.
1072
- - Added a `repo init --reset` which clears all Graphite metadata.
1073
- - 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`.
1074
- - Added autocompletion for the `branch up` disambiguation prompt.
1075
- - Added `gt dpr` as a shortcut for `gt dash pr`
1076
- - Renamed the `--no-draft` option for `submit` commands to `--publish/-p`. There are three modes of operation for the command:
1077
- - By default, leave existing PRs in the same state and create new PRs in draft mode.
1078
- - When `--draft/-d` is passed, all PRs in the submit scope will be marked as draft.
1079
- - When `--publish/-p` is passed, all PRs in the submit scope will be marked ready for review.
1080
- - Added an interactive prompt for `gt branch rename` when no new name is passed in.
1081
- - Added a `--force/-f` option for `gt branch track` that skips the interactive prompt by picking the nearest tracked ancestor.
1082
-
1083
- - Fixed a bug where `branch submit` and `downstack submit` base validation would fail incorrectly on certain operating systems.
1084
- - Fixed a bug where leftover cached metadata across CLI versions could result in inconsistent state.
1085
-
1086
- ## 0.19.3 2022-06-28
1087
-
1088
- - 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`.
1089
- - Updated the new `log short` view to be more comprehensible (uses diagram symbols from `log`).
1090
-
1091
- - Fixed a bug where `--restack` wouldn't restack all branches as expected if `gt repo sync` was run from trunk.
1092
- - Fixed a bug where `gt ss` would fail if run from trunk.
1093
- - Fixed a bug where `gt downstack get` would fail to get branches that existed locally but were untracked by `gt`.
1094
- - Fixed a bug where after a `git rebase`, Graphite metadata could end up in a broken state.
1095
- - Fixed a bug that prevented `gt feedback --with-debug-context` from working as expected.
1096
- - Fixed a bug where `gt upstack onto` interactive selection could appear wonky.
1097
-
1098
- - Fixed some copy in v0.19 newly added features.
1099
-
1100
- ## 0.19.2 2022-06-15
1101
-
1102
- - Fixed an issue where `downstack get` was completely broken.
1103
- - Replaced the emoji for `Pushing to remote and creating/updating PRs...` step of `submit`
1104
- - Fixed an issue where `gt branch edit` would only work if the branch was not in need of restacking.
1105
- - Added support to rebase local changes on top of remote for `downstack get`
1106
- - Fixed a bug where choosing to cancel `submit` because of an empty branch did not abort correctly.
1107
-
1108
- ## 0.19.1 2022-06-14
1109
-
1110
- - Removed some development tooling as a workaround to unblock Homebrew release. Sorry for the delay!
1111
- - 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.
1112
- - Fixed a bug with Node.js v14 support.
1113
- - Changed the Homebrew Node.js dependency to v16, which is the same as we use for development.
1114
-
1115
- ## 0.19.0 2022-06-13
1116
-
1117
- - 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.
1118
-
1119
- - `gt branch show` is now `gt branch info`. As this command is relatively new, we are not leaving `show` as an alias.
1120
- - `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`
1121
- - `gt downstack sync` is now `gt downstack get`. It was confusing to have two `sync` commands do entirely different things!
1122
- - The old names `gt branch prev` and `gt branch next` for `down` and `up` are now fully deprecated.
1123
-
1124
- - Updated a significant portion of the info and error messages spanning almost every command.
1125
- - Ensured every command has up-to-date and helpful `--help`.
1126
- - Added a number of tips to various commands.
1127
- - Greatly improved autcompletion — now every command has autocomplete for nouns, verbs, flags, and branch names when applicable.
1128
- - `gt branch checkout`, `gt upstack onto`, and `gt branch track` now all have substring autocompletion for interactive branch selection. Enjoy! :D
1129
- - `gt auth` and `gt user` commands can now be run outside of a Git repository.
1130
-
1131
- - Removed the concept of "ignored branches" from `gt repo init`, and the user config.Removed the `gt repo ignored-branches` command.
1132
- - Removed `gt <scope> fix`. `fix` is now an alias for `restack`.
1133
- - Removed `gt <scope> validate`
1134
- - 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.
1135
- - Removed `gt repo fix`.
1136
- - Removed `gt repo trunk`. You can change the trunk branch by running `gt repo init --trunk <trunkName>` .
1137
- - Removed `exec` functionality of `gt downstack edit` — we recommend using `gt stack test` for running a command on each branch in your stack.
1138
-
1139
- - 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.
1140
- - You can also specify a `--parent` in `gt branch track` instead of checking out the desired parent before running the command.
1141
- - If run without a branch to track `gt branch track` suggests branches that have the current branch/specified parent in their history.
1142
- - Added `gt branch untrack` to remove Graphite metadata for a branch.
1143
- - 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.
1144
-
1145
- - 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.
1146
-
1147
- - 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`.
1148
- - Added a `--reverse` option to `gt log` and `gt log short`. Helpful for big stacks!
1149
- - Added `--stack` option for `gt log` and `gt log short`. Only displays the current stack (i.e. what `gt stack submit` would submit).
1150
- - Added `--steps <n>` option for `gt log` and `gt log short`. Implies `--stack` and only shows `n` levels above and below the current branch.
1151
- - Rebase conflict message now shows a `gt log short --steps 3` centered at the branch being resolved.
1152
- - 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!
1153
-
1154
- - `gt dash` can now open the PR page for the current branch or a specified one: `gt dash pr [numberOrBranchName]`
1155
- - `gt branch info` can now show the current PR description with `--description`.
1156
- - Added `upstack` and `downstack` counterparts of `gt branch test`.
1157
-
1158
- - `gt branch delete` now restacks the deleted branch's children onto its parent.
1159
-
1160
- - Removed the `--resubmit` flow from `repo sync` — we may add it back in the future.
1161
- - 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`.
1162
-
1163
- - Fixed a bug where `--draft` and `--no-draft` on `submit` commands would unnecessarily submit unchanged PRs.
1164
- - Fixed bugs related to rebases not being performed properly that often resulted in confusing state and messaging.
1165
-
1166
- - Now fails gracefully if running on an unsupported Node.js version (requires Node.js version 14 or higher)
1167
- - The Graphite CLI experience survey is no longer shown when commands are run in non-interactive mode.
1168
-
1169
- **Note from the maintainers:**
1170
-
1171
- 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.
1172
-
1173
- New documentation for the CLI is coming soon! We love hearing your feedback about what documentation would be helpful — keep it coming!
1174
-
1175
- 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.
1176
-
1177
- ## 0.18.7 2022-05-31
1178
-
1179
- - 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!
1180
- - 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.
1181
- - Added better support for multiple checkouts (i.e. `git worktree`). We consider our support experimental, see the new section of the docs for details.
1182
-
1183
- ## 0.18.6 2022-05-20
1184
-
1185
- - Fixed a bug where running `gt branch rename` on submitted branches would result in `gt` becoming largely unusable.
1186
- - Added a new `--force/-f` option to `gt branch rename` that is required for already-submitted branches.
1187
- - `gt branch rename` now respects character replacement settings.
1188
-
1189
- ## 0.18.5 2022-05-19
1190
-
1191
- - `.` and `/` are no longer replaced in branch names.
1192
- - Fixed a regression where the current branch wouldn't be selected by default in `gt branch checkout` interactive mode.
1193
- - Upgraded `node` and `yarn` dependencies, please let us know if you see any weirdness!
1194
-
1195
- ## 0.18.4 2022-05-16
1196
-
1197
- - `gt downstack sync` no longer requires turning on a configuration option to use (for real this time)
1198
-
1199
- ## 0.18.3 2022-05-13
1200
-
1201
- - Rewrote `gt downstack sync` using a different mechanism for fetching remote stack dependencies.
1202
- - `gt downstack sync` no longer requires turning on a configuration option to use.
1203
- - Fixed an issue in `submit` where in-progress PR title wouldn't be saved if the user cancelled while writing the body.
1204
-
1205
- ## 0.18.2 2022-05-12
1206
-
1207
- - 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.
1208
- - 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.
1209
- - Added `gt branch-prefix --reset` to turn off the user prefix for automatically generated branch names.
1210
- - Cleaned up copy in `submit` commands.
1211
-
1212
- ## 0.18.1 2022-05-10
1213
-
1214
- - `gt repo sync` and `gt repo fix` now prompt to delete closed branches in addition to merged ones.
1215
- - Added more customization for auto-generated branch name prefixes. Check out `gt user branch-date` and `gt user branch-replacement`.
1216
- - Config files are now written with 600 permissions instead of 644.
1217
- - Fixed an issue where `downstack sync` would overwrite the local copy of a branch even if the user chose not to.
1218
- - Fixed an issue where a misconfigured trunk wouldn't be brought to the user's attention.
1219
- - Fixed an issue where Graphite would fail to parse repository owner/name.
1220
- - Removed deprecation warning for `gt stacks` - it's been long enough.
1221
- - Cleaned up interactive mode copy for `submit`.
1222
-
1223
- ## 0.18.0 2022-05-04
1224
-
1225
- **New functionality**
1226
-
1227
- - 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!
1228
- - Added additional functionality to `submit` to support the experimental collaboration features. Gated by default.
1229
- - Added additional functionality to `gt repo sync` to support the experimental collaboration features. Gated by default.
1230
-
1231
- **New commands**
1232
-
1233
- - 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.
1234
- - 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.
1235
-
1236
- **New ways to use existing commands**
1237
-
1238
- - Added an `--insert` option to `gt branch create` which restacks all children of the parent of the new branch onto the new branch itself.
1239
- - Added interactive branch selection for `gt upstack onto` (similar to `gt branch checkout`). No longer requires a positional argument.
1240
-
1241
- - `gt repo sync` now handles `--no-interactive` correctly.
1242
- - `gt commit amend --no-edit` now fails and warns the user when there are no staged changes, just like `gt commmit create`.
1243
- - `--no-edit` is now aliased to `-n` for `gt continue` and `gt commit amend`.
1244
- - `gt continue` now supports `--all/-a` to stage all changes.
1245
- - `submit --no-interactive` no longer un-publishes submitted PRs (unless `--draft` is specified).
1246
- - `gt downstack edit` now supports an `exec/x` option to execute arbitrary shell commands in between branch restacks (based on `git rebase --interactive`).
1247
- - `gt branch delete` now supports deleting the current branch. It checks out the parent (or trunk if Graphite cannot find a parent).
1248
-
1249
- **Fixes**
1250
-
1251
- - Fixed a bug where `submit --no-interactive` could prompt the user for reviewers.
1252
- - 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.
1253
- - Fixed a bug where `submit` would fail for certain classes of branch name.
1254
- - Fixed a bug where comments in the `gt downstack edit` file were not respected.
1255
- - Fixed a bug where `p` as an alias for `pick` in `gt downstack edit` did not work properly.
1256
- - Fixed a bug where `fix` could swallow a rebase exception and leave the repository in a bad state.
1257
- - Fixed a bug where `gt branch checkout` interactive selection would fail if executed from an untracked branch.
1258
- - Fixed a bug where `gt branch delete` could fail to delete the branch but leave it in a corrupt state.
1259
-
1260
- **Improvements**
1261
-
1262
- - Improved the speed of `gt downstack edit` and `gt upstack onto` by being smarter about when a rebase is actually necessary.
1263
- - Improved the speed of stack validation for some commands.
1264
- - Cleaned up output of various commands and added more `--debug` logging.
1265
-
1266
- **Under the hood**
1267
-
1268
- - 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.
1269
- - Added plenty of tests and refactored code core to many commands for stability and future extensibility.
1270
-
1271
- ## 0.17.11 2022-04-23
1272
-
1273
- - 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.
1274
-
1275
- ## 0.17.10 2022-04-22
1276
-
1277
- - `sync` commands no longer allow pushing to branches associated with closed/merged PRs.
1278
- - Rename `gt branch sync` to `gt branch pr-info` as its behavior is not aligned with the other `sync` commands.
1279
- - Fix some output formatting for `sync` and `submit` commands.
1280
- - Fix an issue where pr data could be overwritten on `submit`.
1281
- - Decreased max branch name length slightly to support an upcoming feature.
1282
- - Start tracking SHA of branch parent in metadata, a requirement for some upcoming features.
1283
- - This version includes some initial changes to sync branch metadata with remote, gated by a hidden flag.
1284
-
1285
- ## 0.17.9 2022-04-14
1286
-
1287
- - Flipped `gt log short` view to match other log commands and `up`/`down` naming convention. `↳` → `↱`!
1288
- - Graphite now asks for confirmation if the user tries to submit an empty branch.
1289
- - Graphite now displays an info message when it creates an empty commit on a new branch.
1290
- - The empty commit copy in the commit editor now only appears when Graphite has created an empty commit.
1291
- - Added support for remotes not named `origin` - use the new `gt repo remote` command to set the name of your remote.
1292
- - Added support for branch names up to GitHub's max supported length (256 bytes including `/refs/heads` gives us room for 245 bytes).
1293
- - Allowlisted many git commands for passthrough.
1294
- - Added autocomplete support for `gt branch delete`.
1295
- - Changed force option on `gt branch delete` from `-D` to `-f`.
1296
- - Cleaned up output on `gt branch delete` failure.
1297
- - Fixed an issue where a branch could not be submitted if its name matched a file in the repository.
1298
- - Fixed an issue where `gt repo max-branch-length` wouldn't print the configured value.
1299
- - Added more debug information for the `--debug` option.
1300
-
1301
- ## 0.17.8 2022-04-08
1302
-
1303
- - Happy Friday! This should fix many hangs that users are experiencing.
1304
-
1305
- ## 0.17.7 2022-04-08
1306
-
1307
- - 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).
1308
- - Fix bug where PR info wasn't being synced periodically.
1309
- - Added a new command `upstack fix`, similar to `stack fix` that only runs upstack of the current branch.
1310
- - `commit create` and `commit amend` now internally run an `upstack fix` instead of a `stack fix`.
1311
- - Fix a hang related to `git config diff.external` being set.
1312
- - Fix autocompletions for `gt branch checkout`.
1313
-
1314
- ## 0.17.6 2022-03-29
1315
-
1316
- - Support handling corrupted `.graphite_merge_conflict` files.
1317
-
1318
- ## 0.17.5 2022-03-23
1319
-
1320
- - Add deprecation warnings for `gt branch next` and `gt branch prev` in favor of `gt branch up` and `gt branch down`, respectively.
1321
- - Add `gt bu` and `gt bd` shortcuts for `gt branch up` and `gt branch down`, respectively.
1322
- - Change `gt branch delete` shortcut to `gt bdl`.
1323
- - Support passing through `gt stash` as `git stash`.
1324
- - Fix bug where `fish` users couldn't add backticks to commit message using the `-m` option.
1325
- - Silence retype errors.
1326
- - Minor copy updates.
1327
-
1328
- ## 0.17.4 2022-02-25
1329
-
1330
- - Refactored config loading to reduce race conditions.
1331
- - Add quotes around commit message in ammend command.
1332
- - Minor copy updates.
1333
-
1334
- ## 0.17.3 2022-02-25
1335
-
1336
- - Fix bug regarding repository config file reading from repository subdirs.
1337
-
1338
- ## 0.17.2 2022-02-16
1339
-
1340
- - Support numbers when generating a branch name from a commit message through `gt bc -m <message>`
1341
- - Prompt for a commit message when autogenerating an empty commit when running `branch create` with no staged changes.
1342
-
1343
- ## 0.17.1 2022-02-15
1344
-
1345
- - Support creating new branches with no staged changes, by automatically creating an empty commit.
1346
-
1347
- ## 0.17.0 2022-02-15
1348
-
1349
- - Enable changing existing PRs' draft status using the `--draft` flag on submit.
1350
- - Add a new command, `gt downstack edit` which enables interactive reordering of stack branches.
1351
- - Update implementation of `gt stack submit` to avoid GitHub rate limitted when submitting large stacks.
1352
-
1353
- ## 0.16.8 2022-02-02
1354
-
1355
- - Enable manually setting reviewers on submit with the `-r` flag.
1356
-
1357
- ## 0.16.7 2022-02-01
1358
-
1359
- - Allow Graphite to run when there are untracked files.
1360
-
1361
- ## 0.16.6 2022-01-27
1362
-
1363
- - Fix issue with detecting downstack/upstack branches on submit
1364
-
1365
- ## 0.16.5 2022-01-07
1366
-
1367
- - Fix issue with detecting some PR templates
1368
-
1369
- ## 0.16.4 2021-12-13
1370
-
1371
- - Wildcard matching for ignored branches (`gt repo ignored-branches --set`) now accepts glob-patterns
1372
- - Option to remove a branch from ignored list (`gt repo ignored-branches --unset`)
1373
- - Submit now supports --update-only option which will only update-existing PRs and not create new ones.
1374
- - Bugfix: Submit to honor the --no-verify flag
1375
- - Better logging and documentation to clarify behavior
1376
-
1377
- ## 0.16.3 2021-12-3
1378
-
1379
- - Support up and down aliases for `gt branch` next/prev respectively.
1380
- - Fix issue where `gt tips` could not be disabled.
1381
- - 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.
1382
- - Allow user to change editor preference using `gt user editor`
1383
-
1384
- ## 0.16.2 2021-10-25
1385
-
1386
- - Support for `gt continue` to continue the previous Graphite command when interrupted by a rebase.
1387
-
1388
- ## 0.16.1 2021-10-14
1389
-
1390
- - Fix issue with `gt repo sync` deleting metadata for existing branches.
1391
- - Reduce merge conflicts caused by `gt commit amend`.
1392
-
1393
- ## 0.16.0 2021-10-12
1394
-
1395
- - 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).
1396
- - Added functionality to query users for feedback on the Graphite CLI.
1397
- - 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).
1398
- - Submit also now includes a `--dry-run` flag to show the user what will be submitted in the invocation.
1399
- - 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).
1400
-
1401
- ## 0.15.1 2021-10-4
1402
-
1403
- - Fix `gt commit create -m` multi-word commit messages.
1404
-
1405
- ## 0.15.0 2021-10-4
1406
-
1407
- - Support for `gt stack top` and `gt stack bottom`.
1408
- - Adjusted logic for cleaning metadata in `gt repo sync`.
1409
-
1410
- ## 0.14.4 2021-10-1
1411
-
1412
- - Improve performance of stack logic on repos with a high number of local branches.
1413
- - Allow `gt commit create` to be used without `-m`, launching the system editor.
1414
- - Infer the body of a PR from the commit message body (if it exists).
1415
- - Add `gt repo trunk --set`.
1416
-
1417
- ## 0.14.3 2021-09-30
1418
-
1419
- - 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`).
1420
- - New command `gt repo fix` searches for common problems that cause degraded Graphite performance and suggests common remediations.
1421
-
1422
- ## 0.14.2 2021-09-29
1423
-
1424
- - Tacit support for merge-based workflows; merges no longer cause exponential branching in `gt log` and hang `gt upstack onto`.
1425
- - Fixes to recreation of debug state in `gt feedback debug-context --recreate`.
1426
-
1427
- ## 0.14.1 2021-09-27
1428
-
1429
- - Assorted improvements to the `gt repo sync` merged branch deletion logic and options to fix dangling branches.
1430
- - `gt branch parent --reset` resets Graphite's recorded parent for a branch (to undefined).
1431
- - `gt branch sync --reset` resets Graphite's recorded PR info a branch (to undefined).
1432
-
1433
- ## 0.14.0 2021-09-16
1434
-
1435
- - `gt debug-context` captures debug metadata from your repository and can send that to Screenplay to help troubleshoot issues.
1436
- - `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.
1437
- - Re-enable metadata deletion from `repo sync`.
1438
- - Re-enable pull request base pushing from `repo sync`.
1439
- - `gt branch create -m` now has `-a` flag to include staged changes in the commit.
1440
-
1441
- ## 0.13.1 2021-09-01
1442
-
1443
- - Disable metadata deletion from `repo sync`
1444
- - Disable pull request base pushing from `repo sync`
1445
-
1446
- ## 0.13.0 2021-08-31
1447
-
1448
- - `stack submit` now checks if update is needed for each branch.
1449
- - Support `upstack submit` and `branch submit`
1450
- - Fixed bug which was preventing `upstack` from having the alias `us`
1451
- - Added a command `branch rename` to rename branches and correctly update metadata.
1452
- - Better support cancelling out of prompts.
1453
- - Rename `stack clean` to `repo sync` and update to be able to be run from any branch.
1454
- - Update `repo sync` to delete old branch metadata refs.
1455
- - Update `repo sync` to update PR merge bases if necessary.
1456
- - Support passing through commands to git which aren't supported by Graphite.
1457
- - Add experimental command `stack test`.
1458
- - Fix bug causing branches to show up twice in log commands.
1459
- - Show PR and commit info in `log` command
1460
- - Add tip advising against creating branches without commits.
1461
-
1462
- ## 0.12.3 2021-08-23
1463
-
1464
- - Fix outdated copy reference to gp.
1465
- - Print error stack trace when --debug flag is used.
1466
- - Flag midstack untracked branches in `gt ls` output.
1467
- - Improve submit to correctly support `gt stack submit` and `gt downstack submit`
1468
- - Reduce unnecessary git ref calls to improve performance in large repos.
1469
- - Support graceful handling of sigint.
1470
-
1471
- ## 0.12.2 2021-08-23
1472
-
1473
- - Fix bug in `gt ls` stack traversal.
1474
-
1475
- ## 0.12.1 2021-08-23
1476
-
1477
- - Fix bug resulting in always showing tips for `gt ls`.
1478
-
1479
- ## 0.12.0 2021-08-23
1480
-
1481
- - Disallow branching off an ignored branch.
1482
- - Disallow sibling branches on top of trunk branch.
1483
- - Establish pattern of toggleable CLI tips.
1484
- - Rewrite `gt ls` to improve speed and output formatting.
1485
- - Optimize git ref traversal and memoization.
1486
-
1487
- ## 0.11.0 2021-08-18
1488
-
1489
- - Support PR templates in `stack submit` command.
1490
- - Update `stack submit` to support interactive title and description setting.
1491
- - Update `stack submit` to support creating draft PRs.
1492
- - Allow max branch length to be configured (from the default of 50).
1493
- - Fix a crash in logging that happened in a edge case involving trailing trunk branches.
1494
- - Hide remote branches in `log long` output.
1495
-
1496
- ## 0.10.0 2021-08-17
1497
-
1498
- - Fix case where commands fail if a branch's stack parent had been deleted.
1499
- - Fix copy across CLI to use `gt` rather than the old `gp`.
1500
- - Add more shortcut aliases for commands such as `s` for `submit`
1501
- - Fix copy around `repo-config` to `repo`
1502
- - Add command `branch checkout`
1503
- - Refactor `stacks` command into `log short`
1504
- - Update `log` command to support `log`, `log short` and `log long`
1505
- - Support dropping the space on double-alias shortcuts. Eg `branch next` = `b n` = `bn`, `stack submit` = `ss` etc
1506
- - Throw actionable errors if two branches point at the same commit.
1507
- - Add top level `graphite` alias such that the CLI can be called using both `gt` and `graphite`.
1508
-
1509
- ## 0.9.1 2021-08-15
1510
-
1511
- - Fix `gp` alias deprecation warning for homebrew installations.
1512
-
1513
- ## 0.9.0 2021-08-15
1514
-
1515
- - Rename graphite CLI alias to `gt` from `gp` per feedback.
1516
-
1517
- ## 0.8.2 2021-08-13
1518
-
1519
- - Improved performance of `gp stacks` command, particularly in repositories with a large number of stale branches.
1520
- - 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`).
1521
-
1522
- ## 0.8.1 2021-08-10
1523
-
1524
- - Improved performance of `gp log` command, particularly in repositories with a large number of stale branches.
1525
- - 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`).
1526
- - `gp log` also now has `--on-trunk` and `--behind-trunk` options.
1527
- - Improved CLI documentation and copy.
1528
-
1529
- ## 0.8.0 2021-08-07
1530
-
1531
- - Autogenerated branch name date format change.
1532
- - stack fix command now has `stack f` alias.
1533
- - branch create command now has `branch c` alias.
1534
- - branch create command now has `branch c` alias.
1535
- - `stack regen` is deprecated, and is now a flag for `stack fix --regen`.
1536
- - `stack fix` now shows an interactive prompt by default.
1537
-
1538
- ## 0.7.1 2021-08-06
1539
-
1540
- - Dont zero count months when generating branch names.
1541
- - Improve help text for amend.
1542
- - Improve help auth print out.
1543
-
1544
- ## 0.7.0 2021-08-05
1545
-
1546
- - Refactor `gp log` command, while supporting old behavior with `gp log --commits/-c`
1547
- - Check for updates in orphaned child process, making all commands faster.
1548
- - More helpful validation error messaging.
1549
- - `gp branch next/prev` now support interactive choices and stepping multiple branches.
1550
- - `gp branch create [-m]` now doesn't commit by default. It can also autogenerate branch names from commit messages.
1551
- - Added `gp commit create -m` for creating commits and fixing upstack.
1552
- - Added `gp commit amend -m` for amending commits and fixing upstack.
1553
- - Added `gp user branch-prefix [--set]` reading and setting your branch prefix.
1554
- - Added `gp branch parent [--set]` plumbing command for reading and setting a branch parent.
1555
- - Added `gp branch children` plumbing command for reading the children of a branch.
1556
-
1557
- ## 0.6.3 2021-08-02
1558
-
1559
- - Better telemetry for measuring cli performance.
1560
- - `gp l` alias for log command.
1561
-
1562
- ## 0.6.2 2021-08-02
1563
-
1564
- - `stack fix` now works for a individual stack. (Upstack inclusive for now)
1565
-
1566
- ## 0.6.1 2021-08-02
1567
-
1568
- - Fix homebrew release to not include a dev dependency on `chai`.
1569
-
1570
- ## 0.6.0 2021-08-02
1571
-
1572
- - Support `--no-verify` flag when running `branch create` to skip precommit hooks.
1573
- - Validation passes when a branch points to the same commit as trunk HEAD.
1574
- - Add `repo init` command.
1575
- - Self heal `.graphite_repo_config` file.
1576
- - Always track trunk branch and ignored branches.
1577
- - Update `stack regen` to always set stack foundations to trunk.
1578
- - Update `stack regen` such that, when from from trunk, regenerates all stacks.
1579
- - `branch next/prev` now traverses based on Graphite's stack metadata.
1580
- - Refactor `gp stacks` print output.
1581
-
1582
- ## 0.5.4 2021-07-30
1583
-
1584
- - Update `stack regen` to operate across entire stack rather than just upstack.
1585
- - `stack submit` infers PR title from single-commit branches.
1586
- - Using trunk branch inference, ignore trunk parents such as trailing `prod` branches.
1587
-
1588
- ## 0.5.3 2021-07-29
1589
-
1590
- - Begin infering trunk branch from .git config.
1591
- - Ignore trunk parent branches during validation and other operations.
1592
-
1593
- ## 0.5.2 2021-07-28
1594
-
1595
- - `upstack onto` can now move branches with no parent branches.
1596
- - `validate` now passes cases where branches point to the same commit.
1597
- - `stack fix` now prints better messaging during rebase conflicts.
1598
- - Removed unused args from `stack submit` and `stack fix`.
1599
- - Updated copy
1600
-
1601
- ## 0.5.1 2021-07-28
1602
-
1603
- - Dont automatically create repository config file.
1604
-
1605
- ## 0.5.0 2021-07-27
1606
-
1607
- - Improved `stack submit` command and promoted command out of expermental status.
1608
-
1609
- ## 0.4.3 2021-07-27
1610
-
1611
- - Update all copy to match new termonology from the 4.0.0 refactor.
1612
-
1613
- ## 0.4.2 2021-07-27
1614
-
1615
- - Update `branch create` command to accept optional positional argument for branch name.
1616
-
1617
- ## 0.4.1 2021-07-27
1618
-
1619
- - Fix demo command and downstack string.
1620
-
1621
- ## 0.4.0 2021-07-27
1622
-
1623
- - Refactor all command names into a noun-verb subcommand pattern.
1624
- - Introduce concept of `upstack` and `downstack`.
1625
- - Simplify documentation.
1626
- - Minor bugfixes.
1627
-
1628
- ## 0.3.4 2021-07-25
1629
-
1630
- - Fix bug in checking for uncommitted changes.
1631
-
1632
- ## 0.3.3 2021-07-25
1633
-
1634
- - Self heal if branch metadata parent somehow becomes self.
1635
- - Diff rolls back changes if commit hook fails.
1636
- - Fix bug in metadata stack traversal used by `fix` command.
1637
- - Restack fails fast if there are uncommitted changes.
1638
-
1639
- ## 0.3.2 2021-07-24
1640
-
1641
- - Slim down size of homebrew artifact.
1642
-
1643
- ## 0.3.1 2021-07-24
1644
-
1645
- - Diff now only commits staged changes.
1646
-
1647
- ## 0.3.0 2021-07-24
1648
-
1649
- - Support resolving merge conflicts during a recursive restack.
1650
- - Update `sync` command to be visable in `--help`.
1651
-
1652
- ## 0.2.0 2021-07-22
1653
-
1654
- - Update unlisted `gp sync` command to support trunk argument.
1655
- - Update unlisted `gp sync` command to prompt before deleting branches.