Skip to content

Commit

Permalink
stash: declare ref_stash as an array
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Denton-L authored and gitster committed Feb 11, 2021
1 parent 8c2462d commit 3e885f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/stash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 3e885f0

Please sign in to comment.