README.txt
[gitlive] / test_git.js
index b0128ad..aa68121 100644 (file)
@@ -5,31 +5,18 @@ var Repo = imports.Scm.Git.Repo.Repo;
 
 Gtk.init(Seed.argv);
 
-var repo = new Repo({ repopath : '/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 hist = repo.history('/', false, 'rev', 'github..master');
 //var hist = repo.getBranches();
 
 //var hist = repo.changedFiles('/',   'rev', 'github..master');
 
 
 print(JSON.stringify(hist,null,4));
-/*
-
-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
+  
+//Gtk.main();
\ No newline at end of file