Git-bug 0.12 introduces SQLite caching and native Git transport support
Git-bug 0.12 replaces its search index with SQLite and removes repository-wide locking to allow concurrent process access.
Summary
Git-bug, the distributed Git-based issue tracker, has released version 0.12, featuring a major architectural overhaul of its caching and indexing systems. The update replaces the previous Bleve search index and separate excerpt files with a single SQLite database utilizing FTS5 full-text search. This change simplifies the internal structure and removes previous limitations on the number of search results returned to the user.
Beyond indexing, the release eliminates repository-wide locking, enabling developers to run multiple git-bug commands simultaneously across different terminal or web interfaces. The update also introduces an optional native Git transport mode that leverages the system's installed Git executable for remote operations, while maintaining the go-git implementation as the default. Additionally, a new 'gitconfig' Go library has been introduced to handle complex Git configuration files, including support for include and includeIf directives.
Technical improvements in Git-bug 0.12
- Caching and Concurrency: The removal of repository-wide locking allows for concurrent access by multiple processes, while the new SQLite-based cache can detect external Git operations like pushes and pulls to trigger incremental updates.
- Search Architecture: Transitioning from Bleve to SQLite with FTS5 full-text search removes the 10-match limit on search results and consolidates indexing into a single database file.
- Transport Layer: Users can now opt into a native Git transport via
git config git-bug.git-transport git ., allowing the tool to use the system's Git binary for push and pull operations instead of the default go-git library. - Configuration Management: The new 'gitconfig' Go library provides robust handling of Git configuration scopes and preserves file formatting and comments when modifying settings.
- Data Integrity: The release implements atomic GraphQL mutations to ensure that all changes within a single request are committed as a single unit or not at all.
Why it matters
These changes make git-bug more suitable for professional development workflows where multiple tools or terminal sessions interact with the same repository simultaneously. The move to SQLite and native Git transport improves reliability and compatibility with existing system-level Git configurations and remote protocols.
Original reference: linuxiac.com →