repo.or.cz
/
git
/
dscho.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
WIP: hg fast-export
[git/dscho.git]
/
my-prepare-patch.sh
blob
b5654876fda5fcc1952eccf2fbaddb109f83f47e
1
#!/bin/sh
2
3
if
[
-z
"
$1
"
];
then
4
sh
"
$0
"
- >
git.txt
5
exit
$?
6
fi
7
8
if
[
"
$1
"
!=
"-"
];
then
9
sh
"
$0
"
- <
"
$1
"
>
git.txt
10
exit
$?
11
fi
12
13
tmp
=
$
(
mktemp preppatchXXXXXXX
)
14
15
cat
>
$tmp
16
17
cat
<< EOF
18
[PATCH]
19
20
21
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
22
23
---
24
25
EOF
26
27
git apply
--stat
<
$tmp
28
29
echo
30
31
cat
$tmp
32
33
rm
$tmp
34