commit ea6d9f6be5d893cad015b27d61ad22542eeb5d3d from: Stefan Sperling date: Thu Aug 22 20:55:04 2019 UTC add a colon behind object type in got tag -l, for consistency commit - 62870f63a13343aa2c9f3dea24bd565504ca614d commit + ea6d9f6be5d893cad015b27d61ad22542eeb5d3d blob - cc8cb2913d7de3e412451d9f278af20c5f6c68b1 blob + 091fe9123294f540ecb4a1c819466a02c8b3d9fa --- got/got.c +++ got/got.c @@ -3352,16 +3352,16 @@ list_tags(struct got_repository *repo, struct got_work break; switch (got_object_tag_get_object_type(tag)) { case GOT_OBJ_TYPE_BLOB: - printf("%s %s\n", GOT_OBJ_LABEL_BLOB, id_str); + printf("%s: %s\n", GOT_OBJ_LABEL_BLOB, id_str); break; case GOT_OBJ_TYPE_TREE: - printf("%s %s\n", GOT_OBJ_LABEL_TREE, id_str); + printf("%s: %s\n", GOT_OBJ_LABEL_TREE, id_str); break; case GOT_OBJ_TYPE_COMMIT: - printf("%s %s\n", GOT_OBJ_LABEL_COMMIT, id_str); + printf("%s: %s\n", GOT_OBJ_LABEL_COMMIT, id_str); break; case GOT_OBJ_TYPE_TAG: - printf("%s %s\n", GOT_OBJ_LABEL_TAG, id_str); + printf("%s: %s\n", GOT_OBJ_LABEL_TAG, id_str); break; default: break; blob - d76ab174ed2d704f7ea8afe42e9e6b7e6736a52e blob + 6662a98218eebcf905b65f59bd0e7274cd2df8b8 --- regress/cmdline/tag.sh +++ regress/cmdline/tag.sh @@ -145,7 +145,7 @@ function test_tag_list { echo "-----------------------------------------------" \ > $testroot/stdout.expected echo "tag $tag $tag_id" >> $testroot/stdout.expected - echo "commit $commit_id" >> $testroot/stdout.expected + echo "commit: $commit_id" >> $testroot/stdout.expected echo "from: $GOT_AUTHOR" >> $testroot/stdout.expected echo "date: $d1" >> $testroot/stdout.expected echo " " >> $testroot/stdout.expected @@ -154,7 +154,7 @@ function test_tag_list { echo "-----------------------------------------------" \ >> $testroot/stdout.expected echo "tag $tag2 $tag_id2" >> $testroot/stdout.expected - echo "commit $commit_id" >> $testroot/stdout.expected + echo "commit: $commit_id" >> $testroot/stdout.expected echo "from: $GOT_AUTHOR" >> $testroot/stdout.expected echo "date: $d2" >> $testroot/stdout.expected echo " " >> $testroot/stdout.expected