summaryrefslogtreecommitdiff
path: root/builtin/stash.c
diff options
context:
space:
mode:
authorLibravatar Denton Liu <liu.denton@gmail.com>2021-02-08 23:28:53 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-02-11 13:34:58 -0800
commit3e885f02775dad0d907d447bc3c24fa07870b41f (patch)
treeeceacf4287681af7c9b43267374e408be92d1cc4 /builtin/stash.c
parentt3905: use test_cmp() to check file contents (diff)
downloadtgif-3e885f02775dad0d907d447bc3c24fa07870b41f.tar.xz
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 <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/stash.c')
-rw-r--r--builtin/stash.c2
1 files changed, 1 insertions, 1 deletions
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;
/*