// Copyright (c) 2025 TerraByte Inc. // // This script hooks into Unity's asset pipeline to automatically // trigger a refresh of the Better Git window when assets change. using UnityEditor; namespace Terra.Arbitrator.GUI { public class GitAssetPostprocessor : AssetPostprocessor { private static void OnPostprocessAllAssets(string[] _, string[] __, string[] ___, string[] ____) { var window = EditorWindow.GetWindow(false, null, false); if (window != null) { window.TriggerAutoRefresh(); } } } }