[haiku-bugs] Re: [Haiku] #8510: cgit shortcomings (was: cgit sucks)

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Wed, 02 May 2012 15:06:58 -0000

#8510: cgit shortcomings
----------------------------+-----------------------
   Reporter:  axeld         |      Owner:  haiku-web
       Type:  enhancement   |     Status:  new
   Priority:  normal        |  Milestone:
  Component:  Website/Trac  |    Version:
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+-----------------------

Comment (by bonefish):

 Adjusted the summary to be less rude.

 Regarding the annotate/blame feature, that's something I've already
 missed, too. I took a look at the cgit sources and it isn't trivial to
 add. cgit uses the git sources as a static library. The blame
 implementation is, however, not exposed by git, but statically implemented
 in the `blame` command source file. So one would have to copy most of it,
 which probably wouldn't be accepted as a patch.

 What I also miss is syntax highlighting. That's a configuration issue
 only, though. A `source-filter` command has to be set in cgitrc that
 performs the highlighting. There's
 [http://hjemli.net/git/cgit/tree/filters/syntax-highlighting.sh an
 example] how that can be done using the [http://www.andre-
 simon.de/doku/highlight/en/highlight.html highlight script]. I was tempted
 to set that up, but since there's no official ("stable") openSUSE
 repository containing `highlight`, I was unsure how to install it. Add an
 "unstable" repository? Or would be better be added to the "haiku-admin"
 repository?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8510#comment:5>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts:

  • » [haiku-bugs] Re: [Haiku] #8510: cgit shortcomings (was: cgit sucks) - bonefish