Sha256: d5262eeaaf1807a043a935a46015564b6f1a6cc4f4a9a8757a876b664d6326d9

Contents?: true

Size: 355 Bytes

Versions: 12

Compression:

Stored size: 355 Bytes

Contents

#!/usr/bin/env ruby

# Deletes (almost) every branch already merged into current branch.
# Exceptions are `master`, `staging`, and `development`, and the current
# branch, which are preserved.
preserved = "(master|staging|development)"
cmd  = %(git branch --merged | grep -v "\*" | egrep -v "#{preserved}" | )
cmd += 'xargs -n 1 git branch -d'
system cmd

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
git-utils-0.5.8 bin/git-cleanup
git-utils-0.5.7 bin/git-cleanup
git-utils-0.5.6 bin/git-cleanup
git-utils-0.5.5 bin/git-cleanup
git-utils-0.5.4 bin/git-cleanup
git-utils-0.5.3 bin/git-cleanup
git-utils-0.5.2 bin/git-cleanup
git-utils-0.5.1 bin/git-cleanup
git-utils-0.5.0 bin/git-cleanup
git-utils-0.1.2 bin/git-cleanup
git-utils-0.1.1 bin/git-cleanup
git-utils-0.1.0 bin/git-cleanup