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
This commit is contained in:
Iristyle
2013-03-15 09:04:11 -04:00
parent 032d197bf6
commit 0015d665bf
3 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?xml version="1.0"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>EthanBrown.GitExtensionsConfiguration</id>
<title>GitExtensions - Configuration</title>
<version>0.0.1</version>
<authors>Various</authors>
<owners>Ethan Brown</owners>
<summary>GitExtensions configuration for Windows.</summary>
<description>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
</description>
<projectUrl>http://github.com/Iristyle/ChocolateyPackages/</projectUrl>
<tags>Git font</tags>
<!-- Eula is in installer
<licenseUrl></licenseUrl>
-->
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://raw.github.com/ferventcoder/chocolateyautomaticpackages/master/gitextensions/gitextensions.png</iconUrl>
<releaseNotes></releaseNotes>
<dependencies>
<dependency id="gitextensions" />
<dependency id="SourceCodePro" />
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>

View File

@@ -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
}

View File

@@ -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
}