Gtk.init(Seed.argv);
-var repo = new Repo('/home/alan/gitlive/roojs1');
+File = imports.File.File;
+
+var repo = new Repo({ repopath : '/home/alan/gitlive/gitlive' });
+
+repo.applyPatch(File.read('/tmp/test1.txt'));
-var hist = repo.history('/', false, 'rev', 'github..master');
-/*
-
-
-var Git = imports.Git.Git;
-var git = new Git('/home/alan/gitlive/roojs1');
-git.async = true;
-var out = git.run(
-{ 'no-pager' : true },
- 'log',
- 'github..master',
- { 'no-color' : true },
- { 'raw' : true },
- { 'numstat' : true },
- { 'date' : 'rfc' }
-);
-print(out);
-*/
-
-Gtk.main();
\ No newline at end of file
+//var hist = repo.history('/', false, 'rev', 'github..master');
+//var hist = repo.getBranches();
+
+//var hist = repo.changedFiles('/', 'rev', 'github..master');
+
+
+print(JSON.stringify(hist,null,4));
+
+//Gtk.main();
\ No newline at end of file