From 995b29b12198d78f7f8adab99d2e9e8bd896b81f Mon Sep 17 00:00:00 2001 From: Scott Hanselman Date: Mon, 30 Jan 2012 16:00:16 -0800 Subject: [PATCH] Initial awesomeness --- poshgit.Types.ps1xml | 38 ++++++++++++++++++++++++++++++++++++++ readme | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 poshgit.Types.ps1xml diff --git a/poshgit.Types.ps1xml b/poshgit.Types.ps1xml new file mode 100644 index 0000000..a4e2575 --- /dev/null +++ b/poshgit.Types.ps1xml @@ -0,0 +1,38 @@ + + + + System.IO.FileInfo + + + Git + + $retVal = "" + if ($GitStatus.Index.Added -contains $this.Name) { $retVal += "+" } ` + elseif ($GitStatus.Index.Modified -contains $this.Name) { $retVal += "~" } ` + elseif ($GitStatus.Index.Deleted -contains $this.Name) { $retVal += "-" } ` + elseif ($GitStatus.Index.Unmerged -contains $this.Name) { $retVal += "!" } ` + else { $retVal += " " } + + if ($GitStatus.Working.Added -contains $this.Name) { $retVal += "+" } ` + elseif ($GitStatus.Working.Modified -contains $this.Name) { $retVal += "~" } ` + elseif ($GitStatus.Working.Deleted -contains $this.Name) { $retVal += "-" } ` + elseif ($GitStatus.Working.Unmerged -contains $this.Name) { $retVal += "!" } ` + else { $retVal += " " } + + $retVal + + + + + + System.IO.DirectoryInfo + + + Git + + "" + + + + + \ No newline at end of file diff --git a/readme b/readme index e69de29..6990215 100644 --- a/readme +++ b/readme @@ -0,0 +1,2 @@ + +Hey, it's a readme \ No newline at end of file