diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-15 22:01:45 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-15 22:01:45 +0200 |
commit | a47409377417538b7be446a6aa33dae8989cfd9a (patch) | |
tree | 88b52134a0e0818aa03661de0ba55adfa9df1709 /bug/sorting.go | |
parent | cf9e83e74dc5f91b0e13fbdb79848925e68809a3 (diff) | |
download | git-bug-a47409377417538b7be446a6aa33dae8989cfd9a.tar.gz |
bug: add "was" on SetTitleOperation to store what the title was
Diffstat (limited to 'bug/sorting.go')
-rw-r--r-- | bug/sorting.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bug/sorting.go b/bug/sorting.go index 360a969d..d1c370d3 100644 --- a/bug/sorting.go +++ b/bug/sorting.go @@ -21,7 +21,7 @@ func (b BugsByCreationTime) Less(i, j int) bool { // by the first sorting using the logical clock. That means that if users // synchronize their bugs regularly, the timestamp will rarely be used, and // should still provide a kinda accurate sorting when needed. - return b[i].firstOp().Time().Before(b[j].firstOp().Time()) + return b[i].FirstOp().Time().Before(b[j].FirstOp().Time()) } func (b BugsByCreationTime) Swap(i, j int) { @@ -49,7 +49,7 @@ func (b BugsByEditTime) Less(i, j int) bool { // by the first sorting using the logical clock. That means that if users // synchronize their bugs regularly, the timestamp will rarely be used, and // should still provide a kinda accurate sorting when needed. - return b[i].lastOp().Time().Before(b[j].lastOp().Time()) + return b[i].LastOp().Time().Before(b[j].LastOp().Time()) } func (b BugsByEditTime) Swap(i, j int) { |