Skip to content

Commit bd691c5

Browse files
committed
fix: remove duplicate methods found by rubocop
1 parent 58c4af3 commit bd691c5

File tree

3 files changed

+1
-30
lines changed

3 files changed

+1
-30
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9-
# Offense count: 2
10-
Lint/DuplicateMethods:
11-
Exclude:
12-
- 'lib/git/base.rb'
13-
- 'lib/git/worktree.rb'
14-
159
# Offense count: 1
1610
# Configuration parameters: AllowComments, AllowEmptyLambdas.
1711
Lint/EmptyBlock:

lib/git/base.rb

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -182,29 +182,6 @@ def add_remote(name, url, opts = {})
182182
Git::Remote.new(self, name)
183183
end
184184

185-
# Create a new git tag
186-
#
187-
# @example
188-
# repo.add_tag('tag_name', object_reference)
189-
# repo.add_tag('tag_name', object_reference, {:options => 'here'})
190-
# repo.add_tag('tag_name', {:options => 'here'})
191-
#
192-
# @param [String] name The name of the tag to add
193-
# @param [Hash] options Opstions to pass to `git tag`.
194-
# See [git-tag](https://git-scm.com/docs/git-tag) for more details.
195-
# @option options [boolean] :annotate Make an unsigned, annotated tag object
196-
# @option options [boolean] :a An alias for the `:annotate` option
197-
# @option options [boolean] :d Delete existing tag with the given names.
198-
# @option options [boolean] :f Replace an existing tag with the given name (instead of failing)
199-
# @option options [String] :message Use the given tag message
200-
# @option options [String] :m An alias for the `:message` option
201-
# @option options [boolean] :s Make a GPG-signed tag.
202-
#
203-
def add_tag(name, *options)
204-
lib.tag(name, *options)
205-
tag(name)
206-
end
207-
208185
# changes current working directory for a block
209186
# to the git working directory
210187
#

lib/git/worktree.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
module Git
66
class Worktree < Path
7-
attr_accessor :full, :dir, :gcommit
7+
attr_accessor :full, :dir
88

99
def initialize(base, dir, gcommit = nil)
1010
@full = dir

0 commit comments

Comments
 (0)