0
Completed

Standard Window history perspective : add checkout commit

pgoiffon 1 year ago updated 1 year ago 8

In the log window, I use really often the "checkout" contextual option :

Image 731

This is a good way to revert work without loosing it, and check for a previous behavior for example.

Unfortunately this option is not yet present in the standard window when right clicking on a current branch commit. Can it be added here also ?

We are working on a way to check out a commit by creating a (temp) branch. We are not planning to check out a commit without a helper branch because it leads the unexperienced user into a harder to manage state.

Thanks, please keep us posted here about this ongoing work !

About the difficulties you were referring to, can you give some details ? 

On my side when doing so I always checkout readonly and never had a problem, so you made me curious to know more ?

From my point of view, checking out a commit *without* creating a (temporary) branch is an important feature. It is, for example, useful when searching for a specific point in history, e.g. when something has gone wrong (binary search).

+1

Please give Bisect a try. It allows to check out the commit ("Try Commit").

Completed

Implemented for 23.1 preview 1.

Can you detail what was implemented please ?

I didn't find it on the preview page (https://www.syntevo.com/smartgit/preview/)

+2

The preview is not yet public. In the Graph context menu, there will be "Check Out" which is also the default action (i.e. will be invoked on double-click). This will make it easy to create temp branches.

There are some experimental Low-Level Properties for further streamlining (if you are using them, please drop us a note on how they work for you):

standard.checkout.commit.autoCreateTempBranch

standard.checkout.commit.autoDeleteTempBranch