Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search in all past versions of files #256

Open
kantord opened this issue Sep 25, 2023 · 0 comments
Open

Search in all past versions of files #256

kantord opened this issue Sep 25, 2023 · 0 comments

Comments

@kantord
Copy link
Owner

kantord commented Sep 25, 2023

At the moment, SeaGOAT is designed to only search in one specific version of a file. This actually leads to problems when for example a chunk is cached for an older version of the file and we are trying to retrieve it from the current version of the file: #226 (That issue can be worked around, but that is an imperfect solution)

Instead, SeaGOAT should be modified as such:

  • git hash-object should be used to calculate current versions of the file
  • All past versions should be analyzed (with low priority) with their corresponding hash as well
  • The ripgrep source should search in all git blobs with their corresponding hash, and later match them to the most appropriate filename
  • If a file matches the search in multiple versions, all versions should be returned in the JSON, but in the CLI output only the latest version should be shown
@kantord kantord changed the title Search in all past or future versions Search in all past versions of files Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant