diff options
author | Yuang Li <yuangli@uk-yuangli-l.dhcp.mathworks.com> | 2022-06-27 14:10:32 +0100 |
---|---|---|
committer | Yuang Li <yuangli@uk-yuangli-l.dhcp.mathworks.com> | 2022-06-27 14:10:32 +0100 |
commit | 89494f6787407269c1eaa868058e30e35145b02f (patch) | |
tree | a1e3f9fffe6f0f8060dbc8c35bbd25549e9b5f35 | |
parent | 7a936258ddc93e012be8182a08f3c3e220bc6cbc (diff) | |
download | libgit2-89494f6787407269c1eaa868058e30e35145b02f.tar.gz |
add shallow.h
-rw-r--r-- | src/libgit2.c | 2 | ||||
-rw-r--r-- | src/shallow.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/libgit2.c b/src/libgit2.c index 4eef2c618..b6d2f0a80 100644 --- a/src/libgit2.c +++ b/src/libgit2.c @@ -391,7 +391,7 @@ int git_libgit2_opts(int key, ...) break; case GIT_OPT_ENABLE_SHALLOW: - git_cache__enabled = (va_arg(ap, int) != 0); + git_shallow__enabled = (va_arg(ap, int) != 0); break; default: diff --git a/src/shallow.h b/src/shallow.h new file mode 100644 index 000000000..6e2bbbb5f --- /dev/null +++ b/src/shallow.h @@ -0,0 +1,3 @@ +#include "common.h" + +extern bool git_shallow__enabled; |