<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit/cgit.c, branch rm/namespace</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>http://git.cetero.st/cgit/atom/cgit.c?h=rm%2Fnamespace</id>
<link rel='self' href='http://git.cetero.st/cgit/atom/cgit.c?h=rm%2Fnamespace'/>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/'/>
<updated>2016-07-13T19:09:37Z</updated>
<entry>
<title>Allow agefile to be set per-repository</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-30T20:06:46Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=aa69de50d3c0ef30a2f97e95f0582445890d027b'/>
<id>urn:sha1:aa69de50d3c0ef30a2f97e95f0582445890d027b</id>
<content type='text'>
This adds "repo.agefile", since namespaced repositories share the same files,
and we'd like to be able to see the ages of the refs for each namespace.

Whatever the git server uses for updating the age file must be namespace aware
and must write the age file to a path consistent with "repo.agefile".

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Display notes from namespace</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-25T23:20:01Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=5c6966b0c82b019b2b09c1eedbca2dbac8d7c9b9'/>
<id>urn:sha1:5c6966b0c82b019b2b09c1eedbca2dbac8d7c9b9</id>
<content type='text'>
We must not leave it at its default behaviour,
as that results in notes from the root namespace being used
and ignoring notes from the current namespace,
since it is not namespace aware.

We can handle this by instructing it to not load the default refs,
and providing a set of extra refs to use.

The provided extra refs are globs rather than ref names,
so we should escape them to be sure.

We get an annoying warning if the provided ref does not exist,
so we check whether the ref exists before attempting to provide it.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Find the default branch based on the contents of the namespace</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-25T21:55:44Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=f1984bb2367c14ca86a6afbdd87fa6280cd1162b'/>
<id>urn:sha1:f1984bb2367c14ca86a6afbdd87fa6280cd1162b</id>
<content type='text'>
The find_current_ref callback does not need to be modified
to strip off the namespace prefix,
since the for_each_ref functions don't include the base ref prefix.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Guess the default branch based on current namespace</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-25T21:42:33Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=d25bfb99f9d1f02dcaf1cae3ffce35b9ea5471fd'/>
<id>urn:sha1:d25bfb99f9d1f02dcaf1cae3ffce35b9ea5471fd</id>
<content type='text'>
resolve_ref_unsafe() can't be told to be namespace aware,
so we need to prepend the namespace beforehand.

Additionally, we need to add the RESOLVE_REF_NO_RECURSE flag,
since otherwise if the commit that is pointed to exists in the root namespace,
it will opt to return that rather than the value in the namespace,
presumably preferring shorter ref names to longer ones.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Set GIT_NAMESPACE when repo.namespace is provided</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-25T19:51:36Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=a76460c5ed75ca950c18373990a2135c895daad4'/>
<id>urn:sha1:a76460c5ed75ca950c18373990a2135c895daad4</id>
<content type='text'>
This causes any namespace-aware code
to only handle refs under that namespace.

Currently this doesn't do much
as the only namespace aware code is in recieve-pack and upload-pack,
which are not handled by CGit.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Print out parsed namespace on request</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-25T19:54:07Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=21637776234574c4bbedf45af7f59663b46458bd'/>
<id>urn:sha1:21637776234574c4bbedf45af7f59663b46458bd</id>
<content type='text'>
This is not strictly necessary,
as we do not have any way to generate namespace entries from a scan-path,
but I'd rather not leave this as a surprise
to someone who comes up with a good namespace discovery mechanism.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Parse repo.namespace</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-25T19:38:41Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=7a76691acf749e53c9d8d3ddaa558259d5567d34'/>
<id>urn:sha1:7a76691acf749e53c9d8d3ddaa558259d5567d34</id>
<content type='text'>
This contains the unexpanded name of the namespace
rather than the base ref of the namespace,
since the git namespace mechanism works by setting GIT_NAMESPACE
and on the first call to get_git_namespace() it gets expanded.

We need to save this for a later call to prepare_repo_cmd,
rather than trying to process it here,
since we can only do it once,
and we have other uses for the unexpanded name.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Add a wrapper for get_sha1 called cgit_get_sha1</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-25T19:23:51Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=b2ac89127af9dde5c3addbd3e00eedd9f498cfab'/>
<id>urn:sha1:b2ac89127af9dde5c3addbd3e00eedd9f498cfab</id>
<content type='text'>
This will later be changed to include namespace resolution,
but the call sites are changed now to keep the changes small.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fix qry.head leak on error</title>
<updated>2016-07-11T23:06:04Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-07-02T19:28:10Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=ff9893ac8192579a00dd4c73ddff18ab232099a6'/>
<id>urn:sha1:ff9893ac8192579a00dd4c73ddff18ab232099a6</id>
<content type='text'>
This is run soon before exiting so it wasn't leaked for long.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Hosted on HTTPS now</title>
<updated>2016-06-07T12:49:35Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2016-02-24T17:01:42Z</published>
<link rel='alternate' type='text/html' href='http://git.cetero.st/cgit/commit/?id=d88ec849c4f7af41a8a41af1a4f79a2b4d41717a'/>
<id>urn:sha1:d88ec849c4f7af41a8a41af1a4f79a2b4d41717a</id>
<content type='text'>
</content>
</entry>
</feed>
