-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an "ostree config unset" operation #1743
Conversation
Alternatively we could consider making |
Hmm, but
So I think I prefer your idea of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sane to me! Just a minor note about the tests.
I don't really have time to work on this right now but just interesting to note, |
Currently there's a way to set a key to the empty string but there's no way to unset it completely (remove the key from the group). This might be helpful for instance if you want to temporarily set "core.lock-timeout-secs" to a specific value for the duration of one operation and then return it to the default after that operation completes. This commit implements an "unset" operation for the config command, adds a unit test, and updates the man page.
It seems cleaner to make the GKeyFile a g_autoptr variable and just return rather than using the "goto out;" idiom.
It doesn't make much sense to use SECTIONNAME in some places and GROUPNAME in others when they mean the same thing.
Currently it's not an error to provide too many arguments to an ostree config command. Change it so we print usage information in that case, and update the unit tests.
ab8433c
to
6b417c3
Compare
This is ready for re-review now, and has a new commit to check for too many arguments. Sorry for the delay |
This looks great to me! Will leave it open for a bit to give others time to review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! Gave this a try on my end as well.
⚡ Test exempted: pull fully rebased and already tested. |
It seems cleaner to make the GKeyFile a g_autoptr variable and just return rather than using the "goto out;" idiom. Closes: #1743 Approved by: cgwalters
It doesn't make much sense to use SECTIONNAME in some places and GROUPNAME in others when they mean the same thing. Closes: #1743 Approved by: cgwalters
Currently it's not an error to provide too many arguments to an ostree config command. Change it so we print usage information in that case, and update the unit tests. Closes: #1743 Approved by: cgwalters
No description provided.