From 0015d665bf63d37e0bf1b0c8568546b0b9aa5ad2 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Fri, 15 Mar 2013 09:04:11 -0400 Subject: [PATCH] EthanBrown.GitExtensionsConfiguration 0.0.1 - Standard GitExtensions configuration including: - SourceCodePro for diff font - Max 50 characters for first line of commit - Max 72 characters on subsequent lines - 2nd line of commit must be empty - Show repository status in browse dialog (# of changes in toolbar) - Show current working dir changes in revision graph - Use FileSystemWatcher to check if index is changed - Show stash count on status bar in browse window --- ...hanBrown.GitExtensionsConfiguration.nuspec | 37 +++++++++++++++++++ .../tools/chocolateyInstall.ps1 | 26 +++++++++++++ .../tools/chocolateyUninstall.ps1 | 9 +++++ 3 files changed, 72 insertions(+) create mode 100644 EthanBrown.GitExtensionsConfiguration/EthanBrown.GitExtensionsConfiguration.nuspec create mode 100644 EthanBrown.GitExtensionsConfiguration/tools/chocolateyInstall.ps1 create mode 100644 EthanBrown.GitExtensionsConfiguration/tools/chocolateyUninstall.ps1 diff --git a/EthanBrown.GitExtensionsConfiguration/EthanBrown.GitExtensionsConfiguration.nuspec b/EthanBrown.GitExtensionsConfiguration/EthanBrown.GitExtensionsConfiguration.nuspec new file mode 100644 index 0000000..314ed30 --- /dev/null +++ b/EthanBrown.GitExtensionsConfiguration/EthanBrown.GitExtensionsConfiguration.nuspec @@ -0,0 +1,37 @@ + + + + EthanBrown.GitExtensionsConfiguration + GitExtensions - Configuration + 0.0.1 + Various + Ethan Brown + GitExtensions configuration for Windows. + Very simple set of standard GitExtensions configuration options + + - SourceCodePro for diff font + - Max 50 characters for first line of commit + - Max 72 characters on subsequent lines + - 2nd line of commit must be empty + - Show repository status in browse dialog (number of changes in toolbar) + - Show current working dir changes in revision graph + - Use FileSystemWatcher to check if index is changed + - Show stash count on status bar in browse window + + http://github.com/Iristyle/ChocolateyPackages/ + Git font + + false + https://raw.github.com/ferventcoder/chocolateyautomaticpackages/master/gitextensions/gitextensions.png + + + + + + + + + + diff --git a/EthanBrown.GitExtensionsConfiguration/tools/chocolateyInstall.ps1 b/EthanBrown.GitExtensionsConfiguration/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..b1ac011 --- /dev/null +++ b/EthanBrown.GitExtensionsConfiguration/tools/chocolateyInstall.ps1 @@ -0,0 +1,26 @@ +$package = 'EthanBrown.GitExtensionsConfiguration' + +try { + + $root = 'HKCU:\Software\GitExtensions\GitExtensions' + + @( + @{Name = 'difffont'; Value = 'Source Code Pro Semibold;9.75'; Type='String'} + @{Name = 'showstashcount'; Value = 'True'; Type = 'String'}, + @{Name = 'CommitValidationMaxCntCharsFirstLine'; Value = 50; Type = 'DWORD'}, + @{Name = 'CommitValidationMaxCntCharsPerLine'; Value = 72; Type = 'DWORD'}, + @{Name = 'CommitValidationSecondLineMustBeEmpty'; Value = 'True'; Type = 'String'}, + @{Name = 'CommitTemplates'; Value = '512:AAEAAAD/////AQAAAAAAAAAMAgAAAD1HaXRVSSwgVmVyc2lvbj0yLjQzLjAuMCwgQ3VsdHVyZT1uZXV0cmFsLCBQdWJsaWNLZXlUb2tlbj1udWxsBwEAAAAAAQAAAAUAAAAEGEdpdFVJLkNvbW1pdFRlbXBsYXRlSXRlbQIAAAAJAwAAAAkEAAAACQUAAAAJBgAAAAkHAAAABQMAAAAYR2l0VUkuQ29tbWl0VGVtcGxhdGVJdGVtAgAAAAROYW1lBFRleHQBAQIAAAAGCAAAABdTdGFuZGFyZCBHaXQgQ29tbWl0IExvZwYJAAAAAAEEAAAAAwAAAAkJAAAACQkAAAABBQAAAAMAAAAJCQAAAAkJAAAAAQYAAAADAAAACQkAAAAJCQAAAAEHAAAAAwAAAAkJAAAACQkAAAALAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA='; Type = 'String'}, + @{Name = 'revisiongraphshowworkingdirchanges'; Value = 'True'; Type = 'String'}, + @{Name = 'showgitstatusinbrowsetoolbar'; Value = 'True'; Type = 'String'}, + @{Name = 'usefastchecks'; Value = 'True'; Type = 'String'} + ) | + % { + Set-ItemProperty -Path $root -name $_.Name -Type $_.Type -Value $_.Value + } + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +} diff --git a/EthanBrown.GitExtensionsConfiguration/tools/chocolateyUninstall.ps1 b/EthanBrown.GitExtensionsConfiguration/tools/chocolateyUninstall.ps1 new file mode 100644 index 0000000..e24af06 --- /dev/null +++ b/EthanBrown.GitExtensionsConfiguration/tools/chocolateyUninstall.ps1 @@ -0,0 +1,9 @@ +$package = 'EthanBrown.GitExtensionsConfiguration' + +try { + Write-Host "Configure settings from the Git Extensions menu (Settings -> Settings) manually" + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +}