Follow upstream changes -- rest
[git-darcs-import.git] / tests / issue1139-diff-last.sh
blob3d36e5386db9c0e71b55c6acc2784a76fc9753e8
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 rec -am 'add foo'
12 darcs annotate -p .
14 echo newtext > foo
15 darcs record -am 'modify foo'
17 darcs diff --store --last=1 > out1
18 cat out1
19 grep text out1
20 grep foo out1
22 darcs diff --last=1 > out
23 cat out
24 grep text out
25 grep foo out
27 diff -u out1 out
29 cd ..
31 rm -rf temp-$$