Incorrect date ordering when two commits have the same timestamp

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 1.7.2
    • Component/s: Git
    • None
    • Severity 3 - Minor

      I've got two commits with one being a direct child of the other and no merging involved, but in "Date Order" they're being displayed in the wrong order (and therefore the graph doesn't connect).

      Both commits have exactly the same timestamp in the "Commit Date" header so I think the sort algorithm could do with some improvement to cope with this case.

      My guess is that it works like this at the moment:

      1. Sort by the "Commit Date" header
      2. If that's equal then sort by the "Date" header

      Whereas if it worked like this it'd give the correct result:

      1. Sort by the "Commit Date" header
      2. If that's equal then sort by any direct parent/child relationships
      3. If there are no/missing relationships then sort by the "Date" header

      (The reason for the "Date" headers being the reverse of what you might expect is that I did a rebase to swap the order of the commits)

        1. image-2017-03-16-14-51-54-776.png
          372 kB
          eelkeblok-os
        2. order.png
          46 kB
          Mark Sheppard

            Assignee:
            Unassigned
            Reporter:
            Mark Sheppard
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: