mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-16 16:05:00 +00:00
14 lines
380 B
C#
14 lines
380 B
C#
namespace SourceGit.Commands
|
|
{
|
|
public class AssumeUnchanged : Command
|
|
{
|
|
public AssumeUnchanged(string repo, string file, bool bAdd)
|
|
{
|
|
var mode = bAdd ? "--assume-unchanged" : "--no-assume-unchanged";
|
|
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
Args = $"update-index {mode} -- \"{file}\"";
|
|
}
|
|
}
|
|
}
|