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

Re: [PATCH] fast-export: Avoid dropping files from commits

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 26, 2009, 00:40 UTC
Message-ID
<alpine.DEB.1.00.0903260138410.10279@pacific.mpi-cbg.de>
In-Reply-To
<51419b2c0903251706n7cfa053eheff542d20ca9a753@mail.gmail.com>
Hi,
On Wed, 25 Mar 2009, Elijah Newren wrote:
Show 21 quoted lines
> On Wed, Mar 25, 2009 at 4:13 PM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> >> -     if (commit->parents) {
> >> +     if (commit->parents &&
> >> +         get_object_mark(&commit->parents->item->object) != 0) {
> >>               parse_commit(commit->parents->item);
> >>               diff_tree_sha1(commit->parents->item->tree->object.sha1,
> >>                              commit->tree->object.sha1, "", &rev->diffopt);
> >
> > I do not understand that change.
> >
> > A good explanation in the commit message might help this stupid 
> > developer.
> 
> I resent the patch in another email (sorry for the duplication, but I 
> don't trust gmail to preserve patches, and responding inline to comments 
> via git-send-email isn't so great either).  Let me know if the 
> explanation is missing anything, is too detailed, or is using incorrect 
> terminology.  In two cases I was sufficiently unsure about my wording 
> that I provided extra wording to try to make it clear what I was talking 
> about.

I am pretty tired, but I still have the impression that I understood it, so yes, I like it.

You might want to skip the != 0, though, as we avoid that in the rest of Git's source code, too.

Thanks, Dscho

Previous: Elijah NewrenNext: Junio C Hamano
Message 5 of 7 in “fast-export: Avoid dropping files from commits”
  1. fast-export: Avoid dropping files from commitsnewren@gmail.com, Mar 25, 2009
  2. Johannes SchindelinMar 25, 2009
  3. newren@gmail.comMar 25, 2009
  4. Elijah NewrenMar 26, 2009
  5. Johannes SchindelinMar 26, 2009
  6. Junio C HamanoMar 26, 2009
  7. Elijah NewrenMar 26, 2009

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.