Method: Git::Lib#each_cat_file_header
- Defined in:
- lib/git/lib.rb
#each_cat_file_header(data)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
520 521 522 523 524 525 526 527 528 529 |
# File 'lib/git/lib.rb', line 520 def each_cat_file_header(data) while (match = CAT_FILE_HEADER_LINE.match(data.shift)) key = match[:key] value_lines = [match[:value]] value_lines << data.shift.lstrip while data.first.start_with?(' ') yield key, value_lines.join("\n") end end |