public override void OnSelect(List <Commit> commits) { GitCore.CheckoutCommit(commits[0], (output) => { GitEvents.TriggerOnLocalChange(); AssetDatabase.Refresh(ImportAssetOptions.Default); }); }
public override void OnSelect(List <Commit> commits) { GitCore.CheckoutCommit(commits[0], (output) => { GitGud.RunCommands(new string[] { "clean -f -d", "reset --hard" }, (outputs) => { GitEvents.TriggerOnLocalChange(); AssetDatabase.Refresh(ImportAssetOptions.Default); }); }); }