Skip to content

Commit

Permalink
patchbomb: Git parses the patch mboxes and extracts Cc lines automati…
Browse files Browse the repository at this point in the history
…cally

Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
  • Loading branch information
jeffpc committed Jan 19, 2008
1 parent 95aec44 commit 0a041ac
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions guilt-patchbomb
Original file line number Diff line number Diff line change
Expand Up @@ -71,32 +71,6 @@ if [ `git-rev-list "$r" | wc -l` -gt 1 ]; then
fi
opts="$opts $to_opts"

ls "$dir" | while read n; do
fulln="$dir/$n"

do_get_full_header "$fulln" | awk '
BEGIN{p=0}
/^$/{p=1}
/^[Cc][Cc]: / && (p==1){print substr($0, 5)}
' | sed -n -e '
1 h
2,$ H
$ {
x
s/\n/, /g
p
}' > "$TMP_FILE"
if [ -s "$TMP_FILE" ]; then
head -1 "$fulln" > "$fulln~"
echo -n "Cc: " >> "$fulln~"
cat "$TMP_FILE" >> "$fulln~"
tail -n +2 "$fulln" >> "$fulln~"
mv "$fulln~" "$fulln"
echo "${n:0:4}: Including Cc from patch description"
rm -f "$TMP_FILE"
fi
done

# last possible point to abort!
echo -n "Proceed with patchbomb (this is the last chance to abort)? [y/N] "
read n
Expand Down

0 comments on commit 0a041ac

Please sign in to comment.