Repeating the command against a database with more than one namespace can result in commits being missed, because all commits across all namespaces will be skipped - especially problematic if you try to run against the same file but using a different namespace.
Solution: this code should take the current namespace into account:
|
def get_commit_hashes(db): |
|
return ( |
|
set(r[0] for r in db.execute("select hash from commits").fetchall()) |
|
if db["commits"].exists() |
|
else set() |
|
) |
Repeating the command against a database with more than one namespace can result in commits being missed, because all commits across all namespaces will be skipped - especially problematic if you try to run against the same file but using a different namespace.
Solution: this code should take the current namespace into account:
git-history/git_history/cli.py
Lines 519 to 524 in bd61d92