From 24d6714dd59a5c385c21991caa47e5727de043d0 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 27 Mar 2019 21:44:11 +0100 Subject: cache: properly push/pull identities and bugs --- commands/pull.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'commands') diff --git a/commands/pull.go b/commands/pull.go index d2d75f3f..5df10dca 100644 --- a/commands/pull.go +++ b/commands/pull.go @@ -6,6 +6,7 @@ import ( "github.com/MichaelMure/git-bug/bug" "github.com/MichaelMure/git-bug/cache" + "github.com/MichaelMure/git-bug/entity" "github.com/MichaelMure/git-bug/util/interrupt" "github.com/spf13/cobra" ) @@ -38,13 +39,13 @@ func runPull(cmd *cobra.Command, args []string) error { fmt.Println("Merging data ...") - for merge := range backend.MergeAll(remote) { - if merge.Err != nil { - fmt.Println(merge.Err) + for result := range backend.MergeAll(remote) { + if result.Err != nil { + fmt.Println(result.Err) } - if merge.Status != bug.MergeStatusNothing { - fmt.Printf("%s: %s\n", bug.FormatHumanID(merge.Id), merge) + if result.Status != entity.MergeStatusNothing { + fmt.Printf("%s: %s\n", bug.FormatHumanID(result.Id), result) } } -- cgit