-
-
Notifications
You must be signed in to change notification settings - Fork 270
Add flag to include author information in recent commits #653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flag to include author information in recent commits #653
Conversation
4438f7b
to
2667ae0
Compare
3523fad
to
46255b9
Compare
Ok, I'm losing sanity. This Works On My Machine™, but fails in the CI. The recent commits section should have the number of recent commits in it, right? I'm assuming that in between those parentheses should be the number of recent commits as found by Line 206 in 3d63d76
The only reason the "Recent commits" message would have more than 10 is if this line neogit/lua/neogit/lib/git/log.lua Line 268 in 3d63d76
--max-count flag is somehow receiving a different number than config.values.status.recent_commit_count .
I'm not sure how this is happening, but it's driving me up a wall. Any idea @CKolkey @ten3roberts? |
46255b9
to
adb1219
Compare
adb1219
to
1dfb1a3
Compare
What would be REALLY cool is to work towards how magit handles this: (If you don't have emacs installed, I recommend grabbing DOOM emacs to use as a reference.) ^^ Thats the Log Margin popup https://magit.vc/manual/magit/Log-Margin.html
Using "toggle details" can turn on showing the author name: I think it would be super cool to implement this as the config mechanism instead of have it be hard-coded config values. You can use the state module to write/read persistent values. And an easy way to do perfect right-aligned text is with virtual text - thats how I did in the reflog view. It also seems like magit shows the recent commits across all branches, which would be really cool to copy. Then we can show the remote/branch for the commit too.. That doesn't need to be part of this change, just had never noticed that before. |
Hmm. That seems right to me. Whats the actual number being shown in CI? |
CI is getting |
That's neat, I used emacs for a while, but stuck to CLI git. My exposure to Magit is entirely via Neogit. I'll see what it'll take to replicate that. |
Haha, no kidding. My only exposure to emacs is for referencing stuff to implement in Neogit. It should be pretty simple to add the popup. You'll need:
Just copy the pattern used by all the other popups. Otherwise, as you'll see, each action takes the The |
Cool! I guess I'll make this my next goal with Neogit -- nice stuff for the recent commits buffer. This is gonna take a minute... well into the breach I go. |
Closing this in favor of a full fledged popup PR. |
It's a breaking change, but changing the log popup to |
This PR does the following:
status.recent_commits_include_author_info
totrue
See below for how the recent commits look with the author information included:

Closes #652 😌