mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 18:30:34 +08:00
feature: double-clicking tag will try to checkout (detached mode) the revision refered by selected tag (#1661)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -1448,6 +1448,13 @@ namespace SourceGit.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public async Task CheckoutTagAsync(Models.Tag tag)
|
||||
{
|
||||
var c = await new Commands.QuerySingleCommit(_fullpath, tag.SHA).GetResultAsync();
|
||||
if (c != null)
|
||||
_histories?.CheckoutBranchByCommit(c);
|
||||
}
|
||||
|
||||
public async Task CompareBranchWithWorktree(Models.Branch branch)
|
||||
{
|
||||
if (_histories != null)
|
||||
|
||||
Reference in New Issue
Block a user