How can I tell magit to use the --first-parent
option?
I only want to see commits onto this branch, none from merged branches.
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this community--first-parent
is included in current versions of Magit, but at a higher level than is shown by default in the transient menus.
Refer to C-hig (transient)Enabling and Disabling Suffixes
for how to control this.
From the Magit Log menu you can either:
C-x l C-x l
to make all those hidden options visible.--first-parent
specifically with C-x l =p
, to include it at your current level.Alternatively, you can customize transient-default-level
.
C-x l
is bound to count-lines-page
. Using C-h k
: "C-x l
runs the command count-lines-page (found in global-map), which is an interactive compiled Lisp function in ‘page.el’."