Re: Display of directories that contain only one subdirectory

2016-08-08 Thread Jason A. Donenfeld
On Sun, Aug 7, 2016 at 5:12 PM, John Keeping wrote: > Jason, I think this is a nice feature to have and it's quite nicely > contained. What do you think about picking up this patch? Sure, will pick it up. > > (Patch is here in case you don't have the thread in your mailbox: >

Re: Display of directories that contain only one subdirectory

2016-08-07 Thread John Keeping
On Thu, Jul 14, 2016 at 08:12:09PM +0200, Erik Brangs wrote: > On 13.07.2016 21:49, John Keeping wrote: > > It turns out it's not too difficult, patch below. This is slightly > > different from Github's behaviour because it allows clicking on > > intermediate directories; it wouldn't be hard to co

Re: Display of directories that contain only one subdirectory

2016-08-07 Thread John Keeping
On Wed, Jul 13, 2016 at 06:43:06PM -0400, Jamie Couture wrote: > So what I was initially wasting my time worrying about was an insane > situation > where there are many empty directories with only one file at the end of the > tunnel. > > mkdir -p > why/would/anyone/do/this/what/possible/reason

Re: Display of directories that contain only one subdirectory

2016-07-14 Thread Erik Brangs
Hi, On 13.07.2016 21:49, John Keeping wrote: > It turns out it's not too difficult, patch below. This is slightly > different from Github's behaviour because it allows clicking on > intermediate directories; it wouldn't be hard to collect the full path > instead but I actually prefer this way of

Re: Display of directories that contain only one subdirectory

2016-07-13 Thread Jamie Couture
Ugh, hit enter too fast: So what I was initially wasting my time worrying about was an insane situation where there are many empty directories with only one file at the end of the tunnel. mkdir -p why/would/anyone/do/this/what/possible/reason/would/justify/such/a/deep/structure/with/nothing

Re: Display of directories that contain only one subdirectory

2016-07-13 Thread Jamie Couture
Was working on a solution when this came in. However, this looks much better than what I was trying to attempt. Gave it a spin. Works great. On Wednesday, 13 July 2016, John Keeping wrote: > On Wed, Jul 13, 2016 at 07:57:23PM +0200, Erik Brangs wrote: > > I use cgit via websites that use it to

Re: Display of directories that contain only one subdirectory

2016-07-13 Thread John Keeping
On Wed, Jul 13, 2016 at 07:57:23PM +0200, Erik Brangs wrote: > I use cgit via websites that use it to provide a repository browser, > i.e. I don't have my own deployment. IMHO it would be nice to get a > more comfortable navigation for directories that only contain one > subdirectory. For example,

Display of directories that contain only one subdirectory

2016-07-13 Thread Erik Brangs
Hi, I use cgit via websites that use it to provide a repository browser, i.e. I don't have my own deployment. IMHO it would be nice to get a more comfortable navigation for directories that only contain one subdirectory. For example, for a path like "contrib/hooks" at https://git.zx2c4.com/cgit