Implement self-registration of the extension
commit96d823bb564b606a4ff9d4ca5ad38a0d0886aac0
authorKirill <kirillathome@gmail.com>
Wed, 6 Feb 2008 04:20:06 +0000 (5 23:20 -0500)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 9 Feb 2008 00:52:42 +0000 (9 00:52 +0000)
tree8f31cd098f3f39229261d2190670fc5fe3e7163d
parentb47280df5b28d3b2b98c3b7783441a5640569ddb
Implement self-registration of the extension

This is an implementation of TODO "Need to not hard-code the dll path"

Registration is implemented with a minimal regedit engine: an array of
registry values { path, name, value } is the data source. So, all
registry entries are hard-coded in dll.c. The engine attempts to
convert values into longs to create REG_DWORD values.

msysGit (for PathToMsys) is searched in the following order:
- $(TARGET)/..
- $(TARGET)/../..
- %PATH%
- InstallLocation of uninstall info (registration-type dependant).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Makefile
dll.c
git_shell_ext.def
install.reg.in [deleted file]
registry.c [new file with mode: 0644]
registry.h [new file with mode: 0644]
uninstall.reg [deleted file]