Changed to using gid-diff-index for getting file states.
[Widgit.git] / Git / Branch.cs
blobfde36e9edc956a823cc71217ffa48970dd0476b0
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
5 namespace Git
7 public class Branch : Treeish
9 protected string m_name;
10 public override string Name { get { return m_name; } }
12 protected string m_hash;
13 public override string ID { get { return m_hash; } }
15 public Branch(string path, string name) : base(path)
17 m_name = name;
20 public override bool Verify()
22 Executioner e = Executioner.GetExecutioner(m_path, false);
23 string output, error;
24 bool retval = 0 == e.Execute("git-show-ref", "-s --heads " + Name, "", out output, out error);
25 m_hash = output.Trim();
26 return retval;