-
-
Notifications
You must be signed in to change notification settings - Fork 262
/
baseline.sh
executable file
·41 lines (30 loc) · 857 Bytes
/
baseline.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
set -eu -o pipefail
driver=${1:?First argument is the driver program supporting both process mode and clean/smudge}
function repo_assertions() {
echo '* filter=arrow' > .gitattributes
git add . && git commit -m c1
echo hi > file
git add file && git commit -m c2
rm file
git checkout file
}
(
git init no-process && cd no-process
git config filter.arrow.clean "$driver clean %f"
git config filter.arrow.smudge "$driver smudge %f"
git config filter.arrow.required true
repo_assertions
)
(
git init process && cd process
git config filter.arrow.process "$driver process"
git config filter.arrow.required true
repo_assertions
)
(
git init process-no-delay && cd process-no-delay
git config filter.arrow.process "$driver process disallow-delay"
git config filter.arrow.required true
repo_assertions
)