<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-snapshot.c, branch lh/grep</title>
<subtitle>ui for git.eugenetriguba.com
</subtitle>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/'/>
<entry>
<title>ui-snapshot: pass -n to gzip, to suppress timestamp</title>
<updated>2012-09-27T01:35:25+00:00</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2012-09-26T00:56:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=055e092a330098f6b9177266facf43029dbe1883'/>
<id>055e092a330098f6b9177266facf43029dbe1883</id>
<content type='text'>
Since cgit snapshots of tags are often used for releases, we don't
want the rarely used feature of the gzip compressor that includes
an embedded timestamp into the archive, since this makes each tarball
of the same (potentially signed) tag different.

This commit refactors the archive handling code a bit so that each
different format is able to run with an arbitrary argv for the filter.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since cgit snapshots of tags are often used for releases, we don't
want the rarely used feature of the gzip compressor that includes
an embedded timestamp into the archive, since this makes each tarball
of the same (potentially signed) tag different.

This commit refactors the archive handling code a bit so that each
different format is able to run with an arbitrary argv for the filter.
</pre>
</div>
</content>
</entry>
<entry>
<title>cgit.c: always setup cgit repo environment variables</title>
<updated>2011-06-13T23:03:46+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2011-06-06T19:29:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=3ec6b309505dc5f7ba14abe8861b02da34a9df0b'/>
<id>3ec6b309505dc5f7ba14abe8861b02da34a9df0b</id>
<content type='text'>
When cgit learned to setup environment variables for certain repo
settings before invoking a filter process, the setup occurred inside
cgit_open_filter().

This patch moves the setup out of cgit_open_filter() and into
prepare_repo_cmd() to prepare for additional uses of these variables.

Reviewed-by: Ferry Huberts &lt;mailings@hupie.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When cgit learned to setup environment variables for certain repo
settings before invoking a filter process, the setup occurred inside
cgit_open_filter().

This patch moves the setup out of cgit_open_filter() and into
prepare_repo_cmd() to prepare for additional uses of these variables.

Reviewed-by: Ferry Huberts &lt;mailings@hupie.com&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'stable'</title>
<updated>2011-06-02T10:33:23+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2011-06-02T10:33:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=7eb9f9e980c2ce1d93c979c4725cf7b60083b7b4'/>
<id>7eb9f9e980c2ce1d93c979c4725cf7b60083b7b4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot.c: remove debug cruft</title>
<updated>2011-06-02T10:26:41+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2011-06-02T10:26:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=2aabeaf834a47c2fd64e045a28cd2e5b90658939'/>
<id>2aabeaf834a47c2fd64e045a28cd2e5b90658939</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cgit_open_filter: also take the repo as a parameter</title>
<updated>2011-03-26T10:03:42+00:00</updated>
<author>
<name>Ferry Huberts</name>
<email>ferry.huberts@pelagic.nl</email>
</author>
<published>2011-03-23T10:57:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=d87bba846d368e560193a1f75de6d66bffe986cf'/>
<id>d87bba846d368e560193a1f75de6d66bffe986cf</id>
<content type='text'>
To prepare for handing repo configuration to the
filter script that is executed.

Signed-off-by: Ferry Huberts &lt;ferry.huberts@pelagic.nl&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To prepare for handing repo configuration to the
filter script that is executed.

Signed-off-by: Ferry Huberts &lt;ferry.huberts@pelagic.nl&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'stable'</title>
<updated>2010-09-01T12:32:57+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2010-09-01T12:32:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=bf8293d3196d49d6c4a48b254a04415183ca2762'/>
<id>bf8293d3196d49d6c4a48b254a04415183ca2762</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot: actually compress zip archives</title>
<updated>2010-09-01T12:32:19+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2010-09-01T12:13:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=ba1769cb6438f3a08da8cf1308eb8efad3ce573b'/>
<id>ba1769cb6438f3a08da8cf1308eb8efad3ce573b</id>
<content type='text'>
Since cgit linked with git-1.6.0 all zip archives has been uncompressed.
This patch fixes the issue by specifying Z_DEFAULT_COMPRESSION.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since cgit linked with git-1.6.0 all zip archives has been uncompressed.
This patch fixes the issue by specifying Z_DEFAULT_COMPRESSION.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add .tar.xz-snapshot support</title>
<updated>2009-12-08T21:18:11+00:00</updated>
<author>
<name>Andreas Wiese</name>
<email>aw-devel@instandbesetzt.net</email>
</author>
<published>2009-12-08T21:18:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=0642435fed6793a0d038e1e5097a91293ee89a05'/>
<id>0642435fed6793a0d038e1e5097a91293ee89a05</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot: use cgit_{open|close}_filter() to execute compressors</title>
<updated>2009-07-31T15:40:13+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-07-31T13:52:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=18dfbdc099c1398016427b6fa7f1a1facb363998'/>
<id>18dfbdc099c1398016427b6fa7f1a1facb363998</id>
<content type='text'>
This simplifies the code in ui-snapshot.c and makes the test-suite
verify the new filter-functions.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This simplifies the code in ui-snapshot.c and makes the test-suite
verify the new filter-functions.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot: avoid segfault when no filename is specified</title>
<updated>2009-03-15T07:57:33+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-03-15T07:57:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=6fddad7251021b307c8a3f70fdd2aa04c3f74eaa'/>
<id>6fddad7251021b307c8a3f70fdd2aa04c3f74eaa</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'snapshot-fixes'</title>
<updated>2009-01-11T11:22:46+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-01-11T11:22:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=aa60ae12cb3db965b3fe7239424cab92175b8343'/>
<id>aa60ae12cb3db965b3fe7239424cab92175b8343</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>return 404 if snapshot is not found</title>
<updated>2008-12-28T09:09:18+00:00</updated>
<author>
<name>Natanael Copa</name>
<email>natanael.copa@gmail.com</email>
</author>
<published>2008-12-02T10:31:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=c4b45de33458f66f5a768530d738f6c28e56cf49'/>
<id>c4b45de33458f66f5a768530d738f6c28e56cf49</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot.c: change mime-type for tar.gz and tar.bz2</title>
<updated>2008-12-26T10:33:59+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-12-26T10:33:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=ed77b2e0bff52a44ce1e5bd64e1c784a9c2fa82f'/>
<id>ed77b2e0bff52a44ce1e5bd64e1c784a9c2fa82f</id>
<content type='text'>
The updated mime-types seems to work better than the old ones with both
safari and firefox.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The updated mime-types seems to work better than the old ones with both
safari and firefox.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot: improve extraction of revision from snapshot name</title>
<updated>2008-12-01T18:13:44+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-12-01T18:13:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=4b4f8d1256669bf9838e17f83a070de0ec09a699'/>
<id>4b4f8d1256669bf9838e17f83a070de0ec09a699</id>
<content type='text'>
The modified get_ref_from_filename() supports the following snapshot
formats:
* $REV.$EXT
* $REPO[-_]*v?$REV.$EXT

This implies that the following urls will retrieve the expected revision:
* http://hjemli.net/git/cgit/snapshot/v0.8.1.tar.gz
* http://hjemli.net/git/cgit/snapshot/0.8.1.tar.gz
* http://hjemli.net/git/cgit/snapshot/cgit-0.8.1.tar.gz
* http://hjemli.net/git/cgit/snapshot/cgit-140012d7a8.tar.gz

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The modified get_ref_from_filename() supports the following snapshot
formats:
* $REV.$EXT
* $REPO[-_]*v?$REV.$EXT

This implies that the following urls will retrieve the expected revision:
* http://hjemli.net/git/cgit/snapshot/v0.8.1.tar.gz
* http://hjemli.net/git/cgit/snapshot/0.8.1.tar.gz
* http://hjemli.net/git/cgit/snapshot/cgit-0.8.1.tar.gz
* http://hjemli.net/git/cgit/snapshot/cgit-140012d7a8.tar.gz

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Set prefix in snapshots when using dwimmery</title>
<updated>2008-11-30T12:39:53+00:00</updated>
<author>
<name>Natanael Copa</name>
<email>natanael.copa@gmail.com</email>
</author>
<published>2008-11-30T05:49:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=314d9ea5a3bc60ec518e314bb0bf8072123dc08f'/>
<id>314d9ea5a3bc60ec518e314bb0bf8072123dc08f</id>
<content type='text'>
This patch sets the directory prefix in archives to be the filename,
excluding the suffix (.tar.gz, .tar.bz2 etc).

The patch also removes the prefix parameter in cgit_print_snapshot()
as the prefix might differ.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch sets the directory prefix in archives to be the filename,
excluding the suffix (.tar.gz, .tar.bz2 etc).

The patch also removes the prefix parameter in cgit_print_snapshot()
as the prefix might differ.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot: add dwimmery</title>
<updated>2008-10-11T18:09:42+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-11T18:09:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=ed7ff095ca467cdc4c8a1a1459847d68e50c9b91'/>
<id>ed7ff095ca467cdc4c8a1a1459847d68e50c9b91</id>
<content type='text'>
When downloading a snapshot, the snapshot name will often contain the repo
name combined with a tag. This patch tries to exploit this so that the
correct revision is downloaded even if no specific revision is specified.

PS: this only occurs if neither 'h' nor 'id' is specified in the query-
string.

PPS: this also fixes a bug which occurs when trying to download a filename
with an unsupported suffix: it used to try to print an error message to
the user but failed since it didn't prepare the output properly.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When downloading a snapshot, the snapshot name will often contain the repo
name combined with a tag. This patch tries to exploit this so that the
correct revision is downloaded even if no specific revision is specified.

PS: this only occurs if neither 'h' nor 'id' is specified in the query-
string.

PPS: this also fixes a bug which occurs when trying to download a filename
with an unsupported suffix: it used to try to print an error message to
the user but failed since it didn't prepare the output properly.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot.c: specify archiver_args.baselen</title>
<updated>2008-10-05T11:13:03+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T11:13:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=204669ff4a4028a82cc48e9319632595ba3ff703'/>
<id>204669ff4a4028a82cc48e9319632595ba3ff703</id>
<content type='text'>
The struct member was introduces in git commit d53fe8187c38, but the cgit
testsuite failed to detect that cgit always generated archives without
prefixes, i.e. the result from cgit_repobasename was ignored.

This fixes the bug and the testsuite.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The struct member was introduces in git commit d53fe8187c38, but the cgit
testsuite failed to detect that cgit always generated archives without
prefixes, i.e. the result from cgit_repobasename was ignored.

This fixes the bug and the testsuite.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add ui-shared.h</title>
<updated>2008-03-24T15:50:57+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-03-24T15:50:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=a4d1ca1dc6ff8171694d9e2280b6075a1beced0c'/>
<id>a4d1ca1dc6ff8171694d9e2280b6075a1beced0c</id>
<content type='text'>
This is finally a proper headerfile for the shared ui-functions which
used to reside in cgit.h

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is finally a proper headerfile for the shared ui-functions which
used to reside in cgit.h

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor snapshot support</title>
<updated>2008-03-24T15:00:27+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-03-24T15:00:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=f34478cbe0214a201e7ecef3e79ed6c957b7beee'/>
<id>f34478cbe0214a201e7ecef3e79ed6c957b7beee</id>
<content type='text'>
The snapshot support needs to be split between output- and config-related
functions to get the layering between shared.c and ui-*.c right. There
is also some codestyle-issues which needs fixing to make the snapshot
functions more similar to the rest of the cgit code.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The snapshot support needs to be split between output- and config-related
functions to get the layering between shared.c and ui-*.c right. There
is also some codestyle-issues which needs fixing to make the snapshot
functions more similar to the rest of the cgit code.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove obsolete cacheitem parameter to ui-functions</title>
<updated>2008-03-24T00:01:28+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-03-24T00:00:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=b608e88adb6f77328288afb6dd0eddf674fc9b5b'/>
<id>b608e88adb6f77328288afb6dd0eddf674fc9b5b</id>
<content type='text'>
This parameter hasn't been used for a very long time...

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This parameter hasn't been used for a very long time...

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add struct cgit_page to cgit_context</title>
<updated>2008-03-23T23:51:19+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-03-23T23:51:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=f3c1a187fe2bc33f8423cd535d5045899699995b'/>
<id>f3c1a187fe2bc33f8423cd535d5045899699995b</id>
<content type='text'>
This struct is used when generating http headers, and as such is another
small step towards the goal of the whole cleanup series; to invoke each
page/view function with a function pointer.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This struct is used when generating http headers, and as such is another
small step towards the goal of the whole cleanup series; to invoke each
page/view function with a function pointer.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce html.h</title>
<updated>2008-03-18T07:13:10+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-02-23T21:45:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=b1f9b9c1459cb9a30ebf80721aff6ef788d1f891'/>
<id>b1f9b9c1459cb9a30ebf80721aff6ef788d1f891</id>
<content type='text'>
All html-functions can be quite easily separated from the rest of cgit, so
lets do it; the only issue was html_filemode which uses some git-defined
macros so the function is moved into ui-shared.c::cgit_print_filemode().

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All html-functions can be quite easily separated from the rest of cgit, so
lets do it; the only issue was html_filemode which uses some git-defined
macros so the function is moved into ui-shared.c::cgit_print_filemode().

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Compare string lengths when parsing the snapshot mask</title>
<updated>2007-12-02T23:39:20+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2007-12-02T23:39:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=2216fd6472fe183439df1a39c1c06974abc3f150'/>
<id>2216fd6472fe183439df1a39c1c06974abc3f150</id>
<content type='text'>
We used to rely on the result from strncmp() without comparing the length of
the strings involved. Even worse, any single-character format specifier would
enable zip-format due to the optional '.'-prefix since the length of the
mask then would become zero.

Noticed-by: Evan Martin &lt;sys@neugierig.org&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We used to rely on the result from strncmp() without comparing the length of
the strings involved. Even worse, any single-character format specifier would
enable zip-format due to the optional '.'-prefix since the length of the
mask then would become zero.

Noticed-by: Evan Martin &lt;sys@neugierig.org&gt;
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Set commit date on snapshot contents</title>
<updated>2007-11-11T12:16:43+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2007-11-11T12:14:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=5b75064a81f9fe8f8a446a4be050fe3dfcf52b89'/>
<id>5b75064a81f9fe8f8a446a4be050fe3dfcf52b89</id>
<content type='text'>
The testsuite revealed that cgit snapshots don't set any useful timestamp on
the files contained in the snapshot.

Cherry-picked-from: 2ff33a8a0405b420cd75e0e207c7efeecd6f130b
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The testsuite revealed that cgit snapshots don't set any useful timestamp on
the files contained in the snapshot.

Cherry-picked-from: 2ff33a8a0405b420cd75e0e207c7efeecd6f130b
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ui-snapshot: whitespace/formatting cleanup</title>
<updated>2007-07-23T21:12:11+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2007-07-23T20:51:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=1221adbb581e222cfe932fe72fded2d8613112d9'/>
<id>1221adbb581e222cfe932fe72fded2d8613112d9</id>
<content type='text'>
Introduce a #define for number of snapshot archive entries, move all decls
to function entrypoint, remove some trailing whitespace and reformat a few
lines.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduce a #define for number of snapshot archive entries, move all decls
to function entrypoint, remove some trailing whitespace and reformat a few
lines.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cgit_print_snapshot_links: use url to specify snapshot name</title>
<updated>2007-07-22T22:27:32+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2007-07-22T22:11:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=eb45342e735818b3c68cbab9b61b23e79ae74418'/>
<id>eb45342e735818b3c68cbab9b61b23e79ae74418</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>allow selective enabling of snapshots</title>
<updated>2007-07-21T16:00:53+00:00</updated>
<author>
<name>Michael Krelin</name>
<email>hacker@klever.net</email>
</author>
<published>2007-07-21T16:00:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=dc3c9b5bc48779f37f2fbcbadce8865eaf4a360e'/>
<id>dc3c9b5bc48779f37f2fbcbadce8865eaf4a360e</id>
<content type='text'>
 snapshot configuration parameter now can be a
 space/slash/comma/colon/semicolon/pipe-separated list of snaphot suffixes as
 listed in ui-snapshot.c

Signed-off-by: Michael Krelin &lt;hacker@klever.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 snapshot configuration parameter now can be a
 space/slash/comma/colon/semicolon/pipe-separated list of snaphot suffixes as
 listed in ui-snapshot.c

Signed-off-by: Michael Krelin &lt;hacker@klever.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>shorten snapshot names to repo basename</title>
<updated>2007-07-21T13:29:55+00:00</updated>
<author>
<name>Michael Krelin</name>
<email>hacker@klever.net</email>
</author>
<published>2007-07-21T13:29:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=97c025ae8ecf9764fd6996c81c51c3de4adb837c'/>
<id>97c025ae8ecf9764fd6996c81c51c3de4adb837c</id>
<content type='text'>
Signed-off-by: Michael Krelin &lt;hacker@klever.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Michael Krelin &lt;hacker@klever.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>added snapshot filename to the link</title>
<updated>2007-07-21T11:13:40+00:00</updated>
<author>
<name>Michael Krelin</name>
<email>hacker@klever.net</email>
</author>
<published>2007-07-21T11:13:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=0df096f6e146187e55e2203ea1c017442cc2c8c6'/>
<id>0df096f6e146187e55e2203ea1c017442cc2c8c6</id>
<content type='text'>
 - changed cgit_pageurl into cgit_fileurl with the filename parameter
 - rewritten cgit_pageurl as a wrapper around cgit_fileurl

Signed-off-by: Michael Krelin &lt;hacker@klever.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - changed cgit_pageurl into cgit_fileurl with the filename parameter
 - rewritten cgit_pageurl as a wrapper around cgit_fileurl

Signed-off-by: Michael Krelin &lt;hacker@klever.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>add plain uncompressed tar snapshort format</title>
<updated>2007-07-21T00:14:35+00:00</updated>
<author>
<name>Michael Krelin</name>
<email>hacker@klever.net</email>
</author>
<published>2007-07-21T00:14:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=86ca02231fc42a629c50abebcae3ea9d4d692979'/>
<id>86ca02231fc42a629c50abebcae3ea9d4d692979</id>
<content type='text'>
time to make available snapshots selectable

Signed-off-by: Michael Krelin &lt;hacker@klever.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
time to make available snapshots selectable

Signed-off-by: Michael Krelin &lt;hacker@klever.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>introduced .tar.bz2 snapshots</title>
<updated>2007-07-21T00:05:34+00:00</updated>
<author>
<name>Michael Krelin</name>
<email>hacker@klever.net</email>
</author>
<published>2007-07-21T00:05:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=18a99bdf879953307d6ae6eb56c2117a4c074b0d'/>
<id>18a99bdf879953307d6ae6eb56c2117a4c074b0d</id>
<content type='text'>
 - reworked write_tar_gzip_archive to handle arbitrary filter as a
   write_compressed_tar_archive
 - reformatted whitespaces in the said function to adhere to common cgit
   standards
 - added wrappers around write_compressed_tar_archive for .tar.gz and .tar.bz2
 - added a hint for vim to use 8 characters shift width by default

Signed-off-by: Michael Krelin &lt;hacker@klever.net&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
 - reworked write_tar_gzip_archive to handle arbitrary filter as a
   write_compressed_tar_archive
 - reformatted whitespaces in the said function to adhere to common cgit
   standards
 - added wrappers around write_compressed_tar_archive for .tar.gz and .tar.bz2
 - added a hint for vim to use 8 characters shift width by default

Signed-off-by: Michael Krelin &lt;hacker@klever.net&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>compress .tar.gz using gzip as a filter</title>
<updated>2007-07-20T18:58:23+00:00</updated>
<author>
<name>Michael Krelin</name>
<email>hacker@klever.net</email>
</author>
<published>2007-07-20T18:58:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=4a92cbb7fd1084764dfe9b97a163f1084c790b15'/>
<id>4a92cbb7fd1084764dfe9b97a163f1084c790b15</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>add support for snapshot tarballs</title>
<updated>2007-07-18T12:40:03+00:00</updated>
<author>
<name>Michael Krelin</name>
<email>hacker@klever.net</email>
</author>
<published>2007-07-18T12:40:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=f97c707a3b975d32910331f72783ec3044e3c0ee'/>
<id>f97c707a3b975d32910331f72783ec3044e3c0ee</id>
<content type='text'>
- reworked cgit_print_snapshot to use a list of supported archivers and pick
	one for the suffix supplied
- moved printing of snaphot links into ui-snapshot and make it iterate through
	the said list
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- reworked cgit_print_snapshot to use a list of supported archivers and pick
	one for the suffix supplied
- moved printing of snaphot links into ui-snapshot and make it iterate through
	the said list
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for snapshots</title>
<updated>2007-02-08T12:58:58+00:00</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2007-02-08T12:53:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.eugenetriguba.com/forks/cgit/commit/?id=ab2ab95f09994560f62fd631f07d3b6e3577aa6e'/>
<id>ab2ab95f09994560f62fd631f07d3b6e3577aa6e</id>
<content type='text'>
Make a link from the commit viewer to a snapshot of the corresponding tree.

Currently only zip-format is supported.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make a link from the commit viewer to a snapshot of the corresponding tree.

Currently only zip-format is supported.

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