From 0a041acc60dbe2951d623dcfdd059f81f7a5e3e7 Mon Sep 17 00:00:00 2001 From: Josef 'Jeff' Sipek Date: Sat, 19 Jan 2008 16:10:07 -0500 Subject: [PATCH] patchbomb: Git parses the patch mboxes and extracts Cc lines automatically Signed-off-by: Josef 'Jeff' Sipek --- guilt-patchbomb | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/guilt-patchbomb b/guilt-patchbomb index 5fc6cab..a43151a 100755 --- a/guilt-patchbomb +++ b/guilt-patchbomb @@ -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