stash: rename test cases to be more descriptive

Rename some test cases' labels to be more descriptive and under 80 characters per line. Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com> Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Paul-Sebastian Ungureanu committed Feb 25, 2019 at 23:16 UTC ab8ad46ec70afbc0468c2c2cff817dc54c66ca79
1 file changed +7 -7
t/t3903-stash.sh
+7 -7
@@ -612,7 +612,7 @@ test_expect_success 'stash show -p - no stashes on stack, stash-like argument' '
612 test_cmp expected actual
613 '
614
615 -test_expect_success 'stash drop - fail early if specified stash is not a stash reference' '
615 +test_expect_success 'drop: fail early if specified stash is not a stash ref' '
616 git stash clear &&
617 test_when_finished "git reset --hard HEAD && git stash clear" &&
618 git reset --hard &&
@@ -626,7 +626,7 @@ test_expect_success 'stash drop - fail early if specified stash is not a stash r
626 git reset --hard HEAD
627 '
628
629 -test_expect_success 'stash pop - fail early if specified stash is not a stash reference' '
629 +test_expect_success 'pop: fail early if specified stash is not a stash ref' '
630 git stash clear &&
631 test_when_finished "git reset --hard HEAD && git stash clear" &&
632 git reset --hard &&
@@ -690,7 +690,7 @@ test_expect_success 'invalid ref of the form "n", n >= N' '
690 git stash drop
691 '
692
693 -test_expect_success 'stash branch should not drop the stash if the branch exists' '
693 +test_expect_success 'branch: do not drop the stash if the branch exists' '
694 git stash clear &&
695 echo foo >file &&
696 git add file &&
@@ -701,7 +701,7 @@ test_expect_success 'stash branch should not drop the stash if the branch exists
701 git rev-parse stash@{0} --
702 '
703
704 -test_expect_success 'stash branch should not drop the stash if the apply fails' '
704 +test_expect_success 'branch: should not drop the stash if the apply fails' '
705 git stash clear &&
706 git reset HEAD~1 --hard &&
707 echo foo >file &&
@@ -715,7 +715,7 @@ test_expect_success 'stash branch should not drop the stash if the apply fails'
715 git rev-parse stash@{0} --
716 '
717
718 -test_expect_success 'stash apply shows status same as git status (relative to current directory)' '
718 +test_expect_success 'apply: show same status as git status (relative to ./)' '
719 git stash clear &&
720 echo 1 >subdir/subfile1 &&
721 echo 2 >subdir/subfile2 &&
@@ -1056,7 +1056,7 @@ test_expect_success 'stash push -p with pathspec shows no changes only once' '
1056 test_i18ncmp expect actual
1057 '
1058
1059 -test_expect_success 'stash push with pathspec shows no changes when there are none' '
1059 +test_expect_success 'push <pathspec>: show no changes when there are none' '
1060 >foo &&
1061 git add foo &&
1062 git commit -m "tmp" &&
@@ -1066,7 +1066,7 @@ test_expect_success 'stash push with pathspec shows no changes when there are no
1066 test_i18ncmp expect actual
1067 '
1068
1069 -test_expect_success 'stash push with pathspec not in the repository errors out' '
1069 +test_expect_success 'push: <pathspec> not in the repository errors out' '
1070 >untracked &&
1071 test_must_fail git stash push untracked &&
1072 test_path_is_file untracked