git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Christian MICHON" <christian.michon@gmail.com>
To: "Junio C Hamano" <gitster@pobox.com>
Cc: "git list" <git@vger.kernel.org>
Subject: Re: patches in context format ?
Date: Mon, 12 Jan 2009 10:52:23 +0100	[thread overview]
Message-ID: <46d6db660901120152g31d33bfevcd592ae360252804@mail.gmail.com> (raw)
In-Reply-To: <7vy6xgj2jq.fsf@gitster.siamese.dyndns.org>

On Mon, Jan 12, 2009 at 10:28 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> I guess the answer is no, but has anyone on the list been working on
>> this ? is there another way to translate from "context" to "unified"
>> format ?
>
> Not that I know of.
>
> If you want to add support for the copied context format patches to your
> workflow, I think the first step (and easiest one) would be to find an
> external program that lets you convert from the copied context format to
> the unified context format.  Perhaps "interdiff /dev/null copied >unified"
> would suffice (but I haven't tested this).
>

interdiff is exactly what I needed (I used -p and -q switches, plus a
substitution for the path).

Thanks for this! I guess there's not really a need to add this now in
git-am, since I've seldom seen such context patches.

-- 
Christian
--
http://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside !

  reply	other threads:[~2009-01-12  9:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-12  9:00 patches in context format ? Christian MICHON
2009-01-12  9:28 ` Junio C Hamano
2009-01-12  9:52   ` Christian MICHON [this message]
2009-01-12  9:34 ` Teemu Likonen
2009-01-12  9:53   ` Christian MICHON
2009-01-12  9:52 ` Jeff King
2009-01-12  9:57   ` Christian MICHON

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=46d6db660901120152g31d33bfevcd592ae360252804@mail.gmail.com \
    --to=christian.michon@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.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).