Basic Commit viewer.
[Widgit.git] / Git / Treeish.cs
blobe02e3da94acfa51a3528e647c14da48b1b908227
2 using System;
4 namespace Git
6 public abstract class Treeish
8 public abstract string ID { get; internal set; }
9 public abstract string Name { get; internal set; }
11 protected string m_path;
12 public string Path { get { return m_path; } }
14 public Treeish(string path)
16 m_path = path;
19 public virtual bool Verify()
21 Executioner e = Executioner.GetExecutioner(m_path, false);
22 return 0 == e.Execute("git-rev-parse", "--verify " + ID);