Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Adds readFile method

AuthorDave Jarvis <email>
Date2026-02-14 13:26:06 GMT-0800
Commit01048e6bb12961ffd8e8e428f225e5bb02935afe
Parent92f7020
git/Git.php
}
+ public function readFile( string $hash, string $name ) {
+ return new File(
+ $name,
+ $hash,
+ '100644',
+ 0,
+ $this->getObjectSize( $hash ),
+ $this->peek( $hash )
+ );
+ }
+
public function stream( string $sha, callable $callback ): void {
$this->slurp( $sha, $callback );
Delta11 lines added, 0 lines removed, 11-line increase