Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Sep 10, 2014
  1. @dscho @gitster

    fsck_object(): allow passing object data separately from the object i…

    dscho authored gitster committed
    …tself
    
    When fsck'ing an incoming pack, we need to fsck objects that cannot be
    read via read_sha1_file() because they are not local yet (and might even
    be rejected if transfer.fsckobjects is set to 'true').
    
    For commits, there is a hack in place: we basically cache commit
    objects' buffers anyway, but the same is not true, say, for tag objects.
    
    By refactoring fsck_object() to take the object buffer and size as
    optional arguments -- optional, because we still fall back to the
    previous method to look at the cached commit objects if the caller
    passes NULL -- we prepare the machinery for the upcoming handling of tag
    objects.
    
    The assumption that such buffers are inherently NUL terminated is now
    wrong, of course, hence we pass the size of the buffer so that we can
    add a sanity check later, to prevent running past the end of the buffer.
    
    Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Nov 16, 2009
  1. @gitster

    Check the format of more printf-type functions

    Tarmigan Casebolt authored gitster committed
    We already have these checks in many printf-type functions that have
    prototypes which are in header files.  Add these same checks to some
    more prototypes in header functions and to static functions in .c
    files.
    
    cc: Miklos Vajna <vmiklos@frugalware.org>
    Signed-off-by: Tarmigan Casebolt <tarmigan+git@gmail.com>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Apr 23, 2009
  1. @MikeRalphson @gitster

    Fix typos / spelling in comments

    MikeRalphson authored gitster committed
    Signed-off-by: Mike Ralphson <mike@abacus.co.uk>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Commits on Feb 26, 2008
  1. @gitster

    add common fsck error printing function

    Martin Koegler authored gitster committed
    Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @gitster

    builtin-fsck: move common object checking code to fsck.c

    Martin Koegler authored gitster committed
    Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  3. @gitster

    add generic, type aware object chain walker

    Martin Koegler authored gitster committed
    The requirements are:
    * it may not crash on NULL pointers
    * a callback function is needed, as index-pack/unpack-objects
      need to do different things
    * the type information is needed to check the expected <-> real type
      and print better error messages
    
    Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.