lib/git_store/tree.rb
def put(name, value)
      @modified = true
      name = name.to_s
      
      if value.is_a?(Tree)
        value.path = child_path(name)
        table[name] = value
      else
        blob = table[name]
        blob = Blob.new(store) if not blob.is_a?(Blob)
        blob.path = child_path(name)
        blob.object = value
        table[name] = blob          
      end

      value
    end
# Write entry with specified name.
Write entry with specified name.
Write entry with specified name .
def put(name, value)
      @modified = true
      name = name.to_s
      if value.is_a?(Tree)
        value.path = child_path(name)
        table[name] = value
      else
        blob = table[name]
        blob = Blob.new(store) if not blob.is_a?(Blob)
        blob.path = child_path(name)
        blob.object = value
        table[name] = blob          
      end
      value
    end
def put ( name , value ) @modified = true name = name . to_s if value . is_a? ( Tree ) value . path = child_path ( name ) table [ name ] = value else blob = table [ name ] blob = Blob . new ( store ) if not blob . is_a? ( Blob ) blob . path = child_path ( name ) blob . object = value table [ name ] = blob end value end
Write entry with specified name.
Write entry with specified name .
name
value