Skip to content

Add an on-demand file diff preview #8

Description

@YYchainsAw

用户问题 / User problem

更改列表目前只显示路径与行数,用户在提交前查看具体改动时必须离开 RepoPuck。

The change list shows paths and line counts, but users must leave RepoPuck to review the exact change before committing.

Smallest useful scope

  • Open a read-only diff panel when a text-file row is activated.
  • Separate staged and unstaged content.
  • Load on demand and enforce byte/line limits.
  • Explain binary, oversized, deleted, and unavailable diffs.
  • Do not add hunk staging in the first implementation.

Acceptance criteria

  • Keyboard and pointer users can open and close the preview.
  • The main list remains responsive with 1,000 changed files.
  • Repository content is never persisted or sent to a network service.
  • Temporary-repository tests cover staged, unstaged, binary, and truncated cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgitGit workflows and repository operationshelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions