History

[tree-diff] See if this works on windows

Sebastian Thiel committed 5 years ago

Commit 95db1de1 parent 619d4f01 file · +9 −1Browse files

Showing the changes to git-diff (1 of 1 file). Show all

Unified · Split

git-diff/tests/fixtures/make_diff_repo.sh+9−1
@@ -4,6 +4,14 @@ set -eu -o pipefail · 3 unmodified lines
4git init -q4git init -q
5git config commit.gpgsign false5git config commit.gpgsign false
6 6
7function path_sep() {
8 case "$OSTYPE" in
9 msys*|cygwin*|win32) echo "\\" ;;
10 *) echo "/" ;;
11 esac
12}
13PATHSEP="$(path_sep)"
14
7git checkout -q -b main15git checkout -q -b main
8 16
9touch f17touch f
@@ -38,7 +46,7 @@ git add f/ · 28 unmodified lines
38git commit -qam 'f/a f/b added'46git commit -qam 'f/a f/b added'
39 47
40rm f/f48rm f/f
41ln -s f/a f/f49ln -s f/a f${PATHSEP}f
42git commit -qam 'f/f mode changed to link'50git commit -qam 'f/f mode changed to link'
43 51
44git mv a b52git mv a b