fork of go-git with some jj specific features

Merge pull request #727 from krylovsk/bugfix/references-sort-timestamps

references: sort: compare author timestamps when commit timestamps are equal. Fixes #725

authored by Máximo Cuadros and committed by GitHub 345ffd95 03810084

+3 -1
references.go
··· 47 47 } 48 48 49 49 func (s commitSorterer) Less(i, j int) bool { 50 - return s.l[i].Committer.When.Before(s.l[j].Committer.When) 50 + return s.l[i].Committer.When.Before(s.l[j].Committer.When) || 51 + s.l[i].Committer.When.Equal(s.l[j].Committer.When) && 52 + s.l[i].Author.When.Before(s.l[j].Author.When) 51 53 } 52 54 53 55 func (s commitSorterer) Swap(i, j int) {
+13 -1
references_test.go
··· 163 163 "1e14f94bcf82694fdc7e2dcbbfdbbed58db0f4d9", 164 164 "1e3d328a2cabda5d0aaddc5dec65271343e0dc37", 165 165 }}, 166 - 166 + {"https://github.com/spinnaker/spinnaker.git", "f39d86f59a0781f130e8de6b2115329c1fbe9545", "README.adoc", []string{ 167 + "638f61b3331695f46f1a88095e26dea0f09f176b", 168 + "bd42370d3fe8d410e78acb96f81cb3d838ad1c21", 169 + "d6905eab6fec1841c7cf8e4484499f5c8d7d423e", 170 + "c0a70a0f5aa494f0ae01c55ba191f2325556489a", 171 + "811795c8a185e88f5d269195cb68b29c8d0fe170", 172 + "d6e6fe0194447cc280f942d6a2e0521b68ea7796", 173 + "174bdbf9edfb0ca88415dd4a673852d5b22e7036", 174 + "9944d6cf72b8f82d622d85dad7434472bc8f397d", 175 + "e805183c72f0426fb073728c01901c2fd2db1da6", 176 + "8ef83dd443a05e9122681950399edaa58a38d466", 177 + "d73f9cee49a5ad27a42a6e18af7c49a8f28ad8a8", 178 + }}, 167 179 // FAILS 168 180 /* 169 181 // this contains an empty move