mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
enhance: simpfy the way to lock a worktree
This commit is contained in:
parent
8a8aabede3
commit
fa2c7c0e18
10 changed files with 25 additions and 125 deletions
|
@ -88,12 +88,9 @@ namespace SourceGit.Commands
|
|||
return Exec();
|
||||
}
|
||||
|
||||
public bool Lock(string fullpath, string reason)
|
||||
public bool Lock(string fullpath)
|
||||
{
|
||||
if (string.IsNullOrEmpty(reason))
|
||||
Args = $"worktree lock \"{fullpath}\"";
|
||||
else
|
||||
Args = $"worktree lock --reason \"{reason}\" \"{fullpath}\"";
|
||||
Args = $"worktree lock \"{fullpath}\"";
|
||||
return Exec();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue