lkml.org 
[lkml]   [2002]   [Feb]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  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