Support committing multiple files
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
extern crate benchmark_repository;
|
||||
extern crate pretty_env_logger;
|
||||
|
||||
use benchmark_repository::BenchmarkRepository;
|
||||
use benchmark_repository::{BenchmarkRepository, TargetPath};
|
||||
|
||||
use std::path::Path;
|
||||
|
||||
@@ -10,5 +10,12 @@ fn main()
|
||||
pretty_env_logger::init();
|
||||
|
||||
let benchmark_repository = BenchmarkRepository::new("git@git.luehne.de:patrick/tplp-planning-benchmark.git", Path::new("storage"), "git", "Potassco Bot", "bot@potassco.org");
|
||||
benchmark_repository.commit_file(Path::new("/tmp/test"), Path::new("test-new/fourth"), "test-results");
|
||||
|
||||
let files = vec!
|
||||
[
|
||||
TargetPath{source: &Path::new("/tmp/test"), destination: &Path::new("foobar/test")},
|
||||
TargetPath{source: &Path::new("/tmp/test2"), destination: &Path::new("foobar/test-2")},
|
||||
];
|
||||
|
||||
benchmark_repository.commit_files(&files[..], "test-results");
|
||||
}
|
||||
|
Reference in New Issue
Block a user