private static Color GetHeadColor(IGitRef gitRef) { if (gitRef.IsTag) return AppSettings.TagColor; if (gitRef.IsHead) return AppSettings.BranchColor; if (gitRef.IsRemote) return AppSettings.RemoteBranchColor; return AppSettings.OtherTagColor; }