Changeset 782 for git/branches/dmik/t/t7610-mergetool.sh
- Timestamp:
- Jun 23, 2014, 9:45:51 PM (11 years ago)
- Location:
- git/branches/dmik
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
git/branches/dmik ¶
- Property svn:mergeinfo changed
/git/vendor/2.0.0 (added) merged: 777 /git/vendor/current merged: 772,774,776
- Property svn:mergeinfo changed
-
TabularUnified git/branches/dmik/t/t7610-mergetool.sh ¶
r626 r782 55 55 git rm file12 && 56 56 git commit -m "branch1 changes" && 57 58 git checkout -b stash1 master && 59 echo stash1 change file11 >file11 && 60 git add file11 && 61 git commit -m "stash1 changes" && 62 63 git checkout -b stash2 master && 64 echo stash2 change file11 >file11 && 65 git add file11 && 66 git commit -m "stash2 changes" && 57 67 58 68 git checkout master && … … 194 204 ' 195 205 206 test_expect_success 'conflicted stash sets up rerere' ' 207 git config rerere.enabled true && 208 git checkout stash1 && 209 echo "Conflicting stash content" >file11 && 210 git stash && 211 212 git checkout --detach stash2 && 213 test_must_fail git stash apply && 214 215 test -n "$(git ls-files -u)" && 216 conflicts="$(git rerere remaining)" && 217 test "$conflicts" = "file11" && 218 output="$(git mergetool --no-prompt)" && 219 test "$output" != "No files need merging" && 220 221 git commit -am "save the stash resolution" && 222 223 git reset --hard stash2 && 224 test_must_fail git stash apply && 225 226 test -n "$(git ls-files -u)" && 227 conflicts="$(git rerere remaining)" && 228 test -z "$conflicts" && 229 output="$(git mergetool --no-prompt)" && 230 test "$output" = "No files need merging" 231 ' 232 196 233 test_expect_success 'mergetool takes partial path' ' 234 git reset --hard 197 235 git config rerere.enabled false && 198 236 git checkout -b test12 branch1 && … … 200 238 test_must_fail git merge master && 201 239 202 #should nt need these lines240 #should not need these lines 203 241 #( yes "d" | git mergetool file11 >/dev/null 2>&1 ) && 204 242 #( yes "d" | git mergetool file12 >/dev/null 2>&1 ) && … … 216 254 git submodule update -N && 217 255 mv submod submod-movedaside && 218 git rm submod &&256 git rm --cached submod && 219 257 git commit -m "Submodule deleted from branch" && 220 258 git checkout -b test6.a test6 && … … 285 323 git submodule update -N && 286 324 mv submod submod-movedaside && 287 git rm submod &&325 git rm --cached submod && 288 326 echo not a submodule >submod && 289 327 git add submod && … … 416 454 git checkout -b test11 branch1 && 417 455 mv submod submod-movedaside && 418 git rm submod &&456 git rm --cached submod && 419 457 mkdir submod && 420 458 echo not a submodule >submod/file16 && … … 472 510 ' 473 511 512 test_expect_success 'custom commands override built-ins' ' 513 git checkout -b test14 branch1 && 514 git config mergetool.defaults.cmd "cat \"\$REMOTE\" >\"\$MERGED\"" && 515 git config mergetool.defaults.trustExitCode true && 516 test_must_fail git merge master && 517 git mergetool --no-prompt --tool defaults -- both && 518 echo master both added >expected && 519 test_cmp both expected && 520 git config --unset mergetool.defaults.cmd && 521 git config --unset mergetool.defaults.trustExitCode && 522 git reset --hard master >/dev/null 2>&1 523 ' 524 474 525 test_done
Note:
See TracChangeset
for help on using the changeset viewer.