Slackbot
12/27/2023, 2:55 AMTyler Nieman
12/27/2023, 2:56 AMgt split makes me inherently nervous the first time because it's a rather destructive operation that might impact an in-flight PR, so giving the user confidence in their understanding of this feature is very important.Tyler Nieman
12/27/2023, 2:59 AMPranathi Peri
12/27/2023, 3:28 PMDavid Balatero
12/27/2023, 3:37 PMDavid Balatero
12/27/2023, 3:38 PM--help pages
i think the more docs we write for the gt split --help, it all gets dumped into the main list of commands too, so i'm looking into how to get more detailed docs on the actual help page for a command + short-description of a command on the main --help pageDavid Balatero
12/27/2023, 3:40 PMTyler Nieman
12/27/2023, 5:30 PMgt move on the new (bugfix) branch to move it back to trunk.
• I didn't need the bugfix in my original branch; it didn't need to be a dependency to the original branch, it was just an incidental bug that i noticed along the way.
Let me know if you'd like any more details on the situation @David BalateroTyler Nieman
12/27/2023, 5:32 PMDavid Balatero
12/27/2023, 5:32 PMgt --help, jfyiDavid Balatero
12/27/2023, 5:32 PMTyler Nieman
12/27/2023, 5:33 PMDavid Balatero
12/27/2023, 5:33 PMTyler Nieman
12/27/2023, 5:33 PM--helpDavid Balatero
12/27/2023, 5:34 PMDavid Balatero
12/27/2023, 5:34 PMgt splitDavid Balatero
12/27/2023, 5:34 PMgt split is one of those "there's 5 ways to do it" thingsTyler Nieman
12/27/2023, 5:36 PMDavid Balatero
12/27/2023, 5:36 PMgt modify --interactive-rebase
reorder the commits
then do a simple gt split by commitDavid Balatero
12/27/2023, 5:36 PMgit add -p, then gt split by commitDavid Balatero
12/27/2023, 5:36 PMDavid Balatero
12/27/2023, 5:37 PMDavid Balatero
12/27/2023, 5:38 PMTyler Nieman
12/27/2023, 5:40 PMgt split "wizard-y" approach might be interesting — probe for what they're trying to do, help narrow the path.Tyler Nieman
12/27/2023, 5:40 PMgt split
> if you're already on a branch that has a PR and you just wanna split it into multiple branches/PRs, you can do this...
# assuming you have 1 commit in your branch
$ gt split
# otherwise use --by-hunk or --by-commit
# you will now be in an interactive CLI.
# stage all changes that will be in one of your splits.
# after you have marked each change, you write a commit about those staged changes.
# after you have written the commit about that first split, you name the branch that the commit will be in...
# ... you can re-use your existing branch name
# ... *or* you can pick a new name for different changes
# if you re-use the branch name and it already has a PR, the new PR points to that branch - so it's important that you staged the correct files when re-using the name.
Emphasis on these being rough — they're serviceable, but not great.Tyler Nieman
12/27/2023, 5:42 PMgt split?Pranathi Peri
01/22/2024, 4:49 PM