diff options
| author | Russell Belfer <rb@github.com> | 2014-05-12 10:04:52 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2014-05-12 10:04:52 -0700 |
| commit | d2c4d1c63d9d5456fcf2cdcd578073d9e7dadc2a (patch) | |
| tree | 70b0341e6e5d4898e8b332b658cc0fb2b29a6271 /include/git2/repository.h | |
| parent | e18d5e52e385c0cc2ad8d9d4fdd545517f170a11 (diff) | |
| parent | ac99d86ba5e2a9d2332b7f82737e1231c621dc43 (diff) | |
| download | libgit2-d2c4d1c63d9d5456fcf2cdcd578073d9e7dadc2a.tar.gz | |
Merge pull request #2188 from libgit2/cmn/config-snapshot
Configuration snapshotting
Diffstat (limited to 'include/git2/repository.h')
| -rw-r--r-- | include/git2/repository.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/git2/repository.h b/include/git2/repository.h index 04df25fd3..0f7119b76 100644 --- a/include/git2/repository.h +++ b/include/git2/repository.h @@ -408,13 +408,25 @@ GIT_EXTERN(int) git_repository_is_bare(git_repository *repo); * The configuration file must be freed once it's no longer * being used by the user. * - * @param out Pointer to store the loaded config file + * @param out Pointer to store the loaded configuration * @param repo A repository object * @return 0, or an error code */ GIT_EXTERN(int) git_repository_config(git_config **out, git_repository *repo); /** + * Get a snapshot of the repository's configuration + * + * Convenience function to take a snapshot from the repository's + * configuration. + * + * @param out Pointer to store the loaded configuration + * @param repo the repository + * @return 0, or an error code + */ +GIT_EXTERN(int) git_repository_config_snapshot(git_config **out, git_repository *repo); + +/** * Get the Object Database for this repository. * * If a custom ODB has not been set, the default |
