Skip to content

Support for reftables in git repos #2941

Open

Description

@vraravam

Git (3.0) will be converting to use reftable format.

I tried for an existing git repo (copied to a temp folder), and the prompt shown is unable to determine the branch name

Image

(the first prompt with invalid is for the same repo converted to using reftables, whereas the 2nd prompt shows for the non-reftable clone)

Activity

  1. mdcclv commented on Apr 1, 2026

    @mdcclv

    Seems to be dependent on this change in libgit2: libgit2/libgit2#7117

  2. NN--- commented on Apr 12, 2026

    @NN---

    I discovered that all my repositories are with the new format.
    It took some time to understand why powerlevel does not display branches.

  3. Freed-Wu commented on May 3, 2026

    @Freed-Wu
    Contributor

    Before it is fixed, you can:

    git refs migrate --ref-format=files
  4. simnalamburt commented on Jul 13, 2026

    @simnalamburt

    @vraravam @mdcclv @NN--- @Freed-Wu I've forked gitstatusd and my version supports --ref-format=reftable

    Soruce code: https://github.com/simnalamburt/gitstatus
    Packaging: https://github.com/simnalamburt/homebrew-x/blob/main/Formula/gitstatus.rb
    Installation:

    brew install simnalamburt/x/gitstatus
    export GITSTATUS_DAEMON=/opt/homebrew/bin/gitstatusd

    No need to touch p10k. Just replace the gitstatusd with mine.

    All I did was fork gitstatusd and update its libgit2 dependency to the latest version.

    For the context behind why this fork exists, please refer to the following link: romkatv/gitstatus#455 (comment)

  5. vraravam commented on Jul 27, 2026

    @vraravam
    Author

    thanks @simnalamburt - but, I have moved away from p10k to starship.

  6. simnalamburt commented on Jul 27, 2026

    @simnalamburt

    OK 🥺 but p10k is still faster than starship though 🥺

    a.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions