Fork me on GitHub
#spacemacs
<
2021-11-12
>
Drew Verlee17:11:48

I run "magit-log:-G" from what i think is helm and i get "helm-M-x-execute-command: Wrong type argument: (or eieio-object class), nil, obj [2 times]" any idea why?

practicalli-john17:11:07

Yes, I get the same thing if I just run SPC SPC magit-log:-G What should this function be doing?

practicalli-john17:11:36

Oh, looking at the code it seems to be a transient switch to search the Git log by changes. Although i am not sure what that means, because isnt everything in the log a change? Is this something just for the magit-status buffer when viewing the log?

practicalli-john17:11:00

Hmm, I get the same error when using SPC SPC magit-log:G in the log view of the magit status buffer too..

Drew Verlee18:11:32

I assumed it should show me the log in graph form. I can get that another way, so not a big deal

practicalli-john18:11:57

Ah, that is the -g option, the -G lets you search through the log

practicalli-john18:11:58

So if you go into magit status buffer, SPC g s and then press l for the log menu, you can type -g as the option to show the graph

👍 1
practicalli-john18:11:13

Then use the b option to show all branches and it will show the log in a buffer with the commit graph

practicalli-john18:11:01

The -g toggle will stay enabled until its toggled off again.

practicalli-john18:11:34

I like the -g -d and -c options for the log, then show the log with b for all branches or a for all references.

practicalli-john18:11:52

The toggles only seem to stay in place if calling the log from the magit-status buffer. If using magit-log from the source code buffer it seems they need to be toggled each time.

practicalli-john18:11:31

Perhaps the https://magit.vc/manual/magit/Transient-Arguments-and-Buffer-Variables.html can be used to set these toggles on outside of magit-status, but I dont fully understand this doc.

Drew Verlee19:11:56

thanks john. that works