Skip to content

Always show specific branch/bookmarkΒ #959

Open
@EntilZha

Description

Is there a way to always display a branch/bookmark when running sl? In my case, we have:

  • Repository with main
  • A small number of long running branches that may or may not get merged into main. Maybe call one of this dev-a
  • Our workflow is to treat dev-a as effectively our main branch to merge against.
  • Every so often, we rebase/merge dev-a onto main.

I've noticed that if I am working on a change so that there is a chain: dev-a -> changes (so dev-a points to an ancestor of my current changes), but then I run sl pull -B dev-a such that it now points to a more recent commit (i.e., not an ancestor of my current commits), that smartlog will now only show main + my stack of commits, but not show where dev-a points to. It would be great to have a way to mark certain branches/bookmarks as ones to always show, similar to main/master.

I'd also be curious if there is a way to use sl pr to submit PRs against non-main branches.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions