Skip to content

Commit fee9bf6

Browse files
committed
app: Add a git cola merge sub-command
Signed-off-by: David Aguilar <davvid@gmail.com>
1 parent 573889f commit fee9bf6

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

cola/app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def parse_args(context):
187187
'dag',
188188
'fetch',
189189
'grep',
190+
'merge',
190191
'pull',
191192
'push',
192193
'remote',
@@ -324,6 +325,10 @@ def main(context):
324325
elif context == 'grep':
325326
from cola.widgets import grep
326327
view = grep.run_grep(parent=None)
328+
elif context == 'merge':
329+
from cola.merge import view
330+
model.update_status()
331+
view = view.MergeView(model, parent=None)
327332
elif context == 'pull':
328333
from cola.widgets import remote
329334
model.update_status()

share/doc/git-cola/git-cola.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ fetch::
4949
grep::
5050
Use `git grep` to search for content.
5151

52+
merge::
53+
Merge branches.
54+
5255
pull::
5356
Fetch and merge remote branches.
5457

share/doc/git-cola/relnotes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Usability, bells and whistles
1818

1919
http://github.com/git-cola/git-cola/issues/140
2020

21+
* A new `git cola merge` sub-command was added for merging branches.
22+
2123
* Less blocking in the main UI
2224

2325
Fixes

0 commit comments

Comments
 (0)