aboutsummaryrefslogtreecommitdiffstats
path: root/commands
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
parentbad05a4f3d24eb092724f667ee33bb1956457dd3 (diff)
downloadgit-bug-f6eb83815983b27524d1f762436f7f4bf9a41e59.tar.gz
commands: "user ls" also show metadata
Diffstat (limited to 'commands')
-rw-r--r--commands/user.go4
-rw-r--r--commands/user_ls.go (renamed from commands/user_list.go)0
2 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
diff --git a/commands/user_list.go b/commands/user_ls.go
index 23ecea73..23ecea73 100644
--- a/commands/user_list.go
+++ b/commands/user_ls.go