mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-18 05:17:55 +02:00
8edad826ca
This begins a big refactor of moving more code out of the Gui struct into contexts, controllers, and helpers. We also move some code into structs in the gui package purely for the sake of better encapsulation
15 lines
314 B
Go
15 lines
314 B
Go
package presentation
|
|
|
|
import "github.com/jesseduffield/lazygit/pkg/commands/types/enums"
|
|
|
|
func FormatWorkingTreeState(rebaseMode enums.RebaseMode) string {
|
|
switch rebaseMode {
|
|
case enums.REBASE_MODE_REBASING:
|
|
return "rebasing"
|
|
case enums.REBASE_MODE_MERGING:
|
|
return "merging"
|
|
default:
|
|
return "none"
|
|
}
|
|
}
|