Skip to content

git-lfs fsck (bitrot detection) #262

Closed

Description

@christophershirk

Would anyone else find it useful if git-lfs offered a fsck command that verified the integrity of tracked (large) files? Re-calculating hashes for files under .git/lfs/objects and comparing against the object name (dir+filename) could serve as an integrity check.

My goal with this would be to detect bitrot in large files like photos and mp3s.

Activity

  1. technoweenie commented on Apr 24, 2015

    @technoweenie
    Contributor

    I think this would be cool 👍 Seems like it could go hand in hand with #260.

  2. technoweenie commented on Apr 28, 2015

    @technoweenie
    Contributor

    FWIW this would've helped an issue like #266

  3. christophershirk commented on May 1, 2015

    @christophershirk
    Author

    I have a rough implementation up at https://github.com/zeroshirts/git-lfs. @technoweenie , could you take a quick look and comment on my approach? I need to add unit tests, at the very least.

  4. technoweenie commented on May 1, 2015

    @technoweenie
    Contributor

    Cool, can you open a pull request? You can create one from the compare view. It's also typically best to start off in your own branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions