Re: Adding more namespace support to git

2016-08-24 Thread Jeff King
On Sat, Aug 20, 2016 at 08:07:00PM +0100, Richard wrote: > Because git is not namespace aware for anything but git-upload-pack > and git-receive-pack, I've had to implement namespace parsing in cgit > for listing branches, showing logs, displaying notes and commit > decorations. It might be more

Re: Adding more namespace support to git

2016-08-22 Thread Richard
On 22 August 2016 at 20:16, Josh Triplett wrote: > On Mon, Aug 22, 2016 at 07:36:31PM +0100, Richard wrote: >> On 21 Aug 2016 15:07, "Josh Triplett" wrote: >> > I'd like to see it work more automatically than that. Perhaps a >> > separate environment variable to set the client-side namespace? >>

Re: Adding more namespace support to git

2016-08-22 Thread Josh Triplett
On Mon, Aug 22, 2016 at 07:36:31PM +0100, Richard wrote: > On 21 Aug 2016 15:07, "Josh Triplett" wrote: > > I'd like to see it work more automatically than that. Perhaps a > > separate environment variable to set the client-side namespace? > > How about a config option? That could be set globall

Re: Adding more namespace support to git

2016-08-21 Thread Josh Triplett
On Sun, Aug 21, 2016 at 12:30:16PM +0100, Richard wrote: > On 21 August 2016 at 03:05, Josh Triplett wrote: > > Unfortunately, I think at this point, GIT_NAMESPACE has to exclusively > > refer to the namespace for the remote end, to avoid breakage. Which > > means any automatic pervasive support

Re: Adding more namespace support to git

2016-08-21 Thread Richard
On 21 August 2016 at 03:05, Josh Triplett wrote: > On Sat, Aug 20, 2016 at 08:07:00PM +0100, Richard wrote: >> Since when upload-pack and receive-pack run hooks they leave GIT_NAMESPACE >> set >> there are hook scripts that expect that the current namespace is ignored, >> so commands that now wan

Re: Adding more namespace support to git

2016-08-20 Thread Josh Triplett
On Sat, Aug 20, 2016 at 08:07:00PM +0100, Richard wrote: > I work on a git server called gitano. > We've been using and recommending cgit for the web UI. > > I've been working on adding git namespace support to both, > so that we can separate administrative branches from code branches. > > Becaus

Adding more namespace support to git

2016-08-20 Thread Richard
I work on a git server called gitano. We've been using and recommending cgit for the web UI. I've been working on adding git namespace support to both, so that we can separate administrative branches from code branches. Because git is not namespace aware for anything but git-upload-pack and git-r