Follow upstream changes -- rest
[git-darcs-import.git] / tests / issue1139-diff-with-no-args.sh
blobf3d358ef2218f2b33b0c9599be9dedec07461842
1 #!/usr/bin/env bash
2 set -ev
4 rm -rf temp-$$
5 mkdir temp-$$
6 cd temp-$$
7 set -e
8 darcs initialize
9 echo text > foo
10 darcs add foo
11 darcs record -am 'add foo'
12 echo newtext > foo
13 darcs wh
15 darcs diff --store > out1
16 cat out1
17 grep text out1
18 grep foo out1
20 darcs diff > out
21 cat out
22 grep text out
23 grep foo out
25 diff out out1
27 cd ..
29 rm -rf temp-$$