diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2019-02-19 01:04:59 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-01 04:57:37 +0200 |
commit | db1ba2a2302e7942981c70f9356c70e21e3f7bc7 (patch) | |
tree | a521815bba57e4e5b349e5d19cde22ddec716fca /merge-recursive.c | |
parent | pack-bitmap: switch hash tables to use struct object_id (diff) | |
download | git-db1ba2a2302e7942981c70f9356c70e21e3f7bc7.tar.xz git-db1ba2a2302e7942981c70f9356c70e21e3f7bc7.zip |
submodule: avoid hard-coded constants
Instead of using hard-coded 40-based constants, express these values in
terms of the_hash_algo and GIT_MAX_HEXSZ.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'merge-recursive.c')
-rw-r--r-- | merge-recursive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/merge-recursive.c b/merge-recursive.c index 6c40c61c47..6126773a7b 100644 --- a/merge-recursive.c +++ b/merge-recursive.c @@ -1122,7 +1122,7 @@ static int find_first_merges(struct repository *repo, struct commit *commit; int contains_another; - char merged_revision[42]; + char merged_revision[GIT_MAX_HEXSZ + 2]; const char *rev_args[] = { "rev-list", "--merges", "--ancestry-path", "--all", merged_revision, NULL }; struct rev_info revs; |