From: Denton Liu Date: Tue, 9 Feb 2021 07:28:53 +0000 (-0800) Subject: stash: declare ref_stash as an array X-Git-Tag: v2.31.0-rc0~29^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e885f02775dad0d907d447bc3c24fa07870b41f;p=thirdparty%2Fgit.git stash: declare ref_stash as an array Save sizeof(const char *) bytes by declaring ref_stash as an array instead of having a redundant pointer to an array. Signed-off-by: Denton Liu Signed-off-by: Junio C Hamano --- diff --git a/builtin/stash.c b/builtin/stash.c index 9bc85f91cd..6f2b58f6ab 100644 --- a/builtin/stash.c +++ b/builtin/stash.c @@ -87,7 +87,7 @@ static const char * const git_stash_save_usage[] = { NULL }; -static const char *ref_stash = "refs/stash"; +static const char ref_stash[] = "refs/stash"; static struct strbuf stash_index_path = STRBUF_INIT; /*