spacemacs

Drew Verlee 2021-11-12T17:31:48.049100Z

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-johnny 2021-11-12T17:43:07.049300Z

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

practicalli-johnny 2021-11-12T17:44:36.049500Z

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-johnny 2021-11-12T17:49:00.049700Z

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

Drew Verlee 2021-11-12T18:02:32.049900Z

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

practicalli-johnny 2021-11-12T18:02:57.050100Z

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

practicalli-johnny 2021-11-12T18:03:58.050300Z

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-johnny 2021-11-12T18:13:13.050500Z

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

practicalli-johnny 2021-11-12T18:14:01.050700Z

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

practicalli-johnny 2021-11-12T18:18:34.050900Z

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-johnny 2021-11-12T18:19:52.051100Z

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-johnny 2021-11-12T18:24:31.051300Z

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 Verlee 2021-11-14T19:07:56.051800Z

thanks john. that works