Add Git inspection forms, find pruning, and WASI tail stdin (T76)
This commit is contained in:
@@ -2,10 +2,13 @@
|
||||
use crate::changes::{FileDiff, Kind, Status};
|
||||
use gix::bstr::ByteSlice;
|
||||
pub(crate) fn commit(commit: &gix::Commit<'_>) -> crate::Result<()> {
|
||||
decorated_commit(commit, "")
|
||||
}
|
||||
pub(crate) fn decorated_commit(commit: &gix::Commit<'_>, decorations: &str) -> crate::Result<()> {
|
||||
let decoded = commit
|
||||
.decode()
|
||||
.map_err(|e| crate::repo::error("commit output", e))?;
|
||||
println!("commit {}", commit.id);
|
||||
println!("commit {}{}", commit.id, decorations);
|
||||
if decoded.parents.len() > 1 {
|
||||
println!(
|
||||
"Merge: {}",
|
||||
|
||||
Reference in New Issue
Block a user