Skip to content

Conversation

@dwillett
Copy link

@dwillett dwillett commented Dec 7, 2025

Summary

  • Add support for git repositories using the reftable format (available in Git 2.45+)
  • Detect reftable repos by checking for reftable/ directory
  • Use async git commands to get branch name since reftable doesn't use traditional HEAD file
  • Watch reftable/tables.list for branch changes instead of HEAD

Fixes #1472

current_git_branch = ''
end
branch_cache[vim.api.nvim_get_current_buf()] = current_git_branch
branch_cache[bufnr] = current_git_branch
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note: addresses slight race condition potential

@dwillett dwillett marked this pull request as ready for review December 7, 2025 20:25
@dwillett dwillett changed the title Add support for reftable in git_branch component git_branch: Add support for reftable format Dec 7, 2025
@dwillett dwillett force-pushed the git-branch-reftable-support branch from 0f8ec0c to a634618 Compare December 7, 2025 20:36
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

Successfully merging this pull request may close these issues.

Bug: branch name shows .invalid with git reftable

1 participant