gitbutler icon indicating copy to clipboard operation
gitbutler copied to clipboard

feature: Show active virtual branches in console

Open blowery opened this issue 2 years ago • 2 comments

Lots of folks have fancy terminals that show the currently active branch. But when gitbutler is running things, that's always just gitbutler/integration. It might be nice to have a cli tool that exposes the names of the currently applied virtual branches?

This feels like part of a bigger issue around how this should feel for folks who live on the command line. gitbutler also breaks things like changed lines, how far you're ahead of or behind a tracking branch, etc etc.

blowery avatar Feb 23 '24 15:02 blowery

We are definitely interested in this, but I'm unsure what the timeline could be. There are quite a few improvements we want to make to the rust codebase before we can reliably separate out some CLI functionality.

Fyi @krlvi @Qix-

mtsgrd avatar Mar 13 '24 10:03 mtsgrd

If i understand correctly, this is about showing the refs of vbranches in git branch listing. Currently the vbranches can be found in ls -l .git/refs/gitbutler. One reason we dont show them as regular branches (written in .git/refs/heads) is to not pollute the name space. I think another reason is the state management can get weird if those refs updated manually outside of gb.

As @mtsgrd mentioned, we'd love to add a gitbutler cli that exposes functionality that way too

krlvi avatar Mar 13 '24 10:03 krlvi