[lkml]   [2002]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: linux-2.5.4-pre1 - bitkeeper testing

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

while read -r line; do
case "$line" in
---\ *)
test $log = y && echo "$line" >> /tmp/test-log
echo "$line" >> /tmp/test-patch

oldtty=`stty -g`
reset -Q
vim -o /tmp/test-log /tmp/test-patch
echo -n "ok?"
# 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
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:24    [W:0.091 / U:6.836 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site