diff options
author | Shourya Shukla <shouryashukla.oo@gmail.com> | 2020-08-12 21:44:02 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-08-12 23:12:58 +0200 |
commit | 180b154b0900766cf69f79d19432cd04bbcc8a91 (patch) | |
tree | 6f239a7375b7d3d7b470de3822a7a789d0d63f49 /submodule.h | |
parent | submodule: remove extra line feeds between callback struct and macro (diff) | |
download | git-180b154b0900766cf69f79d19432cd04bbcc8a91.tar.xz git-180b154b0900766cf69f79d19432cd04bbcc8a91.zip |
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.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule.h b/submodule.h index 9ce85c03fe..4ac6e31cf1 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, |