Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t9827-git-p4-change-filetype.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t9827-git-p4-change-filetype.sh` 62 lines ยท 1309 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='git p4 support for file type change' 4 5 . ./lib-git-p4.sh 6 7 test_expect_success 'start p4d' ' 8 start_p4d 9 ' 10 11 test_expect_success 'create files' ' 12 ( 13 cd "$cli" && 14 p4 client -o | sed "/LineEnd/s/:.*/:unix/" | p4 client -i && 15 cat >file1 <<-EOF && 16 text without any funny substitution business 17 EOF 18 cat >file2 <<-EOF && 19 second file whose type will change 20 EOF 21 p4 add file1 file2 && 22 p4 submit -d "add files" 23 ) 24 ' 25 26 test_expect_success SYMLINKS 'change file to symbolic link' ' 27 git p4 clone --dest="$git" //depot@all && 28 test_when_finished cleanup_git && 29 ( 30 cd "$git" && 31 git config git-p4.skipSubmitEdit true && 32 33 rm file2 && 34 ln -s file1 file2 && 35 git add file2 && 36 git commit -m "symlink file1 to file2" && 37 git p4 submit && 38 p4 filelog -m 1 //depot/file2 >filelog && 39 test_grep "(symlink)" filelog 40 ) 41 ' 42 43 test_expect_success SYMLINKS 'change symbolic link to file' ' 44 git p4 clone --dest="$git" //depot@all && 45 test_when_finished cleanup_git && 46 ( 47 cd "$git" && 48 git config git-p4.skipSubmitEdit true && 49 50 rm file2 && 51 cat >file2 <<-EOF && 52 This is another content for the second file. 53 EOF 54 git add file2 && 55 git commit -m "re-write file2" && 56 git p4 submit && 57 p4 filelog -m 1 //depot/file2 >filelog && 58 test_grep "(text)" filelog 59 ) 60 ' 61 62 test_done