commit f3ca72ddd01412bbbba872218e1fdf805b1cf72d from: ale date: Fri Jul 24 08:51:06 2026 UTC test: verificar si got commit funciona tras got add commit - 8128d7171e1abbe938af4d31a39eda58a14b2b02 commit + f3ca72ddd01412bbbba872218e1fdf805b1cf72d blob - /dev/null blob + 0060ca02553179967e05b40e3b8fa9dc871eb526 (mode 644) --- /dev/null +++ src/main/kotlin/dev/nezzontli/gotvcs/log/GotRefType.kt @@ -0,0 +1,17 @@ +package dev.nezzontli.gotvcs.log + +import com.intellij.ui.JBColor +import com.intellij.vcs.log.VcsRefType +import java.awt.Color + +/** got only really has local branches, remote-tracking branches, and tags -- no stashes or other ref kinds. */ +enum class GotRefType(private val branch: Boolean, private val color: Color) : VcsRefType { + LOCAL_BRANCH(true, JBColor(0x59A869, 0x59A869)), + REMOTE_BRANCH(true, JBColor(0x8888C1, 0x8888C1)), + TAG(false, JBColor(0xD6BF55, 0xD6BF55)), + ; + + override fun isBranch(): Boolean = branch + + override fun getBackgroundColor(): Color = color +}