summaryrefslogtreecommitdiff
path: root/submodule.h
diff options
context:
space:
mode:
authorShourya Shukla <shouryashukla.oo@gmail.com>2020-08-12 19:44:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-08-12 21:12:58 (GMT)
commit180b154b0900766cf69f79d19432cd04bbcc8a91 (patch)
tree6f239a7375b7d3d7b470de3822a7a789d0d63f49 /submodule.h
parent6414c3d3166152657ea55b7944303a308b0b2d59 (diff)
downloadgit-180b154b0900766cf69f79d19432cd04bbcc8a91.zip
git-180b154b0900766cf69f79d19432cd04bbcc8a91.tar.gz
git-180b154b0900766cf69f79d19432cd04bbcc8a91.tar.bz2
submodule: rename helper functions to avoid ambiguity
The helper functions: show_submodule_summary(), prepare_submodule_summary() and print_submodule_summary() are used by the builtin_diff() function in diff.c to generate a summary of submodules in the context of a diff. Functions with similar names are to be introduced in the upcoming port of submodule's summary subcommand. So, rename the helper functions to '*_diff_submodule_summary()' to avoid ambiguity. Mentored-by: Christian Couder <chriscool@tuxfamily.org> Mentored-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com> Signed-off-by: Shourya Shukla <shouryashukla.oo@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule.h')
-rw-r--r--submodule.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule.h b/submodule.h
index 9ce85c0..4ac6e31 100644
--- a/submodule.h
+++ b/submodule.h
@@ -69,7 +69,7 @@ int parse_submodule_update_strategy(const char *value,
struct submodule_update_strategy *dst);
const char *submodule_strategy_to_string(const struct submodule_update_strategy *s);
void handle_ignore_submodules_arg(struct diff_options *, const char *);
-void show_submodule_summary(struct diff_options *o, const char *path,
+void show_submodule_diff_summary(struct diff_options *o, const char *path,
struct object_id *one, struct object_id *two,
unsigned dirty_submodule);
void show_submodule_inline_diff(struct diff_options *o, const char *path,