public Base(string git_dir) // , Hashtable options
{
if (!new DirectoryInfo(git_dir).Exists)
{
Directory.CreateDirectory(git_dir);
Git = Repository.Init(git_dir);
AddFile(".hold", "hold");
Git.Commit("initialized ticket repository", new Author(Git.Config["user.name"], Git.Config["user.email"]));
}
else
Git = new Repository(git_dir);
//@logger = opts[:logger] || Logger.new(STDOUT)
var proj = Ticket.CleanString(Git.Directory);
//@tic_dir = opts[:tic_dir] || '~/.ticgit'
// @tic_working = opts[:working_directory] || File.expand_path(File.join(@tic_dir, proj, 'working'))
// @tic_index = opts[:index_file] || File.expand_path(File.join(@tic_dir, proj, 'index'))
// # load config file
// @config_file = File.expand_path(File.join(@tic_dir, proj, 'config.yml'))
// if File.exists?(config_file)
// @config = YAML.load(File.read(config_file))
// else
// @config = {}
// end
// @state = File.expand_path(File.join(@tic_dir, proj, 'state'))
// if File.exists?(@state)
// load_state
// else
// reset_ticgit
// end
}