<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cgit, branch rm/namespace</title>
<subtitle>A hyperfast web frontend for git repositories written in C.</subtitle>
<id>https://git.zx2c4.com/cgit/atom/?h=rm%2Fnamespace</id>
<link rel='self' href='https://git.zx2c4.com/cgit/atom/?h=rm%2Fnamespace'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/'/>
<updated>2016-07-13T19:09:37Z</updated>
<entry>
<title>Add documentation for repo.agefile</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-07-02T14:23:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=2a20425f4e76e378c138094c79b78aa476c019b5'/>
<id>urn:sha1:2a20425f4e76e378c138094c79b78aa476c019b5</id>
<content type='text'>
Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Update contrib script to update agefiles per namespace</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-30T20:14:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=63a5fe0a3d05c474167c2f6d5c995d4433eca660'/>
<id>urn:sha1:63a5fe0a3d05c474167c2f6d5c995d4433eca660</id>
<content type='text'>
This uses the same age file as before if it's in the root namespace,
but puts the agefile in info/web/namespaced/$GIT_NAMESPACE/last-modified.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<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='https://git.zx2c4.com/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>Add documentation for repo.namespace</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-07-02T14:23:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=bb2391a96b2b120ba82d797fcfb4b21e045ace06'/>
<id>urn:sha1:bb2391a96b2b120ba82d797fcfb4b21e045ace06</id>
<content type='text'>
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='https://git.zx2c4.com/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>Add namespace support to dumb-clone</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-25T22:24:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=c8d5732367593ee4a29cd7c2f05fc17a748db9c4'/>
<id>urn:sha1:c8d5732367593ee4a29cd7c2f05fc17a748db9c4</id>
<content type='text'>
This requires namespacing the HEAD symbolic ref
and the list of refs.

Sending HEAD required some tweaking,
since the file itself refers to a namespaced ref,
but we want to provide the ref with its namespace stripped off.

Signed-off-by: Richard Maw &lt;richard.maw@gmail.com&gt;
</content>
</entry>
<entry>
<title>Only display refs in 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-25T22:04:20Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=44efabfc5e36a92f060bcdb470fcf4a1814579f9'/>
<id>urn:sha1:44efabfc5e36a92f060bcdb470fcf4a1814579f9</id>
<content type='text'>
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='https://git.zx2c4.com/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>Add cgit_for_each_namespaced_ref_in helper</title>
<updated>2016-07-13T19:09:37Z</updated>
<author>
<name>Richard Maw</name>
<email>richard.maw@gmail.com</email>
</author>
<published>2016-06-25T21:49:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/cgit/commit/?id=5817a8f70370c0d41950fb2e7516389866da89b7'/>
<id>urn:sha1:5817a8f70370c0d41950fb2e7516389866da89b7</id>
<content type='text'>
libgit has a for_each_namespaced_ref,
but lacks equivalents for just branches, tags or remotes.

Rather than implementing all of those helpers,
it's more convenient to implement just one
that prepends the namespace to the provided ref base.

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='https://git.zx2c4.com/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>
</feed>
