<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/gitweb/README, branch v1.7.0.9</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.7.0.9</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.7.0.9'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-03-02T20:14:20Z</updated>
<entry>
<title>gitweb multiple project roots documentation</title>
<updated>2010-03-02T20:14:20Z</updated>
<author>
<name>Sylvain Rabot</name>
<email>sylvain@abstraction.fr</email>
</author>
<published>2010-03-02T00:04:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=964ad928d65b8bdf15bee4a662629824a0b3a0e7'/>
<id>urn:sha1:964ad928d65b8bdf15bee4a662629824a0b3a0e7</id>
<content type='text'>
This commit adds in the gitweb/README file a description of how to use gitweb
with several project roots using apache virtualhost rewrite rules.

Signed-off-by: Sylvain Rabot &lt;sylvain@abstraction.fr&gt;
Acked-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Load checking</title>
<updated>2010-01-30T23:53:50Z</updated>
<author>
<name>John 'Warthog9' Hawley</name>
<email>warthog9@kernel.org</email>
</author>
<published>2010-01-30T22:30:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b62a1a98bc65f52d972a3f403c5b29d6a84642fd'/>
<id>urn:sha1:b62a1a98bc65f52d972a3f403c5b29d6a84642fd</id>
<content type='text'>
This changes slightly the behavior of gitweb, so that it verifies
that the box isn't inundated with before attempting to serve gitweb.
If the box is overloaded, it basically returns a 503 Server Unavailable
until the load falls below the defined threshold.  This helps dramatically
if you have a box that's I/O bound, reaches a certain load and you
don't want gitweb, the I/O hog that it is, increasing the pain the
server is already undergoing.

This behavior is controlled by $maxload configuration variable.
Default is a load of 300, which for most cases should never be hit.
Unset it (set it to undefined value, i.e. undef) to turn off checking.

Currently it requires that '/proc/loadavg' file exists, otherwise the
load check is bypassed (load is taken to be 0).  So platforms that do
not implement '/proc/loadavg' currently cannot use this feature
(provisions are included for additional checks to be added by others).

There is simple test in t/t9501-gitweb-standalone-http-status.sh to
check that it correctly returns "503 Service Unavailable" if load is
too high, and also if there are any Perl warnings or errors.

Signed-off-by: John 'Warthog9' Hawley &lt;warthog9@kernel.org&gt;
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb: Describe (possible) gitweb.js minification in gitweb/README</title>
<updated>2009-12-03T20:38:45Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2009-12-02T21:14:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eff726f0c28097e7964eb876d005e50e0dcdb9a0'/>
<id>urn:sha1:eff726f0c28097e7964eb876d005e50e0dcdb9a0</id>
<content type='text'>
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jn/gitweb-blame'</title>
<updated>2009-12-01T19:28:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-12-01T19:28:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8678bc09e3a553fdacfbf7f8493e400c399f8e7b'/>
<id>urn:sha1:8678bc09e3a553fdacfbf7f8493e400c399f8e7b</id>
<content type='text'>
* jn/gitweb-blame:
  gitweb: Add link to other blame implementation in blame views
  gitweb: Make linking to actions requiring JavaScript a feature
  gitweb.js: fix padLeftStr() and its usage
  gitweb.js: Harden setting blamed commit info in incremental blame
  gitweb.js: fix null object exception in initials calculation
  gitweb: Minify gitweb.js if JSMIN is defined
  gitweb: Create links leading to 'blame_incremental' using JavaScript
  gitweb: Colorize 'blame_incremental' view during processing
  gitweb: Incremental blame (using JavaScript)
  gitweb: Add optional "time to generate page" info in footer

Conflicts:
	Makefile
	gitweb/gitweb.css
</content>
</entry>
<entry>
<title>gitweb: Incremental blame (using JavaScript)</title>
<updated>2009-09-01T15:34:24Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2009-09-01T11:39:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4af819d4cad206648b832f4d6103547981ab8004'/>
<id>urn:sha1:4af819d4cad206648b832f4d6103547981ab8004</id>
<content type='text'>
Add 'blame_incremental' view, which uses "git blame --incremental"
and JavaScript (Ajax), where 'blame' use "git blame --porcelain".

 * gitweb generates initial info by putting file contents (from
   "git cat-file") together with line numbers in blame table
 * then gitweb makes web browser JavaScript engine call startBlame()
   function from gitweb.js
 * startBlame() opens XMLHttpRequest connection to 'blame_data' view,
   which in turn calls "git blame --incremental" for a file, and
   streams output of git-blame to JavaScript (gitweb.js)
 * XMLHttpRequest event handler updates line info in blame view as soon
   as it gets data from 'blame_data' (from server), and it also updates
   progress info
 * when 'blame_data' ends, and gitweb.js finishes updating line info,
   it fixes colors to match (as far as possible) ordinary 'blame' view,
   and updates information about how long it took to generate page.

Gitweb deals with streamed 'blame_data' server errors by displaying
them in the progress info area (just in case).

The 'blame_incremental' view tries to be equivalent to 'blame' action;
there are however a few differences in output between 'blame' and
'blame_incremental' view:

 * 'blame_incremental' always used query form for this part of link(s)
   which is generated by JavaScript code.  The difference is visible
   if we use path_info link (pass some or all arguments in path_info).
   Changing this would require implementing something akin to href()
   subroutine from gitweb.perl in JavaScript (in gitweb.js).
 * 'blame_incremental' always uses "rowspan" attribute, even if
   rowspan="1".  This simplifies code, and is not visible to user.
 * The progress bar and progress info are still there even after
   JavaScript part of 'blame_incremental' finishes work.

Note that currently no link generated by gitweb leads to this new view.

This code is based on patch by Petr Baudis &lt;pasky@suse.cz&gt; patch, which
in turn was tweaked up version of Fredrik Kuivinen &lt;frekui@gmail.com&gt;'s
proof of concept patch.

This patch adds GITWEB_JS compile configuration option, and modifies
git-instaweb.sh to take gitweb.js into account.  The code for
git-instaweb.sh was taken from Pasky's patch.

Signed-off-by: Fredrik Kuivinen &lt;frekui@gmail.com&gt;
Signed-off-by: Petr Baudis &lt;pasky@suse.cz&gt;
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb/README: Document $base_url</title>
<updated>2009-08-05T19:36:38Z</updated>
<author>
<name>Jakub Narebski</name>
<email>jnareb@gmail.com</email>
</author>
<published>2009-08-04T15:54:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=46068383aa825dfe9026f9255cea07da07e06253'/>
<id>urn:sha1:46068383aa825dfe9026f9255cea07da07e06253</id>
<content type='text'>
Signed-off-by: Jakub Narebski &lt;jnareb@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>gitweb/README: fix AliasMatch in example</title>
<updated>2009-06-27T20:15:57Z</updated>
<author>
<name>Giuseppe Bilotta</name>
<email>giuseppe.bilotta@gmail.com</email>
</author>
<published>2009-06-27T16:24:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1bed73c64a354248d6b342e58df257e8233bcbd2'/>
<id>urn:sha1:1bed73c64a354248d6b342e58df257e8233bcbd2</id>
<content type='text'>
When combining "dumb client" and human-friendly access by using the
'.git' extension to switch between the two, make sure the AliasMatch
covers the entire request. Without a full match, a request for

http://git.example.com/project/shortlog/branch..gitsomething

would result in a 404 because the server would try to access the
the project 'project/shortlog/branch.'

The solution is still not bulletproof, so document the possible failing
case.

Signed-off-by: Giuseppe Bilotta &lt;giuseppe.bilotta@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: fix typos / spelling mistakes</title>
<updated>2009-04-20T22:56:07Z</updated>
<author>
<name>Mike Ralphson</name>
<email>mike@abacus.co.uk</email>
</author>
<published>2009-04-17T18:13:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=680ebc01806187b33cab9093c39102468298350f'/>
<id>urn:sha1:680ebc01806187b33cab9093c39102468298350f</id>
<content type='text'>
Signed-off-by: Mike Ralphson &lt;mike@abacus.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2009-02-09T06:07:53Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-02-09T06:07:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=df487baa30924a36ade38ada4f77379236dcce0f'/>
<id>urn:sha1:df487baa30924a36ade38ada4f77379236dcce0f</id>
<content type='text'>
* maint:
  gitweb: add $prevent_xss option to prevent XSS by repository content
  rev-list: fix showing distance when using --bisect-all
</content>
</entry>
<entry>
<title>gitweb: add $prevent_xss option to prevent XSS by repository content</title>
<updated>2009-02-09T05:51:25Z</updated>
<author>
<name>Matt McCutchen</name>
<email>matt@mattmccutchen.net</email>
</author>
<published>2009-02-08T00:00:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7e1100e9e939c9178b2aa3969349e9e8d34488bf'/>
<id>urn:sha1:7e1100e9e939c9178b2aa3969349e9e8d34488bf</id>
<content type='text'>
Add a gitweb configuration variable $prevent_xss that disables features
to prevent content in repositories from launching cross-site scripting
(XSS) attacks in the gitweb domain.  Currently, this option makes gitweb
ignore README.html (a better solution may be worked out in the future)
and serve a blob_plain file of an untrusted type with
"Content-Disposition: attachment", which tells the browser not to show
the file at its original URL.

The XSS prevention is currently off by default.

Signed-off-by: Matt McCutchen &lt;matt@mattmccutchen.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
