| Author | Dave Jarvis <email> |
|---|---|
| Date | 2026-02-15 23:02:43 GMT-0800 |
| Commit | 830ae8590871d4da31e952f0c224ef10940dfe31 |
| Parent | 272a15b |
| $data = $this->read( $commitOrTreeSha ); | ||
| + if( preg_match( '/^object ([0-9a-f]{40})/m', $data, $matches ) ) { | ||
| + return $this->getTreeSha( $matches[1] ); | ||
| + } | ||
| + | ||
| if( preg_match( '/^tree ([0-9a-f]{40})/m', $data, $matches ) ) { | ||
| return $matches[1]; | ||
| while( $position < $length ) { | ||
| - // Inline parsing for speed | ||
| $spacePos = strpos( $data, ' ', $position ); | ||
| $nullPos = strpos( $data, "\0", $spacePos ); | ||
| ]; | ||
| } | ||
| - | ||
| - // --- Tree Processing --- | ||
| private function walkTree( string $sha, callable $callback ): void { | ||
| Delta | 4 lines added, 3 lines removed, 1-line increase |
|---|