[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160815200553.ettprytevjjk7a6b@x>
Date: Mon, 15 Aug 2016 13:05:53 -0700
From: Josh Triplett <josh@...htriplett.org>
To: Simon Glass <sjg@...omium.org>
Cc: Stephen Warren <swarren@...dotorg.org>,
Git List <git@...r.kernel.org>,
lk <linux-kernel@...r.kernel.org>
Subject: Re: [ANNOUNCE] git-series: track changes to a patch series over time
On Mon, Aug 15, 2016 at 12:17:11PM -0600, Simon Glass wrote:
> On 1 August 2016 at 12:37, Josh Triplett <josh@...htriplett.org> wrote:
> > On Mon, Aug 01, 2016 at 09:14:54AM -0600, Stephen Warren wrote:
> >> On 07/29/2016 12:40 AM, Josh Triplett wrote:
> >> > I'd like to announce a project I've been working on for a while:
> >> >
> >> > git-series provides a tool for managing patch series with git, tracking
> >> > the "history of history". git series tracks changes to the patch series
> >> > over time, including rebases and other non-fast-forwarding changes. git
> >> > series also tracks a cover letter for the patch series, formats the
> >> > series for email, and prepares pull requests.
> >>
> >> Just as an FYI, I wouldn't be surprised if there's some overlap, or
> >> potential for merging of tools, between this tool and the "patman" tool
> >> that's part of the U-Boot source tree:
> >>
> >> http://git.denx.de/?p=u-boot.git;a=blob;f=tools/patman/README;h=e36857dedea1d0dbafa41732aaf9bf0988d63f38;hb=HEAD
> >
> > Interesting tool; thanks for the link.
> >
> > As far as I can tell from that documentation, patman doesn't track old
> > versions of a patch series; you rebase to modify patches or change
> > patman tags (embedded in commit messages), and nothing preserves the
> > previous version. And it tracks the cover letter and similar in one of
> > the commit messages in the series, so previous versions of that don't
> > get saved either. If you wanted to track the history of your changes,
> > you'd have to use branch names or similar.
>
> That's right. Normally you would keep the old branch around, or tag
> it. Of course old branches are often based on older versions the
> upstream repo, so they are not that useful for diiff, etc. But the
> normal procedure when updating a series to a new version is:
>
> git checkout -b wibble-v2 wibble
> git rebase upstream/master
That's the workflow I used before git-series, as well. Having to create
versioned branch names motivated creating git-series; the branch names
in the git-series documentation ("feature-v8-rebased-4.6-alice-fix") are
*reduced* versions of actual branch names used for internal projects.
> > In addition, tracking metadata in commit messages only works with a
> > patches-by-mail workflow where the messages get processed when
> > generating patches; that doesn't work for please-pull workflows.
>
> Can you explain what a please-pull workflow looks like, and what tags
> are expected?
You push the branch somewhere, as a branch or tag, and then use git
request-pull or otherwise tell someone "please pull from here". They
pull the *exact* commit hashes you pushed, including whatever you based
them on. That means they get the exact commit messages you pushed. So,
if you have any inline metadata in the commit message, that would end up
in the project history. The Linux kernel and other projects object to
getting those kinds of bits in commit messages; I've seen many patches
rejected because they included a Gerrit Change-Id.
Tracking the history and cover letter in a separate string of "series
commits" allows the underlying patch series to contain the exact commits
you want upstream to pull, without any postprocessing required.
- Josh Triplett
Powered by blists - more mailing lists