cgit builds with link time optimization

2016-02-23 Thread Jason A. Donenfeld
For the ricers out there, this might be desirable:

https://git.zx2c4.com/cgit/tree/cgit.conf?h=jd/zx2c4-deployment
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: [PATCH 1/1] css: use less blurry icon for external link

2016-02-23 Thread Christian Hesse
"Jason A. Donenfeld"  on Tue, 2016/02/23 15:18:
> Thanks. I did actually do this myself in inkscape from an svg
> representation of the font, but I must have hit the anti aliasing
> button or something. Also, the opacity is much better, thanks.
> 
> I merged this, and also ran the png through pngcrush before.

Did pngcrush compress more? I tried optipng, but it did not change the file.
-- 
main(a){char*c=/*Schoene Gruesse */"B?IJj;MEH"
"CX:;",b;for(a/*Best regards my address:*/=0;b=c[a++];)
putchar(b-1/(/*Chriscc -ox -xc - && ./x*/b/42*2-3)*42);}


pgpv93liCs4Z4.pgp
Description: OpenPGP digital signature
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: cgit: [PATCH] timegm() compat for non-Linux and non-BSD

2016-02-23 Thread Jason A. Donenfeld
Thanks for posting that thread. I'd forgotten about that. I think my
views there are still solid:

We either use the hack from the manpage (which is what Brad's patch
does), or, so that we don't have to make compatibility infrastructure,
we simply work around this function so that we don't need it. Seeing
as it's only used in one place, I dont think this will be a problem.
I'll gladly accept a patch that fixes that.
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: [PATCH 1/2] ui-shared: add homepage to tabs

2016-02-23 Thread John Keeping
On Tue, Feb 23, 2016 at 03:26:28PM +0100, Jason A. Donenfeld wrote:
> On Tue, Feb 23, 2016 at 7:49 AM, Peter Colberg  wrote:
> > Would you reconsider opening the homepage link in the current tab
> > by default? This way visitors have the option to open the homepage
> > in new tab if they like (e.g., using middle-click), but they are not
> > forced to do so.
> 
> As I understand it, this is one of those things where people who
> learned HTML in the 90s love target=_blank, but Web 9.0 hipsters now
> all deplore target=_blank, for good reasons probably, and write
> articles in markdown decrying the use.  Unfortunately, I'm one of
> those 90s luddites. So...
> 
> Does anybody have strong opinions one way or another about this? I'm
> happy to get rid of target=_blank if others care about this too.

I prefer being in control of where links open and get annoyed when it
seems like nothing has happened and I have to hunt for a new tab so I'm
with Peter in favour of removing it.
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: why no process info when cloning

2016-02-23 Thread Jason A. Donenfeld
On Tue, Feb 23, 2016 at 10:45 AM, John Keeping  wrote:
> It's because CGit only supports the dumb HTTP protocol whereas GitHub
> supports the smart protocol.  git-http-backend(1) describes how to set
> up a webserver for to support the smart protocol.
>
> [aside: given the inefficiency of the dumb HTTP protocol I wonder if we
> should mark this features as deprecated in the CGit documentation, or at
> least add a WARNING to it.]

Rather than marking this as depreciated - this very useful feature of
cgit - since we share source with git, wouldn't it be possible to
integrate the smart protocol?
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: [pass] Killing plaintext git:// in favor of https:// cloning

2016-02-23 Thread Jason A. Donenfeld
Yes, releases are. Obviously this conversation extends to much more
than releases, though. I sign tags too:
https://git.zx2c4.com/cgit/tag/?h=v0.12
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: [PATCH 1/1] css: use less blurry icon for external link

2016-02-23 Thread Jason A. Donenfeld
According the the FSF, we're allowed to distribute parts of it as we
are doing alongside cgit, without changing the status of cgit.
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: [PATCH 1/1] css: use less blurry icon for external link

2016-02-23 Thread Jason A. Donenfeld
Thanks. I did actually do this myself in inkscape from an svg
representation of the font, but I must have hit the anti aliasing
button or something. Also, the opacity is much better, thanks.

I merged this, and also ran the png through pngcrush before.
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Jenkins build is back to normal : cgit-master #21 - origin/master - 1892cd9

2016-02-23 Thread Pelagic Jenkins (Public)
See 

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


Re: [pass] Killing plaintext git:// in favor of https:// cloning

2016-02-23 Thread Jason A. Donenfeld
On Tue, Feb 23, 2016 at 2:53 PM, Brian Minton  wrote:
> Certainly got can sign individual tags with an OpenPGP key. Each commit is
> also hashed and the hashes are known. If you sign every commit, or at least
> every release, the code can't be tampered with. This is the workflow of, for
> instance, the Linux kernel.

False. Commits in Linux development are not routinely signed.
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Build failed in Jenkins: cgit-master-coverity #11 - origin/master - 438c038

2016-02-23 Thread Pelagic Jenkins (Public)
See 

Changes:

[Jason] git: update to v2.7.2

[Jason] md2html: Do syntax highlighting too

--
[...truncated 570 lines...]
Generating catalog po/es.msg
msgfmt --statistics --tcl po/es.po -l es -d po/
184 translated messages, 46 fuzzy translations, 77 untranslated messages.
Generating catalog po/sv.msg
msgfmt --statistics --tcl po/sv.po -l sv -d po/
311 translated messages.
Generating catalog po/fr.msg
msgfmt --statistics --tcl po/fr.po -l fr -d po/
263 translated messages, 27 fuzzy translations, 17 untranslated messages.
Generating catalog po/it.msg
msgfmt --statistics --tcl po/it.po -l it -d po/
274 translated messages, 17 fuzzy translations, 16 untranslated messages.
Generating catalog po/ja.msg
msgfmt --statistics --tcl po/ja.po -l ja -d po/
311 translated messages.
Generating catalog po/pt_br.msg
msgfmt --statistics --tcl po/pt_br.po -l pt_br -d po/
279 translated messages, 16 fuzzy translations, 12 untranslated messages.
Generating catalog po/de.msg
msgfmt --statistics --tcl po/de.po -l de -d po/
278 translated messages, 17 fuzzy translations, 12 untranslated messages.
SUBDIR perl
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/I18N.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/SVN/Ra.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/SVN/Editor.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/SVN/Memoize/YAML.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/SVN/Migration.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/SVN/Log.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/SVN/Prompt.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/SVN.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/SVN/Utils.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/IndexInfo.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/SVN/Fetcher.pm
"/usr/bin/perl" -pe "s<\Q++LOCALEDIR++\E>" 
blib/lib/Git/SVN/GlobSpec.pm
Manifying 8 pod documents
SUBDIR templates
MSGFMT po/build/locale/pt_PT/LC_MESSAGES/git.mo
306 translated messages, 687 untranslated messages.
MSGFMT po/build/locale/ko/LC_MESSAGES/git.mo
2477 translated messages.
MSGFMT po/build/locale/vi/LC_MESSAGES/git.mo
2477 translated messages.
MSGFMT po/build/locale/is/LC_MESSAGES/git.mo
14 translated messages.
MSGFMT po/build/locale/ca/LC_MESSAGES/git.mo
2477 translated messages.
MSGFMT po/build/locale/ru/LC_MESSAGES/git.mo
2477 translated messages.
MSGFMT po/build/locale/bg/LC_MESSAGES/git.mo
2477 translated messages.
MSGFMT po/build/locale/sv/LC_MESSAGES/git.mo
2477 translated messages.
MSGFMT po/build/locale/fr/LC_MESSAGES/git.mo
2477 translated messages.
MSGFMT po/build/locale/it/LC_MESSAGES/git.mo
716 translated messages, 350 untranslated messages.
MSGFMT po/build/locale/de/LC_MESSAGES/git.mo
2477 translated messages.
MSGFMT po/build/locale/zh_CN/LC_MESSAGES/git.mo
2477 translated messages.
CC test-chmtime.o
LINK test-chmtime
CC test-ctype.o
LINK test-ctype
CC test-config.o
LINK test-config
CC test-date.o
LINK test-date
CC test-delta.o
LINK test-delta
CC test-dump-cache-tree.o
LINK test-dump-cache-tree
CC test-dump-split-index.o
LINK test-dump-split-index
CC test-dump-untracked-cache.o
LINK test-dump-untracked-cache
CC test-genrandom.o
LINK test-genrandom
CC test-hashmap.o
LINK test-hashmap
CC test-index-version.o
LINK test-index-version
CC test-line-buffer.o
LINK test-line-buffer
CC test-match-trees.o
LINK test-match-trees
CC test-mergesort.o
LINK test-mergesort
CC test-mktemp.o
LINK test-mktemp
CC test-parse-options.o
LINK test-parse-options
CC test-path-utils.o
LINK test-path-utils
CC test-prio-queue.o
LINK test-prio-queue
CC test-read-cache.o
LINK test-read-cache
CC test-regex.o
LINK test-regex
CC test-revision-walking.o
LINK test-revision-walking
CC test-run-command.o
LINK test-run-command
CC test-scrap-cache-tree.o
LINK test-scrap-cache-tree
CC test-sha1.o
LINK test-sha1
CC test-sha1-array.o
LINK test-sha1-array
CC test-sigchain.o
LINK test-sigchain
CC test-string-list.o
LINK test-string-list
CC test-submodule-config.o
LINK test-submodule-config
CC test-subprocess.o
LINK test-subprocess
CC test-svn-fe.o
LINK test-svn-fe
CC test-urlmatch-normalization.o
LINK test-urlmatch-normalization
CC test-wildmatch.o
LINK test-wildmatch
GEN bin-wrappers/git
GEN bin-wrappers/git-upload-pack
GEN bin-wrappers/git-receive-pack
GEN bin-wrappers/git-upload-archive
GEN bin-wrappers/git-shell
GEN bin-wrappers/git-cvsserver
GEN bin-wrappers/test-chmtime
GEN 

[PATCH 1/1] css: replace icon for external link with one from wikipedia

2016-02-23 Thread Christian Hesse
From: Christian Hesse 

This file is licensed with GPLv2 or later, so we should be fine
using it.

https://commons.wikimedia.org/wiki/File:Icon_External_Link.png
Signed-off-by: Christian Hesse 
---
 cgit.css | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cgit.css b/cgit.css
index 50f6587..2826c8f 100644
--- a/cgit.css
+++ b/cgit.css
@@ -86,7 +86,8 @@ div#cgit table.tabs td a.active {
 }
 
 div#cgit table.tabs a[href^="http://"]:after, div#cgit table.tabs 
a[href^="https://"]:after {
-   content: 
url(data:image/png;base64,iVBORw0KGgoNSUhEUgoKCAQnOwc2AnNCSVQICFXsRgQJcEhZcwAAABQUAVyMgXwZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaeklEQVQI12NoYCu3q3ABwXL98vTy/0D4jaF8XXldRRoYejAwlu8BCTOU72SAg4q08j/le0GC22BC5anlfyrSGBiBGCZYllz+pywLJg8WLOMtf1GeCjRgI5IgSBhMboUIHq40r1CCQrfyDRAV6uXdZTMhsKKlVIIBFwAAVeg4KFYK95cASUVORK5CYII=);
+   /* 
https://upload.wikimedia.org/wikipedia/commons/6/64/Icon_External_Link.png */
+   content: 
url(data:image/png;base64,iVBORw0KGgoNSUhEUgwMCAYAAABWdVznV0lEQVR4Xq2QwQ2AAAwC3cmd2Kk7sRP64CEJ9qOX8OPatMc/QKppnEPhTmJh23CLiwAqIw21CybKQ28qQi37WGFYBJcwfJQpP8LlEHKyZMF0IdmF13zlAjZ/6H4wb+mUAElFTkSuQmCC);
margin: 0 0 0 5px;
 }
 
-- 
2.7.1

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


Re: [PATCH 1/1] css: use less blurry icon for external link

2016-02-23 Thread John Keeping
On Tue, Feb 23, 2016 at 11:14:39AM +0100, Christian Hesse wrote:
> John Keeping  on Tue, 2016/02/23 10:07:
> > On Tue, Feb 23, 2016 at 10:47:25AM +0100, Christian Hesse wrote:
> > > Your mileage may vary, but for me the old icon looks blurry. The new
> > > one is character 0xf08e from OTF font awsome in size 10.
> > > The icon color is black, gray level is adjusted via opacity.  
> > 
> > What's the licensing status of individual glyphs from Font Awesome?
> > IANAL but my reading of the OFL is that it's not compatible with the
> > GPL.
> 
> What we have is the icon from awesome font, no?
> Probably scaled down from one of the example images?
> 
> http://fortawesome.github.io/Font-Awesome/icon/external-link/

I didn't realise that, I pointed at Wikipedia when I suggested using an
icon in CSS :-)

There's a comment on the FontAwesome GitHub repo [1] that gives a lot of
sources indicating that the OFL is not compatible with the GPL so I
think we should be using something else here, at least in the main
distribution.  If individual sites want to do something different that's
their choice.

[1] 
https://github.com/FortAwesome/Font-Awesome/issues/1124#issuecomment-28703032

> > The nice thing about the icon from Wikipedia is that it's already
> > licensed under the GPLv2 so we don't have to worry about whether it's
> > compatible (although it might be a good idea to credit the source in a
> > comment).
> 
> The wikipedia icon looks different.
> 
> https://commons.wikimedia.org/wiki/File:Icon_External_Link.png
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: [PATCH 1/1] css: use less blurry icon for external link

2016-02-23 Thread Christian Hesse
John Keeping  on Tue, 2016/02/23 10:07:
> On Tue, Feb 23, 2016 at 10:47:25AM +0100, Christian Hesse wrote:
> > Your mileage may vary, but for me the old icon looks blurry. The new
> > one is character 0xf08e from OTF font awsome in size 10.
> > The icon color is black, gray level is adjusted via opacity.  
> 
> What's the licensing status of individual glyphs from Font Awesome?
> IANAL but my reading of the OFL is that it's not compatible with the
> GPL.

What we have is the icon from awesome font, no?
Probably scaled down from one of the example images?

http://fortawesome.github.io/Font-Awesome/icon/external-link/

> The nice thing about the icon from Wikipedia is that it's already
> licensed under the GPLv2 so we don't have to worry about whether it's
> compatible (although it might be a good idea to credit the source in a
> comment).

The wikipedia icon looks different.

https://commons.wikimedia.org/wiki/File:Icon_External_Link.png
-- 
main(a){char*c=/*Schoene Gruesse */"B?IJj;MEH"
"CX:;",b;for(a/*Best regards my address:*/=0;b=c[a++];)
putchar(b-1/(/*Chriscc -ox -xc - && ./x*/b/42*2-3)*42);}


pgpmBcrBZVoHb.pgp
Description: OpenPGP digital signature
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


[PATCH 1/1] css: use less blurry icon for external link

2016-02-23 Thread Christian Hesse
From: Christian Hesse 

Your mileage may vary, but for me the old icon looks blurry. The new
one is character 0xf08e from OTF font awsome in size 10.
The icon color is black, gray level is adjusted via opacity.

Signed-off-by: Christian Hesse 
---
 cgit.css | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cgit.css b/cgit.css
index 50f6587..f6f6e7c 100644
--- a/cgit.css
+++ b/cgit.css
@@ -86,7 +86,8 @@ div#cgit table.tabs td a.active {
 }
 
 div#cgit table.tabs a[href^="http://"]:after, div#cgit table.tabs 
a[href^="https://"]:after {
-   content: 
url(data:image/png;base64,iVBORw0KGgoNSUhEUgoKCAQnOwc2AnNCSVQICFXsRgQJcEhZcwAAABQUAVyMgXwZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaeklEQVQI12NoYCu3q3ABwXL98vTy/0D4jaF8XXldRRoYejAwlu8BCTOU72SAg4q08j/le0GC22BC5anlfyrSGBiBGCZYllz+pywLJg8WLOMtf1GeCjRgI5IgSBhMboUIHq40r1CCQrfyDRAV6uXdZTMhsKKlVIIBFwAAVeg4KFYK95cASUVORK5CYII=);
+   content: 
url(data:image/png;base64,iVBORw0KGgoNSUhEUgoKCAYAAACNMs+9BmJLR0QA/wD/AP+gvaeTCXBIWXMAAAsTAAALEwEAmpwYB3RJTUUH4AIXCQ0GPoJtkwAAAB1pVFh0Q29tbWVudAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHg0lEQVQY05XPsQkCQRSE4e9OY61Ae7AGAxMT7cKKrgIrUMFMA8HUAuzAxAKUNdmFx7EX+KJhZvh50xi+JTZZvxusscMolG7Y44p5MU8YV4gzPJGQ2iw+ldIFLyzwgOMA6Y5JMdteaRpIK2xjGIlNHlZI5xL0RyR0IfvG4qHyZ6F3/r0fA3QYU9MQfpcASUVORK5CYII=);
+   opacity: 0.5;
margin: 0 0 0 5px;
 }
 
-- 
2.7.1

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