This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $TotalNumberVersionsToKeep=100 | |
| $BackupFolder = "\\osgdesign\Studio\Windows\Users\v-senefe\Backup" # make sure there is no ending \ | |
| $ProjectFolder = "C:\DesignDepot.Git" # make sure there is no ending \ | |
| $ProjectFolderName = [System.IO.Path]::GetFileName($ProjectFolder) | |
| Push-Location -Path $ProjectFolder | |
| $changes = CMD.EXE /C git ls-files --modified --others --exclude-standard | Out-String | |
| if ($changes.Length -eq 0){ | |
| Exit | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| public class SortComparer<T, R> : Comparer<T> where R : IComparable<R> | |
| { | |
| public readonly Func<T, R> GetComparableProperty; | |
| private SortComparer(){} | |
| private SortComparer(Func<T, R> func) | |
| { | |
| GetComparableProperty = func; |
NewerOlder