Feature request: "plain" diff display mode

Eric Wong normalperson at yhbt.net
Wed Oct 16 08:40:52 CEST 2013

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!

More information about the CGit mailing list