aboutsummaryrefslogtreecommitdiffstats
path: root/commands/user_list.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-26 22:25:52 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:52:54 +0100
commitbad05a4f3d24eb092724f667ee33bb1956457dd3 (patch)
treeebffb166f1a9f63d56459b0ffee7c3a09ae1042f /commands/user_list.go
parentc235d89d36500e58e3bcadda94e9cab06023dd55 (diff)
downloadgit-bug-bad05a4f3d24eb092724f667ee33bb1956457dd3.tar.gz
cache: better API to access excerpts
Diffstat (limited to 'commands/user_list.go')
-rw-r--r--commands/user_list.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/commands/user_list.go b/commands/user_list.go
index 19be7628..23ecea73 100644
--- a/commands/user_list.go
+++ b/commands/user_list.go
@@ -17,7 +17,12 @@ func runUserLs(cmd *cobra.Command, args []string) error {
defer backend.Close()
interrupt.RegisterCleaner(backend.Close)
- for _, i := range backend.AllIdentityExcerpt() {
+ for _, id := range backend.AllIdentityIds() {
+ i, err := backend.ResolveIdentityExcerpt(id)
+ if err != nil {
+ return err
+ }
+
fmt.Printf("%s %s\n",
colors.Cyan(i.HumanId()),
i.DisplayName(),