From mboxrd@z Thu Jan 1 00:00:00 1970 From: normalperson at yhbt.net (Eric Wong) Date: Wed, 16 Oct 2013 06:40:52 +0000 Subject: Feature request: "plain" diff display mode In-Reply-To: References: Message-ID: <20131016064052.GA5620@dcvr.yhbt.net> Kerrick Staley 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 | 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!