2023-10-08 18:09:29 +02:00
|
|
|
package presentation
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/i18n"
|
|
|
|
)
|
|
|
|
|
2023-10-18 09:44:34 +02:00
|
|
|
func ItemOperationToString(itemOperation types.ItemOperation, tr *i18n.TranslationSet) string {
|
2023-10-08 18:09:29 +02:00
|
|
|
switch itemOperation {
|
|
|
|
case types.ItemOperationNone:
|
|
|
|
return ""
|
|
|
|
case types.ItemOperationPushing:
|
|
|
|
return tr.PushingStatus
|
|
|
|
case types.ItemOperationPulling:
|
|
|
|
return tr.PullingStatus
|
|
|
|
case types.ItemOperationFastForwarding:
|
|
|
|
return tr.FastForwarding
|
|
|
|
case types.ItemOperationDeleting:
|
|
|
|
return tr.DeletingStatus
|
|
|
|
}
|
|
|
|
|
|
|
|
return ""
|
|
|
|
}
|