Get a snapshot of the repository's configuration
Convenience function to take a snapshot from the repository's configuration. The contents of this snapshot will not change, even if the underlying config files are modified.
The configuration file must be freed once it's no longer being used by the user.
0, or an error code