Hi!
I need to commit all files in work_dir like "git commit -a". I can't get it from docs.
And in readme.md its like:
$bld = new Git2\TreeBuilder();
$bld->insert(new Git2\TreeEntry(array(
"name" => "README.txt",
"oid" => "63542fbea05732b78711479a31557bd1b0aa2116",
"attributes" => octdec('100644'),
)));
$tree = $bld->write($repo);
How can I get this oid ? It doesnt work like
$repo->hash("file-path")