Result of simple running pygit-convert.sh on this.
At least in the state that gedit starts without trackback.

However, it doesn’t do anything, when activated I get this traceback:

Traceback (most recent call last):
  File "/home/matej/.local/share/gedit/plugins/xmlhelper.py", line 80, in
<lambda>
    lambda a, b: self.end_tag()),
AttributeError: 'XMLHelper' object has no attribute 'end_tag'

which doesn’t make any sense to me … there is self.end_tag() method in
XMLHelper object.
Still doesn’t crash but doesn’t work either.
Finally seems to work.
Fix trailinig whitespace
Make a new code working with PyGI.