Commit History is displayed in the incorrect order
Reported by Craig | June 26th, 2008 @ 08:13 AM
Once of my co-workers had the incorrect date setup on his linux box. So, his pushes to our git repository how up lower in the commit history because the history is sorted by date/time.
Should the commit history not display by the git tree order and not by the datestamp on the commit?
Comments and changes to this ticket
-
defunkt July 8th, 2008 @ 03:39 PM
- → State changed from new to resolved
The history should be sorted by HEAD => parent => parent, not by date.
Can you show me an example where the commits in the web view do not match the `git log` output? Thanks!
-
defunkt July 8th, 2008 @ 03:39 PM
- → Assigned user changed from to defunkt
-
Craig July 9th, 2008 @ 06:45 AM
Yes I can show you an examply.
I already had attached a screenshot from github showing the commits out of order. Now I've also attached the output from `git log` where you can see the order of commits from the log output does not match what is on GitHub.
GitHub orders them by date instead of commit parents
-
-
Craig July 9th, 2008 @ 12:16 PM
my bad.
Here is the URL to github
https://github.com/wisdm/wisdm/c...
Its a private repos (but I'm sure you have access)
-
defunkt July 9th, 2008 @ 12:17 PM
- → State changed from resolved to open
Thanks for the quick response, we're looking into this today.
-
Scott Chacon July 9th, 2008 @ 12:32 PM
Does it display differently when you run 'git log'? By default git log will display commits in reverse chronological order by commit date, so if you want to fix that, you'll likely have to rebase their commits (so you are the committer and they stay the author). Otherwise, I'm fairly certain that is the correct output. There are flags you can send to git-log to make it walk the commit DAG topologically, but it does not do that by default. (though I've never had commit dates off by that much before). But again, rebasing is likely the easiest option if there are not too many clones around.
-
Craig July 9th, 2008 @ 12:52 PM
It does display differently on GitHub than it does when I run a git log.
git log displays it in the actual order the commits where processed (regardless of system date at time of commit - meaning if follows the parent paths) but github seems to be sorting them via date on the actual commit message??
You can see the difference in the 2 image files I attached. The first is how github shows it and the 2nd is how my git log shows it.
Nothing major that is screwing me up development-wise, I just was a bit baffled at first because it appeared my commits werent being pushed to github properly when in fact they were, they were just a page back in chronological order.
-
Ryan McGeary July 11th, 2008 @ 06:23 PM
I know you guys are on this, but here's another screenshot showing the problem between the github view and git log:
http://skitch.com/rmm5t/xswb/git...
This is from: http://github.com/thoughtbot/sho...
-
Scott Chacon July 13th, 2008 @ 10:49 PM
- → Assigned user changed from defunkt to Scott Chacon
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
