Skip to content

Hash cache #580

@infinisil

Description

@infinisil

Is your feature request related to a problem? Please describe.

With frequent Git (or similar) operations, treefmt often needs to reformat all files, even though almost none changed, since the timestamps got updated, therefore invalidating the cache.

Describe the solution you'd like

A cache of hashes that are known to be formatted. So when it would format a file, it first checks if its hash is in the cache. If yes, no action necessary. If no, format it and add the new hash to the cache.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions