projects
/
mw
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
commit command shortcut
[mw]
/
src
/
mw
/
clicommands.py
diff --git
a/src/mw/clicommands.py
b/src/mw/clicommands.py
index 3c0b4482989d534af81a2d89c5ffa1f08a4a7441..5eab8bdbea9b982834b1e9b700311e08b0783c10 100644
(file)
--- a/
src/mw/clicommands.py
+++ b/
src/mw/clicommands.py
@@
-148,3
+148,14
@@
class DiffCommand(CommandBase):
print self.metadir.diff_rv_to_working(
mw.api.filename_to_pagename(file[:-5])
),
print self.metadir.diff_rv_to_working(
mw.api.filename_to_pagename(file[:-5])
),
+
+
+class CommitCommand(CommandBase):
+
+ def __init__(self):
+ CommandBase.__init__(self, 'commit', 'commit changes to wiki')
+ self.shortcuts.append('ci')
+
+ def _do_command(self):
+ self._die_if_no_init()
+ self._api_setup()
Benjamin Mako Hill
||
Want to submit a patch?