Merge remote branch 'refs/remotes/philjackson/squashable-merges'
This commit is contained in:
commit
a421f9f936
2 changed files with 15 additions and 4 deletions
13
magit.el
13
magit.el
|
@ -2148,9 +2148,18 @@ in log buffer."
|
|||
(magit-section-info sec))))
|
||||
|
||||
(defun magit-manual-merge (rev)
|
||||
(interactive (list (magit-read-rev "Manually merge" (magit-guess-branch))))
|
||||
"Merge (without commiting) REV. Given a prefix-arg then the
|
||||
merge will be squashed."
|
||||
(interactive
|
||||
(list (magit-read-rev (concat "Manually merge"
|
||||
(when current-prefix-arg
|
||||
" (squashed)"))
|
||||
(magit-guess-branch))))
|
||||
(if rev
|
||||
(magit-run-git "merge" "--no-ff" "--no-commit"
|
||||
(magit-run-git "merge" "--no-commit"
|
||||
(if current-prefix-arg
|
||||
"--squash"
|
||||
"--no-ff")
|
||||
(magit-rev-to-git rev))))
|
||||
|
||||
(defun magit-automatic-merge (rev)
|
||||
|
|
|
@ -500,9 +500,11 @@ Type @kbd{m} to initiate a manual merge, and type @kbd{M} for a
|
|||
automatic merge.
|
||||
|
||||
A manual merge is useful when carefully merging a new feature that you
|
||||
want to review and test before even committing it. A automatic merge
|
||||
want to review and test before even committing it. An automatic merge
|
||||
is appropriate when you are on a feature branch and want to catch up
|
||||
with the master, say.
|
||||
with the master, say. If you would like to squash the merge (have git
|
||||
avoid creating a merge commit) then use a prefix argument with the
|
||||
command (@kbd{C-U m}).
|
||||
|
||||
After initiating a manual merge, the header of the status buffer will
|
||||
remind you that the next commit will be a merge commit (with more than
|
||||
|
|
Loading…
Add table
Reference in a new issue