[PATCH] Remove no-op link from submodule entries

2015-03-05 Thread Lukas Fleischer
Instead of linking to the current page (href='#'), do not add a link to a submodule entry at all if the module-link setting is not used. Signed-off-by: Lukas Fleischer c...@cryptocrack.de --- cgit.css| 2 +- ui-shared.c | 41 - 2 files changed, 25

Re: [PATCH] Support .git/category files

2015-03-05 Thread John Keeping
On Thu, Mar 05, 2015 at 06:15:04PM +0100, Jan-Marek Glogowski wrote: Gitweb reads .git/category to set a repository section for grouping. This handles the file in the same way a .git/description file is handled. The file section takes precedence over the ctx.cfg.section_from_path setting.

Re: [PATCH] Support .git/category files

2015-03-05 Thread Lukas Fleischer
On Thu, 05 Mar 2015 at 18:15:04, Jan-Marek Glogowski wrote: Gitweb reads .git/category to set a repository section for grouping. This handles the file in the same way a .git/description file is handled. The file section takes precedence over the ctx.cfg.section_from_path setting. ---

Re: [PATCH] Support .git/category files

2015-03-05 Thread Jan-Marek Glogowski
Am 05.03.2015 um 18:38 schrieb John Keeping: What's the advantage of this over using enable-git-config=1 and cgit.section (we even support gitweb.section as an alias)? Well - I have 100+ repositories, which already have the category file. There is no advantage over any other method. Am

Re: [PATCH] Support .git/category files

2015-03-05 Thread John Keeping
On Thu, Mar 05, 2015 at 06:50:47PM +0100, Jan-Marek Glogowski wrote: Am 05.03.2015 um 18:38 schrieb John Keeping: What's the advantage of this over using enable-git-config=1 and cgit.section (we even support gitweb.section as an alias)? Well - I have 100+ repositories, which already have

Description for section and link for repos

2015-03-05 Thread Pablo Rauzy
Hello, I'm a new cgit user (I expect there will be a lot of us in the coming weeks, with Gitorious shuting down), and I have two questions/requests. But first, I would like to say that cgit is awesome it was easy to install and run, and has a very small footprint, thanks a lot to the developers

[PATCH] Support .git/category files

2015-03-05 Thread Jan-Marek Glogowski
Gitweb reads .git/category to set a repository section for grouping. This handles the file in the same way a .git/description file is handled. The file section takes precedence over the ctx.cfg.section_from_path setting. --- cgit.c | 2 +- cgit.h | 1 + scan-tree.c | 20

Support for submodules in tree view?

2015-03-05 Thread Dunnigan, Terrence J
Hi all, We are using cgit 0.10.1. Some of our repos have submodules, and when I look at a tree view I see the name of the submodule with its current hash, e.g. m- Utilities @ 350bc94 The submodule names are all hyperlinks, but the actual link is just a #. So clicking on it doesn't do

Re: Support for submodules in tree view?

2015-03-05 Thread John Keeping
On Thu, Mar 05, 2015 at 06:19:31PM +, Dunnigan, Terrence J wrote: We are using cgit 0.10.1. Some of our repos have submodules, and when I look at a tree view I see the name of the submodule with its current hash, e.g. m- Utilities @ 350bc94 The submodule names are all

Re: Support for submodules in tree view?

2015-03-05 Thread Lukas Fleischer
On Thu, 05 Mar 2015 at 19:25:53, John Keeping wrote: On Thu, Mar 05, 2015 at 06:19:31PM +, Dunnigan, Terrence J wrote: We are using cgit 0.10.1. Some of our repos have submodules, and when I look at a tree view I see the name of the submodule with its current hash, e.g. m-

Re: Support for submodules in tree view?

2015-03-05 Thread John Keeping
On Thu, Mar 05, 2015 at 07:31:01PM +0100, Lukas Fleischer wrote: On Thu, 05 Mar 2015 at 19:25:53, John Keeping wrote: On Thu, Mar 05, 2015 at 06:19:31PM +, Dunnigan, Terrence J wrote: We are using cgit 0.10.1. Some of our repos have submodules, and when I look at a tree view I see the

Re: Description for section and link for repos

2015-03-05 Thread Pablo Rauzy
On 2015-03-05, John Keeping wrote: On Thu, Mar 05, 2015 at 10:51:09AM +0100, Pablo Rauzy wrote: What I was looking for is the possibility to for instance make cgit using a file called description in the directory that it makes a section as description of that section. I don't think this has

Re: Description for section and link for repos

2015-03-05 Thread John Keeping
On Thu, Mar 05, 2015 at 10:51:09AM +0100, Pablo Rauzy wrote: Hello again, and thanks for your quick response. On 2015-03-05, John Keeping wrote: On Thu, Mar 05, 2015 at 09:22:55AM +0100, Pablo Rauzy wrote: My first question is about sections. I would like to be able to add a title and a

Re: [PATCH] Simplify commit and tag parsing

2015-03-05 Thread Jason A. Donenfeld
This commit breaks ui-tag. The first few lines of tag messages are cut off. ___ CGit mailing list CGit@lists.zx2c4.com http://lists.zx2c4.com/mailman/listinfo/cgit

Re: [PATCH] Simplify commit and tag parsing

2015-03-05 Thread John Keeping
On Thu, Mar 05, 2015 at 11:46:55AM +0100, Jason A. Donenfeld wrote: This commit breaks ui-tag. The first few lines of tag messages are cut off. It looks like parse_user() consumes the trailing LF on the user line, so next_header_line() ends up skipping the blank line at the end of the header. I

Re: Description for section and link for repos

2015-03-05 Thread John Keeping
On Thu, Mar 05, 2015 at 09:22:55AM +0100, Pablo Rauzy wrote: My first question is about sections. I would like to be able to add a title and a little description for each section, just like I can with the cgit.desc configuration for each the git repos. Example : http://clandest.in/sensi

Re: Description for section and link for repos

2015-03-05 Thread Pablo Rauzy
Hello again, and thanks for your quick response. On 2015-03-05, John Keeping wrote: On Thu, Mar 05, 2015 at 09:22:55AM +0100, Pablo Rauzy wrote: My first question is about sections. I would like to be able to add a title and a little description for each section, just like I can with the

[PATCH 2/2] Drop return value from parse_user()

2015-03-05 Thread Lukas Fleischer
In commit 936295c (Simplify commit and tag parsing, 2015-03-03), the commit and tag parsing code was refactored. This broke tag messages in ui-tag since the line after the tagger header was erroneously skipped. Rework parse_user() and skip the line manually outside parse_user(). Signed-off-by:

[PATCH 1/2] Remove leading newline characters from tag messages

2015-03-05 Thread Lukas Fleischer
Fixes a regression introduced in commit 936295c (Simplify commit and tag parsing, 2015-03-03). Signed-off-by: Lukas Fleischer c...@cryptocrack.de --- parsing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parsing.c b/parsing.c index 0db181b..dcaf2b3 100644 --- a/parsing.c +++

[ANNOUNCE] CGIT v0.11.1 Released

2015-03-05 Thread Jason A. Donenfeld
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi folks, CGit 0.11.1 is now available, with some important bug fixes, as well as tweaks done for the new gitweb.gentoo.org site. == CGit on the Web == * homepage: http://git.zx2c4.com/cgit/about/ * git repository: http://git.zx2c4.com/cgit/ *