mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
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:
parent
b26c8a64ad
commit
276d000bcf
15 changed files with 54 additions and 51 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue