Skip to content

Commit 9da1e91

Browse files
committed
fix: remove deprecation from Git::Stash
Since Git::Stash#initialize is an internal only method, remove the deprecation warning and removed the deprecated code.
1 parent ab1e207 commit 9da1e91

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

lib/git/stash.rb

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,7 @@
33
module Git
44
# A stash in a Git repository
55
class Stash
6-
def initialize(base, message, existing = nil, save: nil)
7-
unless existing.nil?
8-
Git::Deprecation.warn(
9-
'The "existing" argument is deprecated and will be removed in a future version. Use "save:" instead.'
10-
)
11-
end
12-
13-
# default is false
14-
save = existing.nil? && save.nil? ? false : save | existing
15-
6+
def initialize(base, message, save: false)
167
@base = base
178
@message = message
189
self.save unless save

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy