Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Apr 21, 2007

  1. Linus Torvalds

    Fix a copy-n-paste bug in the object decorator code.

    Duh.
    
    When I did the object decorator thing, I made the "loop over the hash"
    function use the same logic for updating the hash, ie made them use
    
    	if (++j >= size)
    		j = 0;
    
    for both the hash update for both "insert" and "lookup"
    
    HOWEVER.
    
    For some inexplicable reason I had an extraneous
    
    	j++;
    
    in the insert path (probably just from the fact that the old code there
    used
    
    	j++;
    	if (j >= size)
    		j = 0;
    
    and when I made them use the same logic I just didn't remove the old
    extraneous line properly.
    
    This fixes it.
    
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    torvalds authored Junio C Hamano committed

Apr 16, 2007

  1. Linus Torvalds

    Add a generic "object decorator" interface, and make object refs use it

    This allows you to add an arbitrary "decoration" of your choice to any
    object.  It's a space- and time-efficient way to add information to
    arbitrary objects, especially if most objects probably do not have the
    decoration.
    
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: Junio C Hamano <junkio@cox.net>
    torvalds authored Junio C Hamano committed
Something went wrong with that request. Please try again.