Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 4 files changed
  • 0 comments
  • 1 contributor
4  bin/git-cleanup
@@ -15,6 +15,10 @@ opts = OptionParser.new do |opts|
15 15
 	opts.on("-s", "--skip-unmerged", "Unmerge branches will be skipped") do |u|
16 16
 		conf[:skip_unmerged] = true
17 17
 	end
  18
+  opts.on("-v", "--version", "Shows version") do
  19
+    puts GitCleanup::VERSION
  20
+    exit
  21
+  end
18 22
 	opts.on("-h", "--help", "Shows this help") do
19 23
     puts opts
20 24
     exit
3  git-cleanup.gemspec
... ...
@@ -1,9 +1,10 @@
1 1
 # -*- encoding: utf-8 -*-
2 2
 $:.push File.expand_path("../lib", __FILE__)
  3
+require "git-cleanup/version"
3 4
 
4 5
 Gem::Specification.new do |s|
5 6
   s.name        = "git-cleanup"
6  
-  s.version     = "0.1.3"
  7
+  s.version     = GitCleanup::VERSION
7 8
   s.platform    = Gem::Platform::RUBY
8 9
   s.authors     = ["Martyn Loughran"]
9 10
   s.email       = ["me@mloughran.com"]
1  lib/git-cleanup.rb
@@ -94,3 +94,4 @@ def self.prune(repo)
94 94
 
95 95
 require 'git-cleanup/branch'
96 96
 require 'git-cleanup/helper'
  97
+require 'git-cleanup/version'
3  lib/git-cleanup/version.rb
... ...
@@ -0,0 +1,3 @@
  1
+class GitCleanup
  2
+  VERSION = "0.2.0"
  3
+end

No commit comments for this range

Something went wrong with that request. Please try again.