git.add().addFilePattern("src/Test.java").call();
git.add().addFilePattern("src/test/Test.java").call();
git.commit().setMessage("Uploading Test Cases");
git.push().call();
DirCache dc = db.readDirCache();
for (int i = 0; i < dc.getEntryCount(); i++) {
DirCacheEntry entry = dc.getEntry(0);
log.debug(entry.getPathString());
}
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf
2011-02-05 01:17:22,444 13764055 DEBUG [GitService] conf/foo.conf