Fix #5662 - Gitlive - create a tracking branch
[gitlive] / old_seed_version / test_git.js
1 var Gtk = imports.gi.Gtk;
2
3 var Repo = imports.Scm.Git.Repo.Repo;
4
5
6 Gtk.init(Seed.argv);
7
8 File = imports.File.File;
9
10 var repo = new Repo({ repopath : '/home/alan/gitlive/gitlive' });
11
12 repo.applyPatch(File.read('/tmp/test1.txt'));
13  
14 //var hist = repo.history('/', false, 'rev', 'github..master');
15 //var hist = repo.getBranches();
16
17 //var hist = repo.changedFiles('/',   'rev', 'github..master');
18
19
20 print(JSON.stringify(hist,null,4));
21   
22 //Gtk.main();