[gitg/vala] Added RefState stored in ref
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/vala] Added RefState stored in ref
- Date: Sun, 22 Apr 2012 13:15:00 +0000 (UTC)
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]