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/bug.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/bug.go')
-rw-r--r-- | bug/bug.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -280,7 +280,7 @@ func (bug *Bug) IsValid() bool { } // The very first Op should be a CreateOp - firstOp := bug.firstOp() + firstOp := bug.FirstOp() if firstOp == nil || firstOp.OpType() != CreateOp { return false } @@ -561,7 +561,7 @@ func formatHumanId(id string) string { // Lookup for the very first operation of the bug. // For a valid Bug, this operation should be a CreateOp -func (bug *Bug) firstOp() Operation { +func (bug *Bug) FirstOp() Operation { for _, pack := range bug.packs { for _, op := range pack.Operations { return op @@ -577,7 +577,7 @@ func (bug *Bug) firstOp() Operation { // Lookup for the very last operation of the bug. // For a valid Bug, should never be nil -func (bug *Bug) lastOp() Operation { +func (bug *Bug) LastOp() Operation { if !bug.staging.IsEmpty() { return bug.staging.Operations[len(bug.staging.Operations)-1] } |