Skip to content

Speed up protected branch detection #222

Open
@epage

Description

@epage

Please complete the following tasks

  • I have searched the discussions
  • I have searched the existing issues

Description

In #216, we found that git stack can be slow calculating protected bases when some of them are far from each other or the topic branches.

Version

v0.8.0

Steps to reproduce

git clone https://github.com/westermo/linux/
cd linux
time git stack
git checkout 8dc84dc
git checkout -b foo
gvim COPYING
git commit -a -m "foo"
time git stack
git co master
git branch -D foo
time git stack

Actual Behaviour

Takes 6s

Expected Behaviour

Should take <1s

Debug Output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugNot as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions