Commit bfa34693 authored by Kyle Meyer's avatar Kyle Meyer

magit-format-patch: document single commit behavior

parent 60899569
......@@ -363,7 +363,11 @@ branch as default."
(defun magit-format-patch (range args)
"Create patches for the commits in RANGE."
"Create patches for the commits in RANGE.
When a single commit is given for RANGE, create a patch for the
changes introduced by that commit (unlike 'git format-patch'
which creates patches for all commits that are reachable from
HEAD but not from the specified commit)."
(list (-if-let (revs (magit-region-values 'commit))
(concat (car (last revs)) "^.." (car revs))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment