diff options
author | Jeff King <peff@peff.net> | 2017-03-02 03:23:06 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-02 11:05:04 -0800 |
commit | a356e8e2a724012c8120bfa69133b6118b1565f4 (patch) | |
tree | 7d0941a3f7b3c147a7415fe63f6ced65fc96570b /commit.c | |
parent | interpret_branch_name: allow callers to restrict expansions (diff) | |
download | tgif-a356e8e2a724012c8120bfa69133b6118b1565f4.tar.xz |
t3204: test git-branch @-expansion corner cases
git-branch feeds the branch names from the command line to
strbuf_branchname(), but we do not yet tell that function
which kinds of expansions should be allowed. Let's create a
set of tests that cover both the allowed and disallowed
cases.
That shows off some breakages where we currently create or
delete the wrong ref (and will make sure that we do not
break any cases that _should_ be working when we do add more
restrictions).
Note that we check branch creation and deletion, but do not
bother with renames. Those follow the same code path as
creation.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions