execute git merge $h || {
echo Merge failed 1>&2
bash -i || exit
- log '$' git commit -v -a
- git commit -v -a
+ GIT_EDITOR=: execute git commit -v -a
execute git diff -M --stat --summary 'HEAD^..'
}
new_head=$(git rev-parse HEAD)
contact=$(sed -n "/ $branch /s/ .*$//p" $control)
-sylpheed --compose "mailto:$contact?Cc=linux-next@vger.kernel.org&Subject=linux-next: manual merge of $branch tree&Body=Hi ,%0A\
+sylpheed --compose "mailto:$contact?Cc=linux-next@vger.kernel.org&Subject=linux-next: manual merge of the $branch tree&Body=Hi ,%0A\
%0A\
-Today's linux-next merge of the $branch tree got a conflict in between commit ("") from the tree and commit ("") from the $branch tree."
+Today's linux-next merge of the $branch tree got a conflict in between commit (%22%22) from the tree and commit (%22%22) from the $branch tree."
#!/bin/bash
-cp /dev/null ../quilt-import.log
+#cp /dev/null ../quilt-import.log
log()
{
quilters=$(grep -v '^#' ../real_control | awk -F ' ' '$2=="quilt" { print $3; }')
for name in $quilters; do
+
+ # don't bother importing things that haven't changed
+ change_size=$(cd ../quilt;git diff last_merge.. -- "$name/" | wc -c)
+ [ $change_size -eq 0 ] && {
+ log "Unchanged quilt series $name"
+ continue
+ }
+
sfile="../quilt/$name/series"
base=$(sed -n 's/^[# ]*NEXT_BASE[ ]*\(.*\)[ ]*$/\1/p' "$sfile")
if [ -n "$base" ]; then
mv -f "$sfile.orig" "$sfile"
done
+( cd ../quilt; git update-ref refs/heads/last_merge HEAD )
+
git checkout master
exit 0