Messages in this thread | | | Date | Thu, 7 Feb 2002 11:50:32 +0100 (CET) | From | Roman Zippel <> | Subject | Re: linux-2.5.4-pre1 - bitkeeper testing |
| |
Hi,
On Wed, 6 Feb 2002, Linus Torvalds wrote:
> The problem I have with piping patches directly to bk is that I don't like > to switch back-and-forth between reading email and applying (and fixing > up) patches. Even if the patch applies cleanly (which most of them tend to > do) I still usually need to do at least some minimal editing of the commit > message etc (removing stuff like "Hi Linus" etc).
I don't know how much your scripts already do, so below is just a suggestion how to do some of the preprocessing of patches already during email reading (the bk magic has to be added by someone else).
bye, Roman
#! /bin/bash
rm -f /tmp/test-patch /tmp/test-log
IFS="" log=y while read -r line; do case "$line" in ---\ *) log=n ;; esac test $log = y && echo "$line" >> /tmp/test-log echo "$line" >> /tmp/test-patch done
( oldtty=`stty -g` reset -Q vim -o /tmp/test-log /tmp/test-patch echo -n "ok?" read # do more stty $oldtty ) < /dev/tty >& /dev/tty
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |