git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-format-patch-script bug?

From
Eric W. Biederman <ebiederm@xmission.com>
Date
Aug 7, 2005, 18:54 UTC
Message-ID
<m1y87dwpak.fsf@ebiederm.dsl.xmission.com>
In-Reply-To
<7vhde1y85y.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
Show 15 quoted lines
> ebiederm@xmission.com (Eric W. Biederman) writes:
>
>> I was trying to help someone track down a bug that
>> occurred between linux-2.6.12 and linux-2.6.13-rc1.
>> Since it was very much an unknown where the problem
>> was introduced I decided to run git format-patch
>> so I could see what all of the differences were.
>> Then to be certain the patch series worked I started
>> applying them in order.  
>
> Sorry, I offhand do not have a good re-design of what
> format-patch should do for this purpose; the current design does
> not try to deal with anything but a linear sequence of commits,
> primarily because the command was done for preparing individual
> developer's patch submission.

What format-patch does is currently is fine. If format-patch would simply notice the case and fail gracefully that would be sufficient to avoid giving false impressions.

Depending on the quality of the list from git-rev-list --merge-order I should even be able to achieve what I was attempting, by running git-diff-tree with an ordered list of revisions and two parents on the tree.

Essentially I was attempting an export to quilt operation, which implies a linearization of the changes. As I recall a linearization of the changes is what BK export to CVS was built on. So that case may be worth returning to as there are a lot of interesting cases out there for it.

The other interest tid bit about my experiment was that git-format-patch-script on 2000 diffs was sluggish, certainly slower that the time to perform the write operations. Why it was slow I don't know but it may be worth looking into.

Show 5 quoted lines
> I find your trying to find where the problem was introduced by
> reading every single change very laudable.  However, for the
> purpose of "this one was good but somewhere before this one the
> things got broken, where is it?", I suspect that bisect would be
> a better fit.
If you can teach the user how to use bisect, and git.  

If we could get gitweb to perform the bisect it would be helpful, or possibly when git settles down and everyone can be counted on to have git on their machine already, bisect would be a help.

Had I been thinking a little more clearly I would have suggested walking through the daily git snapshots as those are at least fairly big steps.

For the moment I think the unexpected behavior I found in git is more interesting then the problem I was actually trying to solve.

Eric
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “git-format-patch-script bug?”
  1. Eric W. BiedermanAug 7, 2005
  2. Junio C HamanoAug 7, 2005
  3. Eric W. BiedermanAug 7, 2005
  4. Junio C HamanoAug 7, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.