List for cgit developers and users
 help / color / mirror / Atom feed
* Feature request: "plain" diff display mode
@ 2013-10-16  2:22 kerrick
  2013-10-16  6:40 ` normalperson
  0 siblings, 1 reply; 2+ messages in thread
From: kerrick @ 2013-10-16  2:22 UTC (permalink / raw)


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20131015/dfadc19c/attachment.html>


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Feature request: "plain" diff display mode
  2013-10-16  2:22 Feature request: "plain" diff display mode kerrick
@ 2013-10-16  6:40 ` normalperson
  0 siblings, 0 replies; 2+ messages in thread
From: normalperson @ 2013-10-16  6:40 UTC (permalink / raw)


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!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-16  6:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-16  2:22 Feature request: "plain" diff display mode kerrick
2013-10-16  6:40 ` normalperson

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).