From 4dba032509bba91c41384b601a74e1f6b72baa68 Mon Sep 17 00:00:00 2001 From: Gertjan Klein Date: Wed, 20 Sep 2023 14:44:46 +0200 Subject: [PATCH] Show log for root of repository This enables seeing changes in other places than 'src' of the repository. --- src/Strix/SCM/Handler/Git.cls | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Strix/SCM/Handler/Git.cls b/src/Strix/SCM/Handler/Git.cls index 2187402..ec7bc04 100644 --- a/src/Strix/SCM/Handler/Git.cls +++ b/src/Strix/SCM/Handler/Git.cls @@ -65,7 +65,9 @@ Method UserAction(Type As %Integer, Name As %String, InternalName As %String, Se ;== Show log If Name = "Source control,ShowLog" { - Set Target = ..GetGUICommand("/command:log /path:"""_Project.GetProjectPath()_"""", .ErrorMsg) + Set Path = ..RepositoryDir + If Path = "" Set Path = Project.GetProjectPath() + Set Target = ..GetGUICommand("/command:log /path:"""_Path_"""", .ErrorMsg) If ErrorMsg '= "" Write ErrorMsg,! Quit $$$OK Set Action = 3 ; Run executable Quit $$$OK