Skip to content

brancher: yields working tree on clean state #2386

@ghost

Description

On the description of brancher it reads the following:

    Yields:
        str: the display name for the currently selected tree, it could be:
            - a git revision identifier
            - empty string it there is no branches to iterate over
            - "Working Tree" if there are uncommited changes in the SCM repo

The relevant part is the last one, it should yield the "working tree" only if the repository is dirty.
It would be fixed with the following (under brancher.py):

    if repo.scm.is_dirty():
        yield "working tree"

I think this make sense, because for dvc metrics show it is annoying to see the "working tree" when there's no difference from the current branch.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions