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
Option to list commits in topological order #1257
Comments
Sounds like a good idea. Would you mind opening a PR to add that or get it started? I'd be happy to help point in the right direction, etc. |
Hi, I was wondering if there was still someone working on this: it doesn't seem too hard to implement. If not, I could work on it, although I'm not the most familiar with open-source and gitlens so I might need some guidance in the right direction. Thanks! ~andy |
@thewindsofwinter 👋 — as far as I know, no one is working on this. So the first question to answer is -- is this a global thing? Like should GitLens have a setting that lets you change to Assuming we are going to have a global setting, here are a couple pointers. To add a new setting you'll need to add it to the Then in Then for each of those functions, plumb through a new parameter to control the new option. And finally, find all the references to those functions (in That should get you going in the right direction. |
@thewindsofwinter I'm not currently working on this. |
@eamodio I think I've done everything that you've specified, however I'm a little confused about some of the stuff on the pull request template, specifically: "My changes include any required corresponding changes to the documentation"... is there any documentation I have to update about this? Also, I linted, and I think nothing's showing up in the problems besides a bunch of unknown settings in VSCode -- does that mean that's good to go? Apologies for all the questions, still learning how this works :D |
…CommitOrdering to set --topo-order flag
…oses gitkraken#1257: option to use commitOrdering - commitOrdering setting will now allow to order the commits by date, author or topo.
…CommitOrdering to set --topo-order flag
…oses gitkraken#1257: option to use commitOrdering - commitOrdering setting will now allow to order the commits by date, author or topo.
Co-authored-by: Shashank-Shastri <shashank.m.shastri@gmail.com> Co-authored-by: Eric Amodio <eamodio@gmail.com>
Co-authored-by: Shashank-Shastri <shashank.m.shastri@gmail.com> Co-authored-by: Eric Amodio <eamodio@gmail.com>
There is now a new Can you please verify this fix in tomorrow's insiders edition? You can install the insiders edition from here. Be sure to disable/uninstall the stable version of GitLens first. |
@eamodio I would be glad to! However, I'm not sure that I've done anything fancy enough in Git really to test this properly: what things should I try to test it well? (I'm thinking of creating a couple branches, making a bunch of basic commits, and merging them a bunch and viewing it in each of the modes?) |
Great, thank you! Yeah, I think something like that should work. See here: https://git-scm.com/docs/git-log#Documentation/git-log.txt---topo-order |
Thank you for implementing this!
To reproduce this in a test repository, maybe: create commits on two branches in alternating fashion, then merge the two branches into the main branch. The commits should appear interleaved in date-based sorting but distinct in topological sorting. I just installed the gitlens insiders edition but couldn't find the setting yet. I guess I am too early and this is not tomorrow's edition yet 😄 |
I just verified: it is there, apologies for the lateness of my reply. The setting looks great and after testing it on a toy repository everything seems to work! Thank you @eamodio :D |
Thank YOU for the contribution and verification! |
Today I did get the update, and was able to see and change the This works perfectly now, thanks! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
It looks like gitlens always sorts the commits list by date, as github does. However to me this is inconvenient when reviewing a PR consisting of multiple commits because different commits in a 'train' of commits are interleaved.
So it would be nice to have a way to change this. This would be the equivalent to
The text was updated successfully, but these errors were encountered: