- 
                Notifications
    
You must be signed in to change notification settings  - Fork 636
 
Open
Description
Tig is currently great at constructing commands with one branch/blob/commit/etc but I do not believe it currently supports constructing commands with two branches/blobs/commits/etc. I'd love to be able to highlight/mark/select branches/blobs/commits/etc for use in a later command for example...
bind refs x select
bind refs X clear-select
If you press x on a branch-A, it will highlight that branch. Then, when you move to branch-B and use the following binding...
bind refs r !git rebase %(selected) %(branch)
It will run the command git rebase branch-A branch-B.
This kind of functionality would be great for constructing git diff commands, squashing a range of commits, selecting a commit to cherry-pick, etc. The example I provided is a simple concept but this functionality could be expanded to support multiple selections as well.
Metadata
Metadata
Assignees
Labels
No labels