enhance: better LFS file detect method

This commit is contained in:
leo 2024-07-01 13:30:57 +08:00
parent f08acebb5e
commit 0da30b6b89
No known key found for this signature in database
4 changed files with 30 additions and 34 deletions

View file

@ -6,7 +6,15 @@
{
WorkingDirectory = repo;
Context = repo;
Args = $"check-attr -a -z \"{path}\"";
Args = $"check-attr -z filter \"{path}\"";
RaiseError = false;
}
public IsLFSFiltered(string repo, string sha, string path)
{
WorkingDirectory = repo;
Context = repo;
Args = $"check-attr --source {sha} -z filter \"{path}\"";
RaiseError = false;
}