예제 #1
0
 public override void OnSelect(List <Commit> commits)
 {
     GitCore.CheckoutCommit(commits[0], (output) =>
     {
         GitEvents.TriggerOnLocalChange();
         AssetDatabase.Refresh(ImportAssetOptions.Default);
     });
 }
예제 #2
0
 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);
         });
     });
 }