<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/ui-snapshot.c, branch v0.8.2.2</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/ui-snapshot.c?h=v0.8.2.2</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/ui-snapshot.c?h=v0.8.2.2'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2009-03-15T07:57:33Z</updated>
<entry>
<title>ui-snapshot: avoid segfault when no filename is specified</title>
<updated>2009-03-15T07:57:33Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-03-15T07:57:33Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=6fddad7251021b307c8a3f70fdd2aa04c3f74eaa'/>
<id>urn:sha1:6fddad7251021b307c8a3f70fdd2aa04c3f74eaa</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'snapshot-fixes'</title>
<updated>2009-01-11T11:22:46Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-01-11T11:22:46Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=aa60ae12cb3db965b3fe7239424cab92175b8343'/>
<id>urn:sha1:aa60ae12cb3db965b3fe7239424cab92175b8343</id>
<content type='text'>
</content>
</entry>
<entry>
<title>return 404 if snapshot is not found</title>
<updated>2008-12-28T09:09:18Z</updated>
<author>
<name>Natanael Copa</name>
<email>natanael.copa@gmail.com</email>
</author>
<published>2008-12-02T10:31:34Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=c4b45de33458f66f5a768530d738f6c28e56cf49'/>
<id>urn:sha1:c4b45de33458f66f5a768530d738f6c28e56cf49</id>
<content type='text'>
Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
</content>
</entry>
<entry>
<title>ui-snapshot.c: change mime-type for tar.gz and tar.bz2</title>
<updated>2008-12-26T10:33:59Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-12-26T10:33:59Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=ed77b2e0bff52a44ce1e5bd64e1c784a9c2fa82f'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>ui-snapshot: improve extraction of revision from snapshot name</title>
<updated>2008-12-01T18:13:44Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-12-01T18:13:44Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=4b4f8d1256669bf9838e17f83a070de0ec09a699'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Set prefix in snapshots when using dwimmery</title>
<updated>2008-11-30T12:39:53Z</updated>
<author>
<name>Natanael Copa</name>
<email>natanael.copa@gmail.com</email>
</author>
<published>2008-11-30T05:49:07Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=314d9ea5a3bc60ec518e314bb0bf8072123dc08f'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>ui-snapshot: add dwimmery</title>
<updated>2008-10-11T18:09:42Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-11T18:09:42Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=ed7ff095ca467cdc4c8a1a1459847d68e50c9b91'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>ui-snapshot.c: specify archiver_args.baselen</title>
<updated>2008-10-05T11:13:03Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-10-05T11:13:03Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=204669ff4a4028a82cc48e9319632595ba3ff703'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Add ui-shared.h</title>
<updated>2008-03-24T15:50:57Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-03-24T15:50:57Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=a4d1ca1dc6ff8171694d9e2280b6075a1beced0c'/>
<id>urn:sha1: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>
</entry>
<entry>
<title>Refactor snapshot support</title>
<updated>2008-03-24T15:00:27Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2008-03-24T15:00:27Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=f34478cbe0214a201e7ecef3e79ed6c957b7beee'/>
<id>urn:sha1: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>
</entry>
</feed>
