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
44 git init -q
55 git config commit.gpgsign false
66
7+function path_sep() {
8+ case "$OSTYPE" in
9+ msys*|cygwin*|win32) echo "\\" ;;
10+ *) echo "/" ;;
11+ esac
12+}
13+PATHSEP="$(path_sep)"
14+
715 git checkout -q -b main
816
917 touch f
@@ -38,7 +46,7 @@ git add f/ · 28 unmodified lines
3846 git commit -qam 'f/a f/b added'
3947
4048 rm f/f
41−ln -s f/a f/f
49+ln -s f/a f${PATHSEP}f
4250 git commit -qam 'f/f mode changed to link'
4351
4452 git mv a b