Project Location

This commit is contained in:
Enner Pérez 2024-03-20 02:36:10 -05:00
parent 014e37e505
commit a1a14f8858
305 changed files with 9783 additions and 9783 deletions

View file

@ -1,36 +0,0 @@
using System.Threading.Tasks;
namespace SourceGit.ViewModels
{
public class Cleanup : Popup
{
public Cleanup(Repository repo)
{
_repo = repo;
View = new Views.Cleanup() { DataContext = this };
}
public override Task<bool> Sure()
{
_repo.SetWatcherEnabled(false);
ProgressDescription = "Cleanup (GC & prune) ...";
return Task.Run(() =>
{
new Commands.GC(_repo.FullPath, SetProgressDescription).Exec();
var lfs = new Commands.LFS(_repo.FullPath);
if (lfs.IsEnabled())
{
SetProgressDescription("Run LFS prune ...");
lfs.Prune(SetProgressDescription);
}
CallUIThread(() => _repo.SetWatcherEnabled(true));
return true;
});
}
private readonly Repository _repo = null;
}
}