-
Notifications
You must be signed in to change notification settings - Fork 127
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
Order of git commits often wrong #173
Comments
This is getting more annoying, and a showstopper for serious use of codespeed in a git-based project. Basically, for git, the date has no significance and should not be used. I guess you want an extra column “ordering” for the Revisions object which can be filled with a VCS-dependent value. It may be a date (e.g. seconds since the epoch), or a revision number. For git, as an approximation, it may be the the number of parent commits, if that is easily obtainable for GitHub. |
(I tried to make myself work on this feature, and it might be feasible for the pure “changes”, but the “trends” feature makes this a big more complicated.) |
I understand the problem. I guess the original csv date ordering assumption works well for git as long as you don't do things like rebase. What did you try out so far? Ordering by author date instead of committer date would work in your case, but getting it programmatically is not trivial. |
I didn’t try anything, just stared at the code and considered various options. Author date is also not good. People might use |
People here at ICFP say that using the |
In our instance, I often observe that codepeed gets confused when several revisions with the same commit date (e.g. due to a rebase before pushing a branch) are added. It seems it only takes the date into account when calculating what comes before what, and that obviously fails here.
It may not fit the current code structure well, but it really should order commits based on their parent-child-relationship.
The text was updated successfully, but these errors were encountered: