Skip to content

Commit

Permalink
Format displaying TreeEntry nicer
Browse files Browse the repository at this point in the history
  • Loading branch information
ttrssreal committed Dec 18, 2023
1 parent 3ba91e2 commit 80b4fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl GitObject {

impl Display for TreeEntry {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
write!(f, "{:o} {} {} {}", self.mode, self.kind, hex::encode(self.id), self.name)
write!(f, "{:06o} {} {} {}", self.mode, self.kind, hex::encode(self.id), self.name)
}
}

Expand Down

0 comments on commit 80b4fa7

Please sign in to comment.