[gitg/vala] Added RefState stored in ref



commit b4b57f0821c0e7750c59ad933f95c943949ffc56
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date:   Sun Apr 22 15:12:31 2012 +0200

    Added RefState stored in ref

 libgitg/gitg-ref.vala |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/libgitg/gitg-ref.vala b/libgitg/gitg-ref.vala
index 3914b07..08c9b0f 100644
--- a/libgitg/gitg-ref.vala
+++ b/libgitg/gitg-ref.vala
@@ -3,12 +3,20 @@ namespace Gitg
 
 public enum RefType
 {
+	NONE,
 	BRANCH,
 	REMOTE,
 	TAG,
 	STASH
 }
 
+public enum RefState
+{
+	NONE,
+	SELECTED,
+	PRELIGHT
+}
+
 /**
  * Parse ref name into components.
  *
@@ -121,6 +129,7 @@ public class Ref : Ggit.Ref
 	private static Regex? s_remote_key_regex;
 	private ParsedRefName d_parsed_name;
 
+	public RefState state { get; set; }
 	public ParsedRefName parsed_name
 	{
 		owned get



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]