diff options
author | Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com> | 2020-03-10 13:11:24 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-03-10 11:41:40 -0700 |
commit | 49d3c4b481f12c2ec655a71d5a5b9259a398d059 (patch) | |
tree | a678f157d48912fff898af8044b98b9a3f004714 /submodule.h | |
parent | 4530a85b4c34f009b5f190eb2dc8367801de5028 (diff) | |
download | git-49d3c4b481f12c2ec655a71d5a5b9259a398d059.tar.gz |
get_superproject_working_tree(): return strbuf
Together with the previous commits, this commit fully fixes the problem
of using shared buffer for `real_path()` in `get_superproject_working_tree()`.
Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.h')
-rw-r--r-- | submodule.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/submodule.h b/submodule.h index c81ec1a9b6..4dad649f94 100644 --- a/submodule.h +++ b/submodule.h @@ -152,8 +152,8 @@ void absorb_git_dir_into_superproject(const char *path, /* * Return the absolute path of the working tree of the superproject, which this * project is a submodule of. If this repository is not a submodule of - * another repository, return NULL. + * another repository, return 0. */ -const char *get_superproject_working_tree(void); +int get_superproject_working_tree(struct strbuf *buf); #endif |