How do I add the go language to gitg's list of viewable sources?
Posted
by Hotei
on Stack Overflow
See other posts from Stack Overflow
or by Hotei
Published on 2010-04-30T16:52:59Z
Indexed on
2010/04/30
16:57 UTC
Read the original article
Hit count: 208
Hoping a 'git' guru will help out here.
I am just beginning to "git" for the first time and have (among other things :-) ) git and gitg installed from Ubuntu 10.4 / AMD64 distribution (ie. maybe not 'latest' version but not ancient). I am trying to look at the go code I've committed via gitg and in the "tree tab" it says :Cannot display file content as text. However, the "details tab" shows the diffs of the same file just fine. I know gitg's "tree tab" is working because I can use the tree view on *.c / *.html / *.txt etc just fine.
Is there a way to tweak gitg into understanding that "*.go" is just text?
A little more context: Installed gitg version is 0.0.5 - ie a version behind latest - 0.0.6 - source of which I am looking thru now.
I do have a working /usr/share/gtksourceview-2.0/language-specs/ go.lang. It works just fine as highlighter in gedit. It appears that gitg may require displayable files to have a mime type of "text/plain", so I added that to go.lang
No joy. gitg still fails on *.go I'm relatively sure the fix is simple, just don't know where to look.
© Stack Overflow or respective owner