GNOME Bugzilla – Bug 731984
libostree: Add ostree_repo_remote_add() API, port "ostree remote add"
Last modified: 2014-06-21 19:58:23 UTC
At least one external tool is using the API, and wants to add a remote, but all of the logic right now is in the tool. Move it to the library.
Created attachment 278862 [details] [review] libostree: Add ostree_repo_remote_add() API, port "ostree remote add"
Review of attachment 278862 [details] [review]: Looks good. I meant to do this a while ago. Maybe a bit weird if you can't also remove remotes, but whatever.
Attachment 278862 [details] pushed as 2265ccd - libostree: Add ostree_repo_remote_add() API, port "ostree remote add"
This broke test-archivez: http://build.gnome.org/continuous/buildmaster/builds/2014/06/21/11/integrationtest/work-gnome-continuous-x86_64-runtime/installed-test-results/ostree_test-archivez.test/output.txt
Created attachment 278896 [details] [review] remote: Fix regression in previous commit wrt adding branches branches is always NULL at that point, we want to look at argc.
Created attachment 278897 [details] [review] remote: Minor argument parsing cleanup Only access relevant portion of argv after we've verified argc.
Review of attachment 278897 [details] [review]: OK.
Review of attachment 278896 [details] [review]: You should probably remove the "branches" local as well -- it's unused.
Removed unused variable too, thanks! Attachment 278896 [details] pushed as 1962623 - remote: Fix regression in previous commit wrt adding branches Attachment 278897 [details] pushed as 6eac108 - remote: Minor argument parsing cleanup