summaryrefslogtreecommitdiff
path: root/git_crecord/chunk_selector.py
diff options
context:
space:
mode:
authorJun Wu <quark@fb.com>2016-11-28 23:38:46 +0000
committerAndrej Shadura <andrew@shadura.me>2018-07-03 21:21:34 +0200
commitc07ebd7fb720e02dfc68473b5d4f19400bf00a0a (patch)
tree286d4a1f0f1eed57cd1f66f9935fd5d6d2c62877 /git_crecord/chunk_selector.py
parente0c49c36d074f2c95027563e30111d59a75497ad (diff)
chunk_selector: change the verb according to the operation
Diffstat (limited to 'git_crecord/chunk_selector.py')
-rw-r--r--git_crecord/chunk_selector.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/git_crecord/chunk_selector.py b/git_crecord/chunk_selector.py
index 9472d31..58febe4 100644
--- a/git_crecord/chunk_selector.py
+++ b/git_crecord/chunk_selector.py
@@ -74,6 +74,10 @@ def chunkselector(opts, headerlist, ui):
# ncurses does not restore signal handler for SIGTSTP
signal.signal(signal.SIGTSTP, f)
+_headermessages = { # {operation: text}
+ 'crecord': _('Select hunks to commit'),
+}
+
class CursesChunkSelector(object):
def __init__(self, headerlist, ui):
# put the headers into a patch object
@@ -524,7 +528,7 @@ class CursesChunkSelector(object):
"""-> [str]. return segments"""
selected = self.currentselecteditem.applied
segments = [
- _('Select hunks to record'),
+ _headermessages[self.opts['operation']],
'-',
_('[x]=selected **=collapsed'),
_('c: confirm'),