[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOesGMjcSw1vUJ8nn4TakrRxEonryc=Oo-uhRxML=HwJpZQ8hQ@mail.gmail.com>
Date: Mon, 13 Aug 2012 14:13:55 -0700
From: Olof Johansson <olof@...om.net>
To: Sascha Hauer <s.hauer@...gutronix.de>
Cc: Arnd Bergmann <arnd@...db.de>,
Linus Torvalds <torvalds@...ux-foundation.org>, arm@...nel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Subject: Re: [GIT PULL 0/3] arm-soc updates
On Mon, Aug 13, 2012 at 11:58 AM, Sascha Hauer <s.hauer@...gutronix.de> wrote:
> Hi Arnd,
>
> On Fri, Aug 10, 2012 at 09:06:12PM +0200, Arnd Bergmann wrote:
>> Hi Linus,
>>
>> Here are three pull requests for you to consider for the next -rc.
>
> How do you send multiple pull requests? Is there some git foo available
> or do you do this manually?
For truly trivial multi-branch pulls, I just generate each
individually. For the merge windows we tend to have several branches
touching the same files, so diffstats would be harder to compare that
way.
So, this is my workflow. I think Arnd's is quite similar since my
script is based on an early version of what I got from him:
* Start a dummy branch based on latest upstream version
* For each branch to pull:
- Merge in the branch to make sure you document/resolve conflicts
- Generate pull request email (save to file)
- Push resolved branch (if you want to provide that)
* Edit the saved pull requests to modify the x/y fields
* Send them (with git send-mail --annotate for cover letter)
I have a script that generates the pull-request email in a format that
git send-email accepts (i.e. it has a From/Subject header). It's not
very pretty, but for reference I included a copy below.
#!/bin/sh
# Usage: my-request-pull <tagname>, run from a branch that is checked out
# with the branch you wish to request pulled merged in as the top commit.
echo "From: $(git config --get user.name) <$(git config --get user.email)>"
echo -n Subject: [GIT PULL x/y]\
git tag -n20 -l $1 | sed -e 's:^[-a-z0-9]* *::g'
echo
echo "----------------------------------------------------------------"
echo
SHA=$(git log --pretty=oneline -1 HEAD~ | cut -d' ' -f 1)
DESC=$(git log --pretty=oneline -1 HEAD~ | cut -d' ' -f 1 --complement)
echo "The following changes since commit $SHA:"
echo
echo " $DESC"
echo
echo "are available in the git repository at:"
echo
echo " git://EDIT_YOUR_URL_IN_HERE tags/$1"
echo
SHA=$(git log --pretty=oneline -1 $1 | cut -d' ' -f 1)
DESC=$(git log --pretty=oneline -1 $1 | cut -d' ' -f 1 --complement)
echo "for you to fetch changes up to $SHA:"
echo
echo " $DESC"
echo
echo "----------------------------------------------------------------"
echo
git shortlog HEAD~..$1
echo
git diff -M --stat=75 --summary HEAD~ | cat
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists