Skip to content
Commits on Sep 13, 2009
  1. @drizzd @gitster

    preserve mtime of local clone

    drizzd committed with gitster
    A local clone without hardlinks copies all objects, including dangling
    ones, to the new repository. Since the mtimes are renewed, those
    dangling objects cannot be pruned by "git gc --prune", even if they
    would have been old enough for pruning in the original repository.
    Instead, preserve mtime during copy. "git gc --prune" will then work
    in the clone just like it did in the original.
    Signed-off-by: Clemens Buchacher <>
    Signed-off-by: Junio C Hamano <>
Commits on Apr 23, 2008
  1. @gitster

    copy.c: copy_fd - correctly report write errors

    Ariel Badichi committed with gitster
    Previously, the errno could have been lost due to an intervening
    close() call.
    This patch also contains minor cosmetic changes.
    Signed-off-by: Ariel Badichi <>
    Signed-off-by: Junio C Hamano <>
Commits on Feb 25, 2008
  1. @gitster

    Use a single implementation and API for copy_file()

    Daniel Barkalow committed with gitster
    Originally by Kristian Hï¿œgsberg; I fixed the conversion of rerere, which
    had a different API.
    Signed-off-by: Daniel Barkalow <>
    Signed-off-by: Junio C Hamano <>
Commits on Jun 7, 2007
  1. @gitster

    War on whitespace

    gitster committed
    This uses "git-apply --whitespace=strip" to fix whitespace errors that have
    crept in to our source files over time.  There are a few files that need
    to have trailing whitespaces (most notably, test vectors).  The results
    still passes the test, and build result in Documentation/ area is unchanged.
    Signed-off-by: Junio C Hamano <>
Commits on May 16, 2007
  1. @jherland

    Ensure return value from xread() is always stored into an ssize_t

    jherland committed with Junio C Hamano
    This patch fixes all calls to xread() where the return value is not
    stored into an ssize_t. The patch should not have any effect whatsoever,
    other than putting better/more appropriate type names on variables.
    Signed-off-by: Johan Herland <>
    Signed-off-by: Junio C Hamano <>
Commits on Dec 27, 2005
  1. copy_fd: close ifd on error

    Sam Ravnborg committed with Junio C Hamano
    In copy_fd when write fails we ought to close input file descriptor.
    Signed-off-by: Sam Ravnborg <>
    Signed-off-by: Junio C Hamano <>
Commits on Dec 20, 2005
  1. xread/xwrite: do not worry about EINTR at calling sites.

    Junio C Hamano committed
    We had errno==EINTR check after read(2)/write(2) sprinkled all
    over the places, always doing continue.  Consolidate them into
    xread()/xwrite() wrapper routines.
    Credits for suggestion goes to HPA -- bugs are mine.
    Signed-off-by: Junio C Hamano <>
Commits on Nov 5, 2005
  1. copy.c::copy_fd() - do not leak file descriptor on error return.

    Junio C Hamano committed
    Signed-off-by: Junio C Hamano <>
Commits on Oct 26, 2005
  1. pack-objects: Allow use of pre-generated pack.

    Junio C Hamano committed
    git-pack-objects can reuse pack files stored in $GIT_DIR/pack-cache
    directory, when a necessary pack is found.  This is hopefully useful
    when upload-pack (called from git-daemon) is expected to receive
    requests for the same set of objects many times (e.g full cloning
    request of any project, or updates from the set of heads previous day
    to the latest for a slow moving project).
    Currently git-pack-objects does *not* keep pack files it creates for
    reusing.  It might be useful to add --update-cache option to it,
    which would allow it store pack files it created in the pack-cache
    directory, and prune rarely used ones from it.
    Signed-off-by: Junio C Hamano <>
Something went wrong with that request. Please try again.