Additional proposed infix arguments and suffix commands

Kyle Meyer edited this page Jan 6, 2017 · 20 revisions

Sometimes a user suggests that some infix argument or suffix command be added to a popup and the maintainer decides otherwise, usually because he feels that would not serve all users well. In other case he might just want some time to consider the proposal, or would like to delay adding the argument or command, until some preparations are done. But fear not, you can usually just add it yourself.

How that is done is described in the Magit-Popup manual in the node Customizing existing popups.

When a suggestion is rejected, then the user is usually encouraged to add an entry here. These entries serve as examples and you might even discover a suggested binding that you like but didn't think of yourself.


add argument --no-merges

(magit-define-popup-switch 'magit-log-popup
  ?m "Omit merge commits" "--no-merges")

Proposed in

add argument --date-order

  ?s "Always sort by date" "--date-order")

;; (add-to-list 'magit-log-arguments "--date-order")

The commented line would add the flag to the list of default arguments; you can use the switch to turn it off then.

Proposed only here.

add argument --first-parent

  ?1 "First parent" "--first-parent")

Proposed in

add an action to view the wip log

(magit-define-popup-action 'magit-log-popup
  ?w "Wip" 'magit-wip-log-current)

This displays a log of wip saves created with one of the Magit wip modes. Note that none of these modes is currently active by default, you must enable them explicitly in your config.

Proposed in


add argument --date=

(magit-define-popup-option 'magit-commit-popup
  ?D "Override the author date" "--date=" #'read-from-minibuffer)

Proposed in


add command magit-reset

(magit-define-popup-action 'magit-dispatch-popup
  ?x "Reset" 'magit-reset ?!)

Proposed in


add argument --cover-letter

(magit-define-popup-switch 'magit-patch-popup
  ?c "Generate cover letter" "--cover-letter")

Proposed in


add command magit-branch-orphan

(magit-define-popup-action 'magit-branch-popup
  ?o "Checkout new orphan branch" 'magit-branch-orphan)

Proposed in


add argument --follow-tags

(magit-define-popup-switch 'magit-push-popup
  ?t "Follow tags" "--follow-tags")

Proposed in