Skip to content

Commit 719c1cd

Browse files
authored
Add gt ss and gt undo commands (#180)
Both are common graphite commands. Descriptions adapted from [https://graphite.dev/docs/command-reference](https://graphite.dev/docs/cheatsheet) Adding `gt ss` is very useful since previously this would autocorrect to `gt squash`: ![image.png](https://app.graphite.dev/user-attachments/assets/f6f18b40-af08-4eef-94c6-f1bfb8164e63.png) Note that `gt ss` is a default alias which can be overriden, but only by assigning something else to the `ss` alias, in which case we would still want to stop this from auto-correcting.
1 parent 06bac89 commit 719c1cd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

command-signatures/json/gt.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,20 @@
586586
"args": { "name": "steps", "default": "1" }
587587
}
588588
]
589+
},
590+
{
591+
"name": "ss",
592+
"description": "Default alias for 'submit --stack', submit your changes across all PRs on a stack"
593+
},
594+
{
595+
"name": "undo",
596+
"description": "Undo the most recent Graphite mutations",
597+
"options": [
598+
{
599+
"name": ["--force", "-f"],
600+
"description": "Do not prompt for confirmation; undo the most recent command immediately"
601+
}
602+
]
589603
}
590604
],
591605
"options": [

0 commit comments

Comments
 (0)