<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/scan-tree.c, branch v0.9</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/scan-tree.c?h=v0.9</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/scan-tree.c?h=v0.9'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2011-02-19T13:25:14Z</updated>
<entry>
<title>scan_path(): Do not recurse into hidden directories by default</title>
<updated>2011-02-19T13:25:14Z</updated>
<author>
<name>Johan Herland</name>
<email>johan@herland.net</email>
</author>
<published>2010-11-15T19:41:00Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=df522794c38934be3229a11e0e2432a1f2a3bc8d'/>
<id>urn:sha1:df522794c38934be3229a11e0e2432a1f2a3bc8d</id>
<content type='text'>
Paths that start with a period ('.') are considered hidden in the Unix world.
scan_path() should arguably not recurse into these directories by default.
This patch makes it so, and introduces the "scan-hidden-path" config variable
for overriding the new default and revert to the old behaviour (scanning _all_
directories, including hidden .directories).

Signed-off-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Lars Hjemli &lt;larsh@prediktor.no&gt;
</content>
</entry>
<entry>
<title>scan_path(): Improve handling of inaccessible directories</title>
<updated>2010-11-16T08:03:43Z</updated>
<author>
<name>Johan Herland</name>
<email>johan@herland.net</email>
</author>
<published>2010-11-15T19:40:43Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=682adbc0cad2baa1a6119013b166f52de3ee3352'/>
<id>urn:sha1:682adbc0cad2baa1a6119013b166f52de3ee3352</id>
<content type='text'>
When scanning a tree containing inaccessible directories (e.g. '.ssh'
directories in users' homedirs, or repos with explicitly restricted access),
scan_path() currently causes three lines of "Permissions denied" errors to be
printed to the CGI error log per inaccessible directory:

  Error checking path /home/foo/.ssh: Permission denied (13)
  Error checking path /home/foo/.ssh/.git: Permission denied (13)
  Error opening directory /home/foo/.ssh: Permission denied (13)

This is a side-effect of calling is_git_dir(path) and
is_git_dir(fmt("%s/.git", path) _before_ we try to opendir(path).

By placing the opendir(path) before the two is_git_dir() calls, we reduce the
noise to a single line per inaccessible directory:

  Error opening directory /home/foo/.ssh: Permission denied (13)

Signed-off-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Lars Hjemli &lt;larsh@prediktor.no&gt;
</content>
</entry>
<entry>
<title>Add `strict-export` option</title>
<updated>2010-11-08T18:41:13Z</updated>
<author>
<name>Felix Hanley</name>
<email>felix@seconddrawer.com.au</email>
</author>
<published>2010-11-08T18:41:13Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=e0c6f23789e4893781bcd5af2281d468991ccf3a'/>
<id>urn:sha1:e0c6f23789e4893781bcd5af2281d468991ccf3a</id>
<content type='text'>
This option is used to specify a filename which needs to be present in
the repositories found during `scan-path` processing. By setting this
option to 'git-daemon-export-ok', only repositories explicitly marked
for git daemon export will be included in the cgit configuration.

Signed-off-by: Felix Hanley &lt;felix@seconddrawer.com.au&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'lh/section-from-path'</title>
<updated>2010-09-19T16:46:17Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2010-09-19T16:46:17Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=536c7a1eb201b44b9266babe087cb6f2b75e4a7f'/>
<id>urn:sha1:536c7a1eb201b44b9266babe087cb6f2b75e4a7f</id>
<content type='text'>
Conflicts:
	scan-tree.c
</content>
</entry>
<entry>
<title>Add support for 'section-from-path' option</title>
<updated>2010-08-22T11:35:56Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2010-08-21T13:44:09Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=797110e39d5d433638c82cf27d584ed9b8b93bb7'/>
<id>urn:sha1:797110e39d5d433638c82cf27d584ed9b8b93bb7</id>
<content type='text'>
This option can be used to autogenerate section names during scan-path
processing.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add support for "readme" option</title>
<updated>2010-08-22T11:35:47Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2010-08-21T13:08:01Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=515edb0da3b9156e07e269621d7474cdea82acaf'/>
<id>urn:sha1:515edb0da3b9156e07e269621d7474cdea82acaf</id>
<content type='text'>
The value of this option is used as the default value for repo.readme.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add support for 'enable-gitweb-owner' option</title>
<updated>2010-08-04T01:09:32Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2010-07-29T18:38:01Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=119397b175874bd606952e93b7249ae4ffb9afbe'/>
<id>urn:sha1:119397b175874bd606952e93b7249ae4ffb9afbe</id>
<content type='text'>
When this option is enabled (which it is by default), cgit will lookup
the 'gitweb.owner' setting in each git config file found when processing
the 'scan-path' option.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add support for 'remove-suffix' option</title>
<updated>2010-08-04T01:09:32Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2010-07-29T17:47:50Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=2e4a941626c240bc7858aa7564882c01f657f4e8'/>
<id>urn:sha1:2e4a941626c240bc7858aa7564882c01f657f4e8</id>
<content type='text'>
When this option is enabled, the '.git' suffix of repository directories
found while processing the 'scan-path' option will be removed.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add support for 'project-list' option</title>
<updated>2010-08-04T01:09:32Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2010-07-29T15:52:29Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=3516502aa0df95ecc241caa30161741f59e4e600'/>
<id>urn:sha1:3516502aa0df95ecc241caa30161741f59e4e600</id>
<content type='text'>
This option specifies the location of a projectlist file as used by
gitweb - when 'scan-tree' is later specified, only the projects listed in
the projectlist file will be added.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>scan-tree: add test for noweb-file in repo dir</title>
<updated>2010-02-28T17:40:02Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2010-02-28T17:40:02Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=31ba37c0a44f152005fbb8ab49c05462fb741fd6'/>
<id>urn:sha1:31ba37c0a44f152005fbb8ab49c05462fb741fd6</id>
<content type='text'>
If such a file exists, the repo is not added to the repolist.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
</feed>
