repo.or.cz
/
guilt.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
new: Make sure the requested patchname would not create unnecessary problems
[guilt.git]
/
guilt-series
blob
c58ee1c45d94dc40b66a2bc48fdea01c00dea9fc
1
#!/bin/bash
2
#
3
# Copyright (c) Josef "Jeff" Sipek, 2006, 2007
4
#
5
6
USAGE
=
"[-v]"
7
. guilt
8
9
while case
"
$#
"
in
0
)
break
;;
esac
10
do
11
case
"
$1
"
in
12
-v
)
13
verbose
=
t
;;
14
*)
15
usage
;;
16
esac
17
shift
18
done
19
20
if
! [
$verbose
];
then
21
get_series
22
else
23
prefix
=
'+'
24
top
=
$
(
get_top
)
25
26
get_series |
27
while
read
patch
;
do
28
if
[
-z
$top
];
then
29
echo
" "
$patch
30
else
31
if
[
$patch
=
$top
];
then
32
echo
'='
$patch
33
prefix
=
' '
34
else
35
echo
"
$prefix
"
$patch
36
fi
37
fi
38
done
39
fi