mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-25 14:15:00 +00:00
16 lines
432 B
C#
16 lines
432 B
C#
namespace SourceGit.Commands {
|
|
/// <summary>
|
|
/// 检测目录是否被LFS管理
|
|
/// </summary>
|
|
public class IsLFSFiltered : Command {
|
|
public IsLFSFiltered(string cwd, string path) {
|
|
Cwd = cwd;
|
|
Args = $"check-attr -a -z \"{path}\"";
|
|
}
|
|
|
|
public bool Result() {
|
|
var rs = ReadToEnd();
|
|
return rs.Output.Contains("filter\0lfs");
|
|
}
|
|
}
|
|
}
|