feature: show tooltip of parent commit when hover the parent SHA

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-12 17:59:50 +08:00
parent 1f158eeded
commit 6e4f971733
No known key found for this signature in database
3 changed files with 52 additions and 1 deletions

View file

@ -169,6 +169,11 @@ namespace SourceGit.ViewModels
SearchChangeFilter = string.Empty;
}
public Models.Commit GetParent(string sha)
{
return new Commands.QuerySingleCommit(_repo.FullPath, sha).Result();
}
public List<Models.Object> GetRevisionFilesUnderFolder(string parentFolder)
{
return new Commands.QueryRevisionObjects(_repo.FullPath, _commit.SHA, parentFolder).Result();