GNOME Bugzilla – Bug 710967
Add show operation to the remote command
Last modified: 2013-10-28 13:15:09 UTC
It's useful, for example, to copy the url from one repo to another. I will post a patch.
Created attachment 258236 [details] [review] Add a show operation to the remote command Useful to get the remote url in scripts.
Review of attachment 258236 [details] [review]: It'd be best if we had a generic "config" builtin like git has. But let's not block this patch on that. So this looks OK; but what do you think about calling it show-url? There are potentially other values of interest like the tls-permissive or gpg-verify keys.
Created attachment 258248 [details] [review] additions on top to be squashed What do you think about these fixes on top? * Rename to show-url * Add space between identifier and paren per style * Add a test case
Review of attachment 258248 [details] [review]: Looks good! ::: src/ostree/ot-builtin-remote.c @@ +127,3 @@ g_free (key); } + else if (!strcmp (op, "show-url")) Yeah, I thought we could add the other properties to the output a bit like git is doing in show. Though then you need to parse the output... So I like show-url.