Skip to content

Commit

Permalink
Merge pull request #6072 from gitbutlerapp/kv-branch-3
Browse files Browse the repository at this point in the history
feat(worktree): add pathBytes to TreeChange for data integrity
  • Loading branch information
krlvi authored Jan 24, 2025
2 parents 4b000a1 + 1df05a3 commit b9368ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/desktop/src/lib/worktree/worktree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ export type WorktreeChanges = {
export type TreeChange = {
/** The *relative* path in the worktree where the entry can be found.*/
readonly path: string;
/**
* Something silently carried back and forth between the frontend and the backend.
* This is neccessary because the path string conversion is lossy.
* @private
*/
readonly pathBytes: number[];
/** The specific information about this change.*/
readonly status: Status;
};
Expand Down

0 comments on commit b9368ec

Please sign in to comment.