refactor: change Copy File Name to Copy Full Path for selected file or change (#1132)

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-03-28 18:01:15 +08:00
parent b26c8a64ad
commit 276d000bcf
No known key found for this signature in database
15 changed files with 54 additions and 51 deletions

View file

@ -162,6 +162,15 @@ namespace SourceGit.Native
_backend.OpenWithDefaultEditor(file);
}
public static string GetAbsPath(string root, string sub)
{
var fullpath = Path.Combine(root, sub);
if (OperatingSystem.IsWindows())
return fullpath.Replace('/', '\\');
return fullpath;
}
private static void UpdateGitVersion()
{
if (string.IsNullOrEmpty(_gitExecutable) || !File.Exists(_gitExecutable))