Hacker News new | ask | show | jobs
by kevinschoon 920 days ago
Not currently. Implementing search for Git repositories in a web interface is a bit tricky since you need to traverse all of the plain text files at a given commit. One approach might be to put it all in SQLite and then use it's full text search. Still need to figure out a good design for this.
1 comments

> is a bit tricky since you need to traverse all of the plain text files at a given commit

If my mental model is correct, one would need to do that on first commit (or first push, if someone is populating your repo from an existing local repo), but from that point forward the search indexer is actually notified of changes due to the magic of $(git diff --name-only)