repo.or.cz
/
git-darcs-import.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Follow upstream changes -- rest
[git-darcs-import.git]
/
tests
/
issue1139-diff-last.sh
blob
3d36e5386db9c0e71b55c6acc2784a76fc9753e8
1
#!/usr/bin/env bash
2
set -ev
3
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
.
13
14
echo
newtext
>
foo
15
darcs record
-am
'modify foo'
16
17
darcs
diff
--store --last
=
1
>
out1
18
cat
out1
19
grep
text out1
20
grep
foo out1
21
22
darcs
diff
--last
=
1
>
out
23
cat
out
24
grep
text out
25
grep
foo out
26
27
diff
-u
out1 out
28
29
cd
..
30
31
rm
-rf
temp-$$