Default diff options

2014-02-24 Thread Ferry Huberts

Hi guys,

I'd like to be able to configure the default diff options to be more 
like what I always do with gitk: 6 lines of context (default) and ignore 
whitespace (not default but makes the changes way more readable.


There are no cgitrc options for this (as far as I could see) and looking 
through the code I saw no easy way to change the default for 'ignore 
whitespace'. The number of context lines I could easily changed, but 
it's hard-coded.


Can this be added please?


--
Ferry Huberts
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


filter questions

2014-02-24 Thread Kevin Fenzi
Greetings. 

I took a look at the filters in the recent 0.10 release and had a few
minor questions. ;) 

First, the email-gravatar.lua script seems to require luacrypto? 
( http://luacrypto.luaforge.net/ ) This is pretty ancient and not
packaged in Fedora at least. Is there some other more supportable
library that could be used?

lua-md5 seems better if you just need a md5? 
http://www.keplerproject.org/md5/

Also, would it be possible to optionally use libravatar? They are free
software, where gravatar is not. ;( 
http://wiki.libravatar.org/description/

Next, the email-gravatar.py script requires python3? 
Would it be possible to also have a python2 compatible version? Older
systems are still not using python3. 

Finally the highlight script has 2 different calls for version2 or 3 of
highlight. Perhaps we could move that to a build time check? Or even a
runtime one? or just split them into 2 scripts? 

Thanks for all your work, cgit is great!

kevin


signature.asc
Description: PGP signature
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: filter questions

2014-02-24 Thread Ferry Huberts



On 24/02/14 20:01, Kevin Fenzi wrote:

Greetings.

I took a look at the filters in the recent 0.10 release and had a few
minor questions. ;)

First, the email-gravatar.lua script seems to require luacrypto?
( http://luacrypto.luaforge.net/ ) This is pretty ancient and not
packaged in Fedora at least. Is there some other more supportable
library that could be used?

lua-md5 seems better if you just need a md5?
http://www.keplerproject.org/md5/

Also, would it be possible to optionally use libravatar? They are free
software, where gravatar is not. ;(
http://wiki.libravatar.org/description/

Next, the email-gravatar.py script requires python3?
Would it be possible to also have a python2 compatible version? Older
systems are still not using python3.

Finally the highlight script has 2 different calls for version2 or 3 of
highlight. Perhaps we could move that to a build time check? Or even a
runtime one? or just split them into 2 scripts?


I did put a check in the script but Lars - the original maintainer - 
didn't like that and made it this way.

We could put it back if the current maintainers agree.

Also, if you use highlight you'll want to add some highlight css to your 
cgit css. See my tracCGit spec file for an example: 
https://github.com/reposerf/tracCGit/blob/master/trac-CGit-plugin/trac-CGit-plugin.spec#L36




Thanks for all your work, cgit is great!

kevin



___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit



--
Ferry Huberts
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit