4 Dec 00:55
Re: [RFCv3 1/2] gitweb: add patch view
From: Junio C Hamano <gitster <at> pobox.com>
Subject: Re: [RFCv3 1/2] gitweb: add patch view
Newsgroups: gmane.comp.version-control.git
Date: 2008-12-03 23:55:16 GMT
Subject: Re: [RFCv3 1/2] gitweb: add patch view
Newsgroups: gmane.comp.version-control.git
Date: 2008-12-03 23:55:16 GMT
Giuseppe Bilotta <giuseppe.bilotta <at> gmail.com> writes: > The manually-built email format in commitdiff_plain output is not > appropriate for feeding git-am, because of two limitations: > * when a range of commits is specified, commitdiff_plain publishes a > single patch with the message from the first commit, instead of a > patchset, > * in either case, the patch summary is replicated both as email subject > and as first line of the email itself, resulting in a doubled summary > if the output is fed to git-am. > > We thus create a new view that can be fed to git-am directly by exposing > the output of git format-patch directly. This allows patch exchange and > submission via gitweb. > > A configurable limit is imposed on the number of commits which will be > included in a patchset, to prevent DoS attacks on the server. Setting > the limit to 0 will disable the patch view, setting it to a negative > number will remove the limit. > > Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta <at> gmail.com> > --- > gitweb/gitweb.perl | 41 ++++++++++++++++++++++++++++++++++++++++- > 1 files changed, 40 insertions(+), 1 deletions(-) > > diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl > index 2738643..c9abfcf 100755 > --- a/gitweb/gitweb.perl > +++ b/gitweb/gitweb.perl > @@ -329,6 +329,13 @@ our %feature = ((Continue reading)
RSS Feed