summaryrefslogtreecommitdiffstats
path: root/subcmds/stage.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/stage.py')
-rw-r--r--subcmds/stage.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/subcmds/stage.py b/subcmds/stage.py
index aeb49513..4dce5ce5 100644
--- a/subcmds/stage.py
+++ b/subcmds/stage.py
@@ -21,6 +21,7 @@ from color import Coloring
21from command import InteractiveCommand 21from command import InteractiveCommand
22from git_command import GitCommand 22from git_command import GitCommand
23 23
24
24class _ProjectList(Coloring): 25class _ProjectList(Coloring):
25 def __init__(self, gc): 26 def __init__(self, gc):
26 Coloring.__init__(self, gc, 'interactive') 27 Coloring.__init__(self, gc, 'interactive')
@@ -28,6 +29,7 @@ class _ProjectList(Coloring):
28 self.header = self.printer('header', attr='bold') 29 self.header = self.printer('header', attr='bold')
29 self.help = self.printer('help', fg='red', attr='bold') 30 self.help = self.printer('help', fg='red', attr='bold')
30 31
32
31class Stage(InteractiveCommand): 33class Stage(InteractiveCommand):
32 common = True 34 common = True
33 helpSummary = "Stage file(s) for commit" 35 helpSummary = "Stage file(s) for commit"
@@ -105,6 +107,7 @@ The '%prog' command stages files to prepare the next commit.
105 continue 107 continue
106 print('Bye.') 108 print('Bye.')
107 109
110
108def _AddI(project): 111def _AddI(project):
109 p = GitCommand(project, ['add', '--interactive'], bare=False) 112 p = GitCommand(project, ['add', '--interactive'], bare=False)
110 p.Wait() 113 p.Wait()