260105.5 6d251f7ec72138b31dba26b950256b740f447233 git(-with-openssh): Improve registry srcipt & relevant logic, update checkver & autoupdate (#7459)
reading declarations
Changes to scripts/git/. All files
scripts/git/install-associations.reg
@@ -0,0 +1,40 @@+Windows Registry Editor Version 5.00++; Associate .git* configuration files with the default text editor++[HKEY_CURRENT_USER\Software\Classes\.gitattributes]+@="txtfile"+"Content Type"="text/plain"+"PerceivedType"="text"+++[HKEY_CURRENT_USER\Software\Classes\.gitignore]+@="txtfile"+"Content Type"="text/plain"+"PerceivedType"="text"+++[HKEY_CURRENT_USER\Software\Classes\.gitmodules]+@="txtfile"+"Content Type"="text/plain"+"PerceivedType"="text"++++; Associate '.sh' files to be run with Bash++[HKEY_CURRENT_USER\Software\Classes\.sh\OpenWithProgIDs]+"sh_auto_file"=hex(0):+++[HKEY_CURRENT_USER\Software\Classes\sh_auto_file]+@="Shell Script"++[HKEY_CURRENT_USER\Software\Classes\sh_auto_file\DefaultIcon]+@="%SystemRoot%\\System32\\shell32.dll,-153"++[HKEY_CURRENT_USER\Software\Classes\sh_auto_file\shell\open\command]+@="\"{{git_dir}}\\git-bash.exe\" --no-cd \"%L\" %*"++[HKEY_CURRENT_USER\Software\Classes\sh_auto_file\ShellEx\DropHandler]+@="{60254CA5-953B-11CF-8C96-00AA00B8708C}"
scripts/git/install-context.reg
@@ -1,51 +1,53 @@ Windows Registry Editor Version 5.00 -; ------------------------------------------------------------------------------; context menu entry 'Git GUI Here'-; -----------------------------------------------------------------------------+; Register context menu entry: 'Open Git GUI here' [HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_gui]-@="Git &GUI Here"-"Icon"="$git_root\\cmd\\git-gui.exe"+@="Open Git &GUI here"+"Icon"="\"{{git_dir}}\\cmd\\git-gui.exe\",0" [HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_gui\command]-@="\"$git_root\\cmd\\git-gui.exe\" \"--working-dir\" \"%v.\""+@="\"{{git_dir}}\\cmd\\git-gui.exe\" \"--working-dir\" \"%v.\""+ [HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_gui]-@="Git &GUI Here"-"Icon"="$git_root\\cmd\\git-gui.exe"+@="Open Git &GUI here"+"Icon"="\"{{git_dir}}\\cmd\\git-gui.exe\",0" [HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_gui\command]-@="\"$git_root\\cmd\\git-gui.exe\" \"--working-dir\" \"%1\""+@="\"{{git_dir}}\\cmd\\git-gui.exe\" \"--working-dir\" \"%1\""+ [HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_gui]-@="Git &GUI Here"-"Icon"="$git_root\\cmd\\git-gui.exe"+@="Open Git &GUI here"+"Icon"="\"{{git_dir}}\\cmd\\git-gui.exe\",0" [HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_gui\command]-@="\"$git_root\\cmd\\git-gui.exe\" \"--working-dir\" \"%v.\""+@="\"{{git_dir}}\\cmd\\git-gui.exe\" \"--working-dir\" \"%v.\""+ -; ------------------------------------------------------------------------------; context menu entry 'Git Bash Here'-; -----------------------------------------------------------------------------++; Register context menu entry: 'Open Git Bash here' [HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_shell]-@="Git Ba&sh Here"-"Icon"="$git_root\\git-bash.exe"+@="Open Git Ba&sh here"+"Icon"="\"{{git_dir}}\\git-bash.exe\",0" [HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_shell\command]-@="\"$git_root\\git-bash.exe\" \"--cd=%v.\""+@="\"{{git_dir}}\\git-bash.exe\" \"--cd=%v.\""+ [HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_shell]-@="Git Ba&sh Here"-"Icon"="$git_root\\git-bash.exe"+@="Open Git Ba&sh here"+"Icon"="\"{{git_dir}}\\git-bash.exe\",0" [HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_shell\command]-@="\"$git_root\\git-bash.exe\" \"--cd=%1\""+@="\"{{git_dir}}\\git-bash.exe\" \"--cd=%1\""+ [HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_shell]-@="Git Ba&sh Here"-"Icon"="$git_root\\git-bash.exe"+@="Open Git Ba&sh here"+"Icon"="\"{{git_dir}}\\git-bash.exe\",0" [HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_shell\command]-@="\"$git_root\\git-bash.exe\" \"--cd=%v.\""+@="\"{{git_dir}}\\git-bash.exe\" \"--cd=%v.\""
scripts/git/install-file-associations.reg
@@ -1,39 +0,0 @@-Windows Registry Editor Version 5.00--; ------------------------------------------------------------------------------; associate .git* configuration files with the default text editor-; -------------------------------------------------------------------------------[HKEY_CURRENT_USER\Software\Classes\.gitattributes]-@="txtfile"-"Content Type"="text/plain"-"PerceivedType"="text"--[HKEY_CURRENT_USER\Software\Classes\.gitignore]-@="txtfile"-"Content Type"="text/plain"-"PerceivedType"="text"--[HKEY_CURRENT_USER\Software\Classes\.gitmodules]-@="txtfile"-"Content Type"="text/plain"-"PerceivedType"="text"--; ------------------------------------------------------------------------------; associate '.sh' files to be run with git bash-; -------------------------------------------------------------------------------[HKEY_CURRENT_USER\Software\Classes\.sh]-@="sh_auto_file"--[HKEY_CURRENT_USER\Software\Classes\sh_auto_file]-@="Shell Script"--[HKEY_CURRENT_USER\Software\Classes\sh_auto_file\DefaultIcon]-@="%SystemRoot%\\System32\\shell32.dll,-153"--[HKEY_CURRENT_USER\Software\Classes\sh_auto_file\shell\open\command]-@="\"$git_root\\git-bash.exe\" --no-cd \"%L\" %*"--[HKEY_CURRENT_USER\Software\Classes\sh_auto_file\ShellEx\DropHandler]-@="{60254CA5-953B-11CF-8C96-00AA00B8708C}"
scripts/git/uninstall-associations.reg
@@ -0,0 +1,6 @@+Windows Registry Editor Version 5.00++[HKEY_CURRENT_USER\Software\Classes\.sh\OpenWithProgIDs]+"sh_auto_file"=-++[-HKEY_CURRENT_USER\Software\Classes\sh_auto_file]
scripts/git/uninstall-context.reg
@@ -1,23 +1,18 @@ Windows Registry Editor Version 5.00 -; ------------------------------------------------------------------------------; undo: context menu entry 'Git GUI Here'-; -----------------------------------------------------------------------------+; Unregister context menu entry: 'Open Git GUI here' [-HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_gui]-[-HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_gui\command]+ [-HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_gui]-[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_gui\command]+ [-HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_gui]-[-HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_gui\command] -; ------------------------------------------------------------------------------; undo: context menu entry 'Git Bash Here'-; -----------------------------------------------------------------------------++; Unregister context menu entry: 'Open Git Bash here' [-HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_shell]-[-HKEY_CURRENT_USER\Software\Classes\Directory\background\shell\git_shell\command]+ [-HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_shell]-[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\git_shell\command]+ [-HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_shell]-[-HKEY_CURRENT_USER\Software\Classes\LibraryFolder\background\shell\git_shell\command]
scripts/git/uninstall-file-associations.reg
@@ -1,19 +0,0 @@-Windows Registry Editor Version 5.00--; ------------------------------------------------------------------------------; undo: associate .git* configuration files with the default text editor-; -------------------------------------------------------------------------------[-HKEY_CURRENT_USER\Software\Classes\.gitattributes]-[-HKEY_CURRENT_USER\Software\Classes\.gitignore]-[-HKEY_CURRENT_USER\Software\Classes\.gitmodules]--; ------------------------------------------------------------------------------; undo: associate '.sh' files to be run with git bash-; -------------------------------------------------------------------------------[-HKEY_CURRENT_USER\Software\Classes\.sh]-[-HKEY_CURRENT_USER\Software\Classes\sh_auto_file]-[-HKEY_CURRENT_USER\Software\Classes\sh_auto_file\DefaultIcon]-[-HKEY_CURRENT_USER\Software\Classes\sh_auto_file\shell\open\command]-[-HKEY_CURRENT_USER\Software\Classes\sh_auto_file\ShellEx\DropHandler]