Delete merged branches

Open
#1,085 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Stale
Tech stack
git
Domain
devops

Research direction

Start with the repository's remote branch list and run the provided git rev-list command against origin/develop, comparing the results with the explicitly listed branches. Review the remaining branches for whether they were merged, rebased, or are outdated before removing only those no longer required. Done means obsolete remote branches are deleted while active branches and master/develop remain.

Written by the indexing model from the issue text.

Description

https://github.com/boostorg/boost/branches/all shows currently 24 branches other than develop/master. They should be cleaned up to remove those already merged or no longer required.

It seems most have been merged already or might no longer apply. The stats shown on that overview page are misleading as they show the difference to the default branch, i.e. master but we merge to develop

Using for i in $(git branch -r | grep -vE 'master|develop'); do echo $i; git rev-list --left-right --count origin/develop..$i; done to get an overview shows (see bottom) that the following branches can be safely deleted:

  • origin/doxygen1.8.15
  • origin/feature/add-histogram
  • origin/feature/add-outcome
  • origin/feature/bcp-namespace
  • origin/feature/boostcpp-py
  • origin/feature/clang-darwin-cxxstd-11
  • origin/feature/docutils
  • origin/feature/fix-status-tools
  • origin/feature/gha
  • origin/feature/travis-cmake
  • origin/feature/travis-cmake-2
  • origin/feature/travis-submodules-j3
  • origin/feature/travis-xenial
  • origin/regression/reporting
  • origin/revert-854-patch-9
  • origin/revert-901-revert-854-patch-9 (shows 1 ahead, but was rebase-merged)
  • origin/feature/remove-travis-packages (rebase-merged or outdated)

It looks like at least some of the others have been merged/rebased/included as well or are outdated.

origin/circle2
0	11
origin/doxygen1.8.15
0	0
origin/feature/add-histogram
0	0
origin/feature/add-outcome
0	0
origin/feature/bcp-namespace
0	0
origin/feature/boost-install-reqs
0	1
origin/feature/boostcpp-py
0	0
origin/feature/clang-darwin-cxxstd-11
0	0
origin/feature/cmake-config
0	58
origin/feature/docutils
0	0
origin/feature/fix-status-tools
0	0
origin/feature/gha
0	0
origin/feature/install-cmake-config
0	4
origin/feature/install-cmake-config-2
0	8
origin/feature/pkgconfig
0	2
origin/feature/remove-travis-packages
0	4
origin/feature/reorder-gitmodules
0	103
origin/feature/travis-cmake
0	0
origin/feature/travis-cmake-2
0	0
origin/feature/travis-submodules-j3
0	0
origin/feature/travis-xenial
0	0
origin/regression/reporting
0	0
origin/revert-854-patch-9
0	0
origin/revert-901-revert-854-patch-9
0	1
Dominant language
HTML
Stars
8.6k
Forks
2k
Avg merge
9h 35m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/boost

All issues in boostorg/boost

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.