Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/desktop/src/lib/stacks/stackService.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1175,10 +1175,11 @@ function injectEndpoints(api: ClientState['backendApi'], uiState: UiState) {
],
transformResponse(rsp: CommitDetails) {
const changes = changesAdapter.addMany(changesAdapter.getInitialState(), rsp.changes);
const stats = rsp.stats;
return {
changes: changes,
details: rsp.commit,
stats: rsp.stats,
stats,
conflictEntries: rsp.conflictEntries
? new ConflictEntries(
rsp.conflictEntries.ancestorEntries,
Expand Down
1 change: 1 addition & 0 deletions crates/but-core/src/diff/commit_details.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub struct CommitDetails {

/// Line statistics obtained from diffing the blobs of one or more [TreeChange](crate::TreeChange).
#[derive(Default, Debug, Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, serde::Serialize)]
#[serde(rename_all = "camelCase")]
pub struct LineStats {
/// The total amount of lines added in the between blobs of the two trees.
pub lines_added: u64,
Expand Down
Loading