mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
19 lines
No EOL
465 B
C#
19 lines
No EOL
465 B
C#
namespace SourceGit.Commands
|
|
{
|
|
public class IsLFSFiltered : Command
|
|
{
|
|
public IsLFSFiltered(string repo, string path)
|
|
{
|
|
WorkingDirectory = repo;
|
|
Context = repo;
|
|
Args = $"check-attr -a -z \"{path}\"";
|
|
RaiseError = false;
|
|
}
|
|
|
|
public bool Result()
|
|
{
|
|
var rs = ReadToEnd();
|
|
return rs.IsSuccess && rs.StdOut.Contains("filter\0lfs");
|
|
}
|
|
}
|
|
} |