Hi all,
today I've deployed some cgit improvements on https://git.osmocom.org/, in the hope that it makes this tool even more useful:
1) syntax highlighting of source code (requested by Hoernchen)
The source code is now highlighted by pygments. I don't really understand why somebody would want to look at source code a lot in a browser, but well, it was as easy as to enable the existing pygments based filter plugin.
2) rendering of "about" page from README.md
As you might have noticed, I've introduced a README.md in a number of repositoires, and cgit is now rendering an about page for every repository, e.g. at http://git.osmocom.org/libosmo-abis/about/
3) gerrit change-ID hyperlink generation
All gerrit Change-IDs in commit messages are now automatically converted to hyperlinks to the respective gerrit change, see e.g. the below example: http://git.osmocom.org/openbsc/commit/?id=6dd0fc685b7149f67a5fe17a5bce55c446...
Please note that this works for the "Change-Id" line of the actual change, but also for change-ids in the free text (e.g. "this depends on change-id ... in libosmocore")
4) Osmocom ticket/issue hyperlink generation
Any Line that matches the "^((Relate|Close|Fixe)[ds]):" prefix is scanned for occurrences of "OS#(\d+)" which are then amended with hyperlinks to the respective issue on osmocom.org
Please note the OS# prefix is mandatory, so things like "OS#1614, 1615" will not work, as can be seen at http://git.osmocom.org/osmo-pcu/commit/?id=0a8fae8d141c2cfa4387ffe9b35402d5b...
Please format your commit messages accordingly.
Regards, Harald
On Fri, Mar 17, 2017 at 09:17:19PM +0100, Harald Welte wrote:
- rendering of "about" page from README.md
 As you might have noticed, I've introduced a README.md in a number of repositoires, and cgit is now rendering an about page for every repository, e.g. at http://git.osmocom.org/libosmo-abis/about/
It seems like these need some follow-ups in the debian packaging instructions -- i.e. update to the new .md suffix or mark as installation (or ignore, but I guess rather installation) file.
- Osmocom ticket/issue hyperlink generation
 Any Line that matches the "^((Relate|Close|Fixe)[ds]):" prefix is scanned for occurrences of "OS#(\d+)" which are then amended with hyperlinks to the respective issue on osmocom.org
Ah, so when OS#123 appears in the commit log's free text, it isn't linked? Can we just scan everything for "<OS#\d+>"?
All in all these are excellent improvements! Holger, what's the status of your promise, made one day in a chat, to make redmine catch the OS#123s?
~N
On 18 Mar 2017, at 16:09, Neels Hofmeyr nhofmeyr@sysmocom.de wrote:
Hi,
All in all these are excellent improvements! Holger, what's the status of your promise, made one day in a chat, to make redmine catch the OS#123s?
lol, I love how we go from a private chat to this CC list. I have not looked at it but maybe this is something for an afternoon at Osmodevcon. It should be fairly simple with redmine.
holger
On Sun, Mar 19, 2017 at 09:57:57PM +0100, Holger Freyther wrote:
Holger, what's the status of your promise, made one day in a chat, to make redmine catch the OS#123s?
lol, I love how we go from a private chat to this CC list.
Hey, if you love it that much, I can come up with plenty more private conversations between us I could Cc around... ;)
In other words, sorry about disclosing. I kind of remembered it was a public commitment. And it doesn't need to stick, either, anyone could take a look if you're busy.
~N
baseband-devel@lists.osmocom.org