[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCHv6 2/3] grant_table: convert grant table rwlock to percpu rwlock
On Fri, 2016-01-22 at 08:34 -0700, Jan Beulich wrote: > >>> On 22.01.16 at 16:22, <ian.campbell@xxxxxxxxxx> wrote: > > On Fri, 2016-01-22 at 08:15 -0700, Jan Beulich wrote: > >> > >> There are a number of trailing blanks being added here (and > further > >> down), which I'm fixing up as I'm in the process of applying this. > > > > Aside: Do you know about "git am --whitespace=fix" ? It automates > the > > removal of trailing whitespace... > > No, I didn't, but it'd be maximally useful only if I could store this > as > the default into ~/.gitconfig (and maybe that's possible, just that > my git foo is too lame). It ends up being a git apply option, so it looks like apply.whitespace = "fix" is the answer. I don't do that and tend to just rerun if git am complains about whitespace (which is the default) and it looks like it is worth fixing. Or is correct to fix since checked in patches have deliberate trailing whitepace on the context lines which you don't want to squash. IME trailing whitespace in patches is actually astonishingly rare in practice. > Besides that I'm also not always using "git > am", not the least because what my mail frontend saves is not > always compatible with that command (leading to lost metadata). I use a sneaky trick, which is that the bug tracker will serve up raw, unadulterated messages sent to xen-devel by message-id: curl --silent http://bugs.xenproject.org/xen/mid/<msg@id>/raw Doesn't help if the patch didn't go to xen-devel, but most of the ones I'm interested in do. I actually use the skanky script below which has a little bit of smarts to do series at a time if they were sent with git send-email... git-msgid -g '1 10' '<git-send-email-1-blah@xxxxxxxxxxx>' | git am Ian. 8<------ #!/bin/bash help() { echo "help!" 1>&2 } GIT= while getopts g: OPT ; do case $OPT in g) GIT="$OPTARG" ;; h) help ; exit 1 ;; \?) exit 1 ;; esac done shift $(expr $OPTIND - 1) fetch_messages() { for i in $@ ; do echo "Fetching Message ID $i" 1>&2 if [ -n "$X" ] ; then ssh celaeno cat /srv/mldrop/xen-devel/"\"$i\"" else #wget -O - -q http://bugs.xenproject.org/xen/mid/"$i"/raw i=${i/\+/%2B} curl --silent http://bugs.xenproject.org/xen/mid/"$i"/raw fi done } if [ -z "$GIT" ] ; then fetch_messages $@ else #<1349427871-31195-4-git-send-email-anthony.perard@xxxxxxxxxx> for i in $@ ; do PATTERN=$(echo "$i" | sed -e 's/^\(<[0-9]*-[0-9]*-\)[0-9]*\(-.*>\)/\1@@NR@@\2/g') echo "GIT pattern $PATTERN" 1>&2 for n in $(seq $GIT) ; do MSG=$(echo "$PATTERN" | sed -e "s/@@NR@@/$n/") fetch_messages $MSG done done fi _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |