List for cgit developers and users
 help / color / mirror / Atom feed
From: normalperson at yhbt.net (Eric Wong)
Subject: Feature request: "plain" diff display mode
Date: Wed, 16 Oct 2013 06:40:52 +0000	[thread overview]
Message-ID: <20131016064052.GA5620@dcvr.yhbt.net> (raw)
In-Reply-To: <CANaWP3zo00LWjzD1C2WCLh+U-Ot3cZSt33E5gdwzKi8SiJEw3w@mail.gmail.com>

Kerrick Staley <kerrick at kerrickstaley.com> wrote:
> It'd be useful if cgit could display plain-text diffs, similar to the
> "plain" blob display mode. This would allow you to run e.g.
> 
> curl <plain-diff-url> | patch -p1
> 
> It looks like [1] implements this feature, but I'm not sure.
> 
> - Kerrick
> 
> [1]
> http://git.zx2c4.com/cgit/commit/?id=445f6ae8e3ef19b6ca70e741e934778bc4a05555

Just replace "/commit/" with "/patch/" in the URL.
IIRC, cgit has had this for a long time.

I use curl + (patch|git am|git apply) like this often, too!


      reply	other threads:[~2013-10-16  6:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-16  2:22 kerrick
2013-10-16  6:40 ` normalperson [this message]

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=20131016064052.GA5620@dcvr.yhbt.net \
    --to=cgit@lists.zx2c4.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).