I would be most happy with some kind of emacs hook that would be activated when a file that is under git repository is visited. But other solutions are welcome as well.
+3
A:
You can try git.el or other alternatives listed here : http://www.emacswiki.org/emacs/Git
Johnny
2009-11-01 07:10:46
+2
A:
you can use function (vc-backend "file-name") from VC package to obtain information about given file. This function returns name of version control system, where this file is registered. To run your own code, you can combine this function with standard find-file-hook
Alex Ott
2009-11-01 11:22:57