Method: Git::Lib#stashes_all
- Defined in:
- lib/git/lib.rb
#stashes_all ⇒ Object
481 482 483 484 485 486 487 488 489 490 491 |
# File 'lib/git/lib.rb', line 481 def stashes_all arr = [] filename = File.join(@git_dir, 'logs/refs/stash') if File.exist?(filename) File.open(filename).each_with_index { |line, i| m = line.match(/:(.*)$/) arr << [i, m[1].strip] } end arr end |