Function: log-view-cherry-pick
log-view-cherry-pick is an interactive and byte-compiled function
defined in log-view.el.gz.
Signature
(log-view-cherry-pick DIRECTORY &optional NO-COMMENT)
Documentation
Copy changes from revision at point to current branch.
If there are marked revisions, use those instead of the revision at point.
When called interactively, prompts for the target working tree to which to copy the revision(s); the current working tree is the default choice. When called from Lisp, DIRECTORY is the root of the target working tree.
When copying a single revision, prompts for editing the log message for
the new commit, except with optional argument NO-COMMENT non-nil
(interactively, with a prefix argument).
When copying multiple revisions, never prompts to edit log messages.
Normally a log message for each new commit is generated by the backend, including references to the source commits so that the copy can be traced. With optional argument NO-COMMENT non-nil (interactively, with a prefix argument), use the log messages from the source revisions unmodified.
See also vc-cherry-pick.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/log-view.el.gz
(defun log-view-cherry-pick (directory &optional no-comment)
"Copy changes from revision at point to current branch.
If there are marked revisions, use those instead of the revision at point.
When called interactively, prompts for the target working tree to which
to copy the revision(s); the current working tree is the default choice.
When called from Lisp, DIRECTORY is the root of the target working tree.
When copying a single revision, prompts for editing the log message for
the new commit, except with optional argument NO-COMMENT non-nil
(interactively, with a prefix argument).
When copying multiple revisions, never prompts to edit log messages.
Normally a log message for each new commit is generated by the backend,
including references to the source commits so that the copy can be
traced. With optional argument NO-COMMENT non-nil (interactively, with
a prefix argument), use the log messages from the source revisions
unmodified.
See also `vc-cherry-pick'."
(interactive
(list (vc--prompt-other-working-tree log-view-vc-backend
"Cherry-pick to working tree"
'allow-empty)
current-prefix-arg))
(log-view--pick-or-revert directory no-comment nil nil nil))