We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab1e207 commit 9da1e91Copy full SHA for 9da1e91
lib/git/stash.rb
@@ -3,16 +3,7 @@
3
module Git
4
# A stash in a Git repository
5
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
+ def initialize(base, message, save: false)
16
@base = base
17
@message = message
18
self.save unless save
0 commit comments