diff options
author | Carlos Martín Nieto <carlos@cmartin.tk> | 2011-08-03 22:03:57 +0200 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-08-18 02:34:08 +0200 |
commit | 44daec422950e0227a863021b6bf4fb8554b6c9c (patch) | |
tree | a5d4fd1811200714072b6c63a83df5a5b7a26afd /src/config.h | |
parent | da2902204b12e4ba2ad218590f0826a8b8c1badc (diff) | |
download | libgit2-44daec422950e0227a863021b6bf4fb8554b6c9c.tar.gz |
Bind the configuration and remotes to a repository
Configurations when taken from a repository and remotes should be
identifiable as coming from a particular repository. This allows us to
reduce the amount of variables that the user has to keep track of.
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h index 673887e39..e2f301bf1 100644 --- a/src/config.h +++ b/src/config.h @@ -4,12 +4,14 @@ #include "git2.h" #include "git2/config.h" #include "vector.h" +#include "repository.h" #define GIT_CONFIG_FILENAME ".gitconfig" #define GIT_CONFIG_FILENAME_INREPO "config" struct git_config { git_vector files; + git_repository *repo; }; #endif |