Skip to content

Commit 4ba9a29

Browse files
author
elvis kahoro
committed
Adding some more grapihte workflows
1 parent 1ec5763 commit 4ba9a29

9 files changed

Lines changed: 63 additions & 3 deletions

specs/graphite/gt_branch_checkout.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Graphite - Checkout a branch
33
command: "gt bco {{branch_name}}"
44
tags:
55
- graphite
6-
description: "Often used when wanting to check out a singular branch for collaboration OR personal use."
6+
description: "Switch to or checkout a branch. Similar to `git checkout <branch_name>`"
77
arguments:
88
- name: branch_name
99
description: The name of the branch that you want to checkout
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Graphite - Create a new branch stacked on top of the current branch and commit staged changes
3+
command: "gt branch create"
4+
tags:
5+
- graphite
6+
description: "Alias: `bc`. Create a new branch stacked on top of the current branch and commit staged changes. If no branch name is specified but a commit message is passed, generate a branch name from the commit message."
7+
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
8+
author: graphite
9+
author_url: "https://graphite.dev/"
10+
shells: []
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Graphite - Delete branch
3+
command: "gt branch delete"
4+
tags:
5+
- graphite
6+
description: "Alias: `bdl`. Delete a branch and its corresponding Graphite metadata."
7+
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
8+
author: graphite
9+
author_url: "https://graphite.dev/"
10+
shells: []

specs/graphite/gt_branch_edit.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Graphite - Run an interactive branch rebase
3+
command: "gt branch edit"
4+
tags:
5+
- graphite
6+
description: "Alias: `be`. Run an interactive rebase on the current branch's commits and restack upstack branches."
7+
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
8+
author: graphite
9+
author_url: "https://graphite.dev/"
10+
shells: []

specs/graphite/gt_branch_fold.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Graphite - Fold a branch's changes into its parent
3+
command: "gt branch fold"
4+
tags:
5+
- graphite
6+
description: "Alias: `bf`. Fold a branch's changes into its parent, update dependencies of descendants of the new combined branch, and restack."
7+
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
8+
author: graphite
9+
author_url: "https://graphite.dev/"
10+
shells: []

specs/graphite/gt_branch_list.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Graphite - Log or show the stacked branch tree
33
command: "gt ls"
44
tags:
55
- graphite
6-
description: "This might be glaringly obvious, but any time branches are created/manipulated/changed, we run this command as if it were second nature. Most of our engineers prefer the truncated (ls) log to the full log."
6+
description: "Log all stacks tracked by Graphite, arranged to show dependencies. Similar to showing the commit log."
77
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
88
author: graphite
99
author_url: "https://graphite.dev/"

specs/graphite/gt_branch_new_with_commit_message.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Graphite - Create a branch with an accompanying commit message
33
command: "gt bc -am {{commit_message}}"
44
tags:
55
- graphite
6-
description: "Creating some changes, staging those changes, creating a new branch and committing those changes to the new branch is way too much work. Create your changes and run this single-line command to do all of that in one go. Compare to: `git checkout -b <branch_name> && git add . && git commit -m <commit message>`"
6+
description: "Create a new branch stacked on top of the current branch and commit staged changes. If no branch name is specified but a commit message is passed, generate a branch name from the commit message."
77
arguments:
88
- name: commit_message
99
description: The message to assign to this commit.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Graphite - Rename a branch
3+
command: "gt branch rename"
4+
tags:
5+
- graphite
6+
description: "Alias: `brn`. Rename a branch and update metadata referencing it. Note that this removes any associated GitHub pull request."
7+
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
8+
author: graphite
9+
author_url: "https://graphite.dev/"
10+
shells: []
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Graphite - Restacks the current branch to its parent
3+
command: "gt branch restack"
4+
tags:
5+
- graphite
6+
description: "Alias: `brn`. Ensure the current branch is based on its parent, rebasing if necessary."
7+
source_url: "https://graphite.dev/docs/graphite-cheatsheet"
8+
author: graphite
9+
author_url: "https://graphite.dev/"
10+
shells: []

0 commit comments

Comments
 (0)