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 b97ff5e commit 257fd8dCopy full SHA for 257fd8d
lib/git/lib.rb
@@ -413,9 +413,12 @@ def stash_save(message)
413
output =~ /HEAD is now at/
414
end
415
416
- def stash_apply(id)
417
- command('stash apply', [id])
418
- # Already uptodate! ---???? What then
+ def stash_apply(id = nil)
+ if id
+ command('stash apply', [id])
419
+ else
420
+ command('stash apply')
421
+ end
422
423
424
def stash_clear
lib/git/stashes.rb
@@ -22,8 +22,8 @@ def save(message)
22
@stashes.unshift(s) if s.saved?
23
24
25
- def apply(index=0)
26
- @base.lib.stash_apply(index.to_i)
+ def apply(index=nil)
+ @base.lib.stash_apply(index)
27
28
29
def clear
0 commit comments