Ignore:
Timestamp:
Jun 23, 2014, 9:45:51 PM (11 years ago)
Author:
dmik
Message:

git: Merge version 2.0.0 from vendor to dmik branch.

Location:
git/branches/dmik
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • git/branches/dmik

  • TabularUnified git/branches/dmik/t/t7610-mergetool.sh

    r626 r782  
    5555    git rm file12 &&
    5656    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" &&
    5767
    5868    git checkout master &&
     
    194204'
    195205
     206test_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
    196233test_expect_success 'mergetool takes partial path' '
     234    git reset --hard
    197235    git config rerere.enabled false &&
    198236    git checkout -b test12 branch1 &&
     
    200238    test_must_fail git merge master &&
    201239
    202     #shouldnt need these lines
     240    #should not need these lines
    203241    #( yes "d" | git mergetool file11 >/dev/null 2>&1 ) &&
    204242    #( yes "d" | git mergetool file12 >/dev/null 2>&1 ) &&
     
    216254    git submodule update -N &&
    217255    mv submod submod-movedaside &&
    218     git rm submod &&
     256    git rm --cached submod &&
    219257    git commit -m "Submodule deleted from branch" &&
    220258    git checkout -b test6.a test6 &&
     
    285323    git submodule update -N &&
    286324    mv submod submod-movedaside &&
    287     git rm submod &&
     325    git rm --cached submod &&
    288326    echo not a submodule >submod &&
    289327    git add submod &&
     
    416454    git checkout -b test11 branch1 &&
    417455    mv submod submod-movedaside &&
    418     git rm submod &&
     456    git rm --cached submod &&
    419457    mkdir submod &&
    420458    echo not a submodule >submod/file16 &&
     
    472510'
    473511
     512test_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
    474525test_done
Note: See TracChangeset for help on using the changeset viewer.