gitext-rs / git-stack

Stacked branch management for Git
Apache License 2.0
508 stars 19 forks source link

Ignore stale branches #111

Closed epage closed 2 years ago

epage commented 2 years ago

Version

No response

Use Case

@Bouke when dealing with overwhelming output from git-stack

Branches not in active use go stale. Maybe we should ignore branches without a recent commit?

Split from #107

Requirements

No response

Possible Solutions

No response

epage commented 2 years ago

Apparently, a hg sl did just that.

The thing I'm trying to weigh out is stale branches are probably kept for a reason and hiding them might be almost the same thing as deleting them, at least if you only view branches in git stack, like me.

arxanas commented 2 years ago

When hg sl did that, it would display a notice at the bottom saying "X commits older than 2 weeks were hidden, use --all to see them", so I never felt like those commits were lost forever.

epage commented 2 years ago

I feel like a general notice like that will slowly get ignored by users.

I think a hybrid could work though, a message like

Branches A, B, C were older than X weeks, use --all to see them

with coloring of the branch names, this would make it so they are never out of sight but they don't make the visualization ugly.