sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

Checkout commit / branch on commit double-click

Open sonatique opened this issue 1 year ago • 0 comments

Problem description

There is currently no action when double-clicking on a commit, I think it would be useful to implement checkout in this case

Preferred solution

I wish double-clicking would checkout current commit in the following way:

  • if there is no branch tip for this commit: offer to checkout this commit in a detached way via a confirmation dialog
  • if there is a single remote branches: create tracking local branch and checkout
  • if there are multiple remote branches (no local branch): dialog for selecting branch, then create tracking branch and checkout
  • if there is a single local branch: checkout
  • if there are multiple local branch: dialog for selecting branch, then checkout
  • if there are a combination of local and remote branches: dialog for selecting branch then create local / checkout as needed

This would complete existing right-click checkout menu with added agility for common use-cases.

Thank you!

sonatique avatar Nov 26 '24 08:11 sonatique