]> git.cworth.org Git - sup/commit
don't automatically parse header on Message#new
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 26 Apr 2009 22:18:26 +0000 (18:18 -0400)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 26 Apr 2009 22:20:15 +0000 (18:20 -0400)
commit447533afd212ee3080ffac85aa56b30180fce1ec
tree58a41cac9b41f49cbe976ed04ce0ac74249cfb4c
parente24ea497cf4f86f0e6b99e3333b39aeb0f71c11f
don't automatically parse header on Message#new

You must now explicitly call #parse_header (e.g. when loading
from the index) or #load_from_source! (e.g. when loading from
disk).

This prevents redundant loading from the source when adding to the
index, as #snippet must be called before adding, and that requires
loading the entire message from the source.
lib/sup/index.rb
lib/sup/message.rb
lib/sup/poll.rb