summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-02-23 00:12:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-02-23 00:12:42 (GMT)
commitb9554c03a0a8147109608b94feb32837a6e6a145 (patch)
tree403059f744c33c6d096a2031d019738d0dea3e67 /builtin
parent2283e0e9af55689215afa39c03beb2315ce18e83 (diff)
parent3e885f02775dad0d907d447bc3c24fa07870b41f (diff)
downloadgit-b9554c03a0a8147109608b94feb32837a6e6a145.zip
git-b9554c03a0a8147109608b94feb32837a6e6a145.tar.gz
git-b9554c03a0a8147109608b94feb32837a6e6a145.tar.bz2
Merge branch 'dl/stash-cleanup'
Documentation, code and test clean-up around "git stash". * dl/stash-cleanup: stash: declare ref_stash as an array t3905: use test_cmp() to check file contents t3905: replace test -s with test_file_not_empty t3905: remove nested git in command substitution t3905: move all commands into test cases t3905: remove spaces after redirect operators git-stash.txt: be explicit about subcommand options
Diffstat (limited to 'builtin')
-rw-r--r--builtin/stash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/stash.c b/builtin/stash.c
index 9bc85f9..6f2b58f 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;
/*