Skip to content

Remove deleted files from records file when --stage-record-file flag is used #31

Closed

Description

@frankieyan

Currently, because we throw when a non-existant path is encountered, we are unable to remove deleted files from the records file.

This was introduced in #21, where we used to read deleted files directly from git prior to that change. Since requiring a file list, it no longer checks for deleted files.

Activity

  1. self-assigned this
    on Jan 20, 2026
  2. frankieyan commented on Jan 22, 2026

    @frankieyan
    MemberAuthor

    lint-staged by default doesn't pass in deleted file paths. It'd be better UX to have the tool check all paths for existance and remove those that no longer exist.

  3. added a commit that references this issue on Jan 22, 2026
    f0c5714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions