Updating linux build.
[Widgit.git] / Git / Treeish.cs
blob87688c5e99712dcb79315ca1b021105844d127cb
1 //Widgit is free software; you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation; either version 2 of the License, or
4 //(at your option) any later version.
6 //Widgit is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
11 //You should have received a copy of the GNU General Public License
12 //along with Widgit; if not, write to the Free Software
13 //Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USAusing System;
16 using System;
18 namespace Git
20 public abstract class Treeish
22 public abstract string ID { get; internal set; }
23 public abstract string Name { get; internal set; }
25 protected string m_path;
26 public string Path { get { return m_path; } }
28 public Treeish(string path)
30 m_path = path;
33 public virtual bool Verify()
35 Executioner e = Executioner.GetExecutioner(m_path, false);
36 return 0 == e.Execute("git-rev-parse", "--verify " + ID);