Commit 65ffa10
authored
LibGit2: Add GitTree constructor that wraps git_tree_lookup (#59994)
This adds a new constructor GitTree(repo::GitRepo, tree_oid::GitHash)
that directly wraps the libgit2 git_tree_lookup function. This provides
a more efficient and direct way to create a GitTree object when you
already have the tree hash, complementing the existing constructor that
creates a GitTree from a GitCommit.
Written by Claude.
Co-authored-by: Keno Fischer <[email protected]>1 parent ed705d8 commit 65ffa10
2 files changed
+30
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
9 | 31 | | |
10 | 32 | | |
11 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1085 | 1093 | | |
1086 | 1094 | | |
1087 | 1095 | | |
| |||
0 commit comments