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