From: Jeff King <peff@peff.net>
To: Tim Henigan <tim.henigan@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: [PATCH v3] diff-no-index: exit(1) if 'diff --quiet <repo file> <external file>' finds changes
Date: Wed, 20 Jun 2012 12:06:08 -0400 [thread overview]
Message-ID: <20120620160607.GA12856@sigill.intra.peff.net> (raw)
In-Reply-To: <CAFouetgXkqJPYwjr5ob5ed_ooL-D56zXyjnOAWrVPdt_eZqw7g@mail.gmail.com>
On Wed, Jun 20, 2012 at 09:38:15AM -0400, Tim Henigan wrote:
> > With your patch applied, I was able to use relative paths in my tests.
> > I also confirmed that all the t4*.sh tests pass.
> >
> > For what its worth, your patch looks correct to me. Existing
> > consumers of 'prefix_path' should get the same results as before and
> > the one added xmalloc is paired with a free.
>
> Jeff,
>
> Are you planning to send this patch to the list? If not, can I
> include it as 1 of 2 before my patch? If we go that route, I'm not
> sure how to properly show you as the author...
I'd probably get to it eventually, but I haven't touched it since I sent
it. If you want to include some tests and package it with a commit
message, that would make me very happy.
You can override the author by including a "From: " header as the first
line in the body of the email (which git-am will use rather than the
identity in the email's From header). If you use git-send-email, it will
do this automatically when the patch author does not match your
identity.
I didn't sign-off the original, but please feel free to include my
sign-off, as well as add your own. And note your own contributions in
the commit message. So the resulting email would be something like:
From: Tim Henigan <tim.henigan@gmail.com>
Date: ...
Subject: [PATCH 1/2] diff: handle relative paths in no-index
From: Jeff King <peff@peff.net>
... some commit message body ...
Tests and commit message by Tim Henigan.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Tim Henigan <tim.henigan@gmail.com>
---
... the actual patch ...
> Also, in an earlier email [1] you mentioned that it may be a good idea
> to rename 'found_changes' to something like 'xdiff_found_changes'. I
> like the idea...I could submit this change as another patch in the
> series, if you have no objections.
Fine by me. I think "xdiff_found_changes" is not quite accurate; it is
really "did builtin_diff find any changes?" since we might never call
into xdiff (e.g., for binary files). I'm not sure what the best name is.
-Peff
next prev parent reply other threads:[~2012-06-20 16:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-18 19:28 [PATCH v3] diff-no-index: exit(1) if 'diff --quiet <repo file> <external file>' finds changes Tim Henigan
2012-06-18 19:45 ` Jeff King
2012-06-18 20:09 ` Junio C Hamano
2012-06-19 13:05 ` Tim Henigan
2012-06-19 13:58 ` Jeff King
2012-06-19 16:47 ` Tim Henigan
2012-06-20 13:38 ` Tim Henigan
2012-06-20 16:06 ` Jeff King [this message]
2012-06-20 18:44 ` Junio C Hamano
2012-06-20 18:52 ` Jeff King
2012-06-20 19:21 ` Junio C Hamano
2012-06-21 15:07 ` Tim Henigan
2012-06-21 16:55 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120620160607.GA12856@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=tim.henigan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).