test_cmp expect file
'
+test_expect_success 'apply with custom conflict labels' '
+ git reset --hard initial &&
+ test_commit label-base conflict-file base-content &&
+ echo stashed >conflict-file &&
+ git stash push -m "stashed" &&
+ test_commit label-upstream conflict-file upstream-content &&
+ test_must_fail git -c merge.conflictStyle=diff3 stash apply --label-ours=UP --label-theirs=STASH &&
+ test_grep "^<<<<<<< UP" conflict-file &&
+ test_grep "^||||||| Stash base" conflict-file &&
+ test_grep "^>>>>>>> STASH" conflict-file
+'
+
+test_expect_success 'apply with empty conflict labels' '
+ git reset --hard initial &&
+ test_commit empty-label-base conflict-file base-content &&
+ echo stashed >conflict-file &&
+ git stash push -m "stashed" &&
+ test_commit empty-label-upstream conflict-file upstream-content &&
+ test_must_fail git stash apply --label-ours= --label-theirs= &&
+ test_grep "^<<<<<<<$" conflict-file &&
+ test_grep "^>>>>>>>$" conflict-file
+'
+
+ test_expect_success 'stash show --include-untracked includes untracked files' '
+ git reset --hard &&
+
+ echo tracked >tracked &&
+ git add tracked &&
+ git commit -m "base" &&
+
+ echo change >>tracked &&
+ echo untracked >untracked &&
+
+ git stash push --include-untracked &&
+ test_path_is_missing untracked &&
+
+ git stash show --include-untracked >actual &&
+ test_grep "untracked" actual
+ '
+
test_done