Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-1887

Incorrect date ordering when two commits have the same timestamp

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 1.7.2
    • 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. order.png
          order.png
          46 kB
        2. image-2017-03-16-14-51-54-776.png
          372 kB

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

                Created:
                Updated: