From 64fe11475a13b61592f769cfde9315673680776f Mon Sep 17 00:00:00 2001 From: Yiyi Sun Date: Sun, 5 Feb 2012 11:11:35 -0500 Subject: [PATCH] add commit search --- GitApi/DataServices/Commit.cs | 6 ++- GitUI/MainWindow.xaml | 4 +- GitUI/UI/CommitDetails.xaml | 2 +- GitUI/UI/CommitDetails.xaml.cs | 2 +- GitUI/UI/MainToolBar.xaml | 17 +++++--- GitUI/UI/MainToolBar.xaml.cs | 79 ++++++++++++++++++++++++++++++++++ Readme.htm | 34 +++++++-------- 7 files changed, 114 insertions(+), 30 deletions(-) diff --git a/GitApi/DataServices/Commit.cs b/GitApi/DataServices/Commit.cs index 9e26e11..e4917be 100644 --- a/GitApi/DataServices/Commit.cs +++ b/GitApi/DataServices/Commit.cs @@ -16,5 +16,9 @@ public class Commit public DateTime CommitDate { get; set; } public string CommitDateRelative { get; set; } internal bool deleted { get; set; } - } + + public override string ToString() + { + return string.Format("[{0}] {1}", Id.Substring(0, 7), Message.Replace("\r", "")); + } } } \ No newline at end of file diff --git a/GitUI/MainWindow.xaml b/GitUI/MainWindow.xaml index a85e2d2..a327114 100644 --- a/GitUI/MainWindow.xaml +++ b/GitUI/MainWindow.xaml @@ -15,10 +15,10 @@ - - + diff --git a/GitUI/UI/CommitDetails.xaml b/GitUI/UI/CommitDetails.xaml index 35e9662..347fe43 100644 --- a/GitUI/UI/CommitDetails.xaml +++ b/GitUI/UI/CommitDetails.xaml @@ -77,7 +77,7 @@