···3232| ✅ | `sh.tangled.repo.log` | |3333| ❌ | `sh.tangled.repo.setDefaultBranch` | |3434| ✅ | `sh.tangled.repo.tags` | |3535-| 🔶 | `sh.tangled.repo.tree` | cheats by not computing most recent commit 🚀. output does not match most recent knot server |3535+| 🔶 | `sh.tangled.repo.tree` | cheats by not computing most recent commit 🚀 |36363737jetstream ingest:3838
+7-11
crates/knot/src/model/convert.rs
···7272 let name = value.filename().to_string();7373 let mode = value.mode();74747575- let is_file = mode.is_blob();7676- let is_subtree = mode.is_tree();7777-7575+ // Replicate the file mode values that go-git uses.7876 let mode_string = match mode.kind() {7979- EntryKind::Tree => "drwxr-xr-x",8080- EntryKind::Blob => "-rw-r--r--",8181- EntryKind::BlobExecutable => "-rwxr-xr-x",8282- EntryKind::Link => "----------",8383- EntryKind::Commit => "----------",7777+ EntryKind::Tree => "0040000",7878+ EntryKind::Blob => "0100644",7979+ EntryKind::BlobExecutable => "0100755",8080+ EntryKind::Link => "0120000",8181+ EntryKind::Commit => "0160000",8482 };85838684 tree::TreeEntry {8787- name,8885 mode: Cow::Borrowed(mode_string),8989- is_file,9090- is_subtree,8686+ name,9187 ..Default::default()9288 }9389}
+1-7
crates/lexicon/src/sh/tangled/repo/tree.rs
···5858 pub mode: Cow<'static, str>,59596060 /// File size in bytes6161- pub size: usize,6262-6363- /// Whether this entry is a file6464- pub is_file: bool,6565-6666- /// Whether this entry is a directory/subtree6767- pub is_subtree: bool,6161+ pub size: i64,68626963 pub last_commit: Option<LastCommit>,7064}