aboutsummaryrefslogtreecommitdiffstats
path: root/commands/user.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-02-26 22:27:30 +0100
committerMichael Muré <batolettre@gmail.com>2019-03-01 22:52:54 +0100
commitf6eb83815983b27524d1f762436f7f4bf9a41e59 (patch)
tree5ee20e2590f18dd1236db38c694f457f1601c0f0 /commands/user.go
parentbad05a4f3d24eb092724f667ee33bb1956457dd3 (diff)
downloadgit-bug-f6eb83815983b27524d1f762436f7f4bf9a41e59.tar.gz
commands: "user ls" also show metadata
Diffstat (limited to 'commands/user.go')
-rw-r--r--commands/user.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/user.go b/commands/user.go
index c4208d41..12180321 100644
--- a/commands/user.go
+++ b/commands/user.go
@@ -39,6 +39,10 @@ func runUser(cmd *cobra.Command, args []string) error {
fmt.Printf("Last modification: %s (lamport %d)\n",
id.LastModification().Time().Format("Mon Jan 2 15:04:05 2006 +0200"),
id.LastModificationLamport())
+ fmt.Println("Metadata:")
+ for key, value := range id.ImmutableMetadata() {
+ fmt.Printf(" %s --> %s\n", key, value)
+ }
// fmt.Printf("Protected: %v\n", id.IsProtected())
return nil