repo.or.cz
/
alt-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
CheckPush: older integration branches should be subset of newer ones
[alt-git.git]
/
CheckPush
blob
9280aae8e292c7ea8884d1402b24cb7fa0f6af04
1
#!/bin/sh
2
3
for
range
in
$
(
4
prev_branch
=
5
{
6
git for-each-ref
--format
=
'%(refname)'
refs
/
head
s
/
maint-
*
|
7
sed
-e
's|^refs/heads/||'
8
cat
<<-EOF
9
maint
10
master
11
next
12
EOF
13
}
|
14
while
read
branch
15
do
16
if
test -n
"
$prev_branch
"
17
then
18
echo
"
$branch
..
$prev_branch
"
19
fi
20
prev_branch
=
$branch
21
done
22
)
pu..jch
23
do
24
lg
=
$
(
git log
--oneline
"
$range
"
)
25
if
test -n
"
$lg
"
26
then
27
echo
"***
$range
***"
28
echo
"
$lg
"
29
fi
30
done
31
32
git
diff
--stat
next jch