diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-28 08:21:53 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-29 18:21:59 +1000 |
commit | ca437a65046d5af0c90c337b125af4538e625502 (patch) | |
tree | ad0d55ed71cd0aa0015f0f1d8f8e4a2190134a45 /pkg/gui/presentation | |
parent | 72a31aed769e5d3d04d067cae4e13d8b9b42218e (diff) |
support submodules
Diffstat (limited to 'pkg/gui/presentation')
-rw-r--r-- | pkg/gui/presentation/files.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/presentation/files.go b/pkg/gui/presentation/files.go index a16abdce6..6493e1024 100644 --- a/pkg/gui/presentation/files.go +++ b/pkg/gui/presentation/files.go @@ -4,6 +4,7 @@ import ( "github.com/fatih/color" "github.com/jesseduffield/lazygit/pkg/commands" "github.com/jesseduffield/lazygit/pkg/theme" + "github.com/jesseduffield/lazygit/pkg/utils" ) func GetFileListDisplayStrings(files []*commands.File, diffName string) [][]string { @@ -53,5 +54,10 @@ func getFileDisplayStrings(f *commands.File, diffed bool) []string { output := firstCharCl.Sprint(firstChar) output += secondCharCl.Sprint(secondChar) output += restColor.Sprintf(" %s", f.Name) + + if f.IsSubmodule { + output += utils.ColoredString(" (submodule)", theme.DefaultTextColor) + } + return []string{output} } |