about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/colorschemes/default.py3
-rw-r--r--ranger/gui/context.py2
-rw-r--r--ranger/gui/widgets/statusbar.py4
3 files changed, 7 insertions, 2 deletions
diff --git a/ranger/colorschemes/default.py b/ranger/colorschemes/default.py
index 967fa50c..e5dbf3a6 100644
--- a/ranger/colorschemes/default.py
+++ b/ranger/colorschemes/default.py
@@ -100,6 +100,9 @@ class Default(ColorScheme):
             if context.vcscommit:
                 fg = yellow
                 attr &= ~bold
+            if context.vcsdate:
+                fg = cyan
+                attr &= ~bold
 
 
         if context.text:
diff --git a/ranger/gui/context.py b/ranger/gui/context.py
index 6b341bf1..ac597e5a 100644
--- a/ranger/gui/context.py
+++ b/ranger/gui/context.py
@@ -17,7 +17,7 @@ CONTEXT_KEYS = ['reset', 'error', 'badinfo',
         'title', 'text', 'highlight', 'bars', 'quotes', 'tab', 'loaded',
         'keybuffer',
         'infostring',
-        'vcsfile', 'vcsremote', 'vcsinfo', 'vcscommit',
+        'vcsfile', 'vcsremote', 'vcsinfo', 'vcscommit', 'vcsdate',
         'vcsconflict', 'vcschanged', 'vcsunknown', 'vcsignored',
         'vcsstaged', 'vcssync', 'vcsnone', 'vcsbehind', 'vcsahead', 'vcsdiverged']
 
diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py
index 0fbd0113..fbd53855 100644
--- a/ranger/gui/widgets/statusbar.py
+++ b/ranger/gui/widgets/statusbar.py
@@ -200,7 +200,9 @@ class StatusBar(Widget):
                 left.add(vcsstr.strip(), 'vcsfile', *vcscol)
             if directory.vcs.rootvcs.head:
                 left.add_space()
-                left.add('{0:s}'.format(directory.vcs.rootvcs.head['summary']), 'vcscommit')
+                left.add(str(directory.vcs.rootvcs.head['date']), 'vcsdate')
+                left.add_space()
+                left.add(directory.vcs.rootvcs.head['summary'], 'vcscommit')
 
     def _get_owner(self, target):
         uid = target.stat.st_uid