1. 09 May, 2016 1 commit
  2. 19 May, 2015 1 commit
    • Junio C Hamano's avatar
      copy.c: make copy_fd() report its status silently · 00b7cbfc
      Junio C Hamano authored
      When copy_fd() function encounters errors, it emits error messages
      itself, which makes it impossible for callers to take responsibility
      for reporting errors, especially when they want to ignore certain
      errors.
      
      Move the error reporting to its callers in preparation.
      
       - copy_file() and copy_file_with_time() by indirection get their
         own calls to error().
      
       - hold_lock_file_for_append(), when told to die on error, used to
         exit(128) relying on the error message from copy_fd(), but now it
         does its own die() instead.  Note that the callers that do not
         pass LOCK_DIE_ON_ERROR need to be adjusted for this change, but
         fortunately there is none ;-)
      
       - filter_buffer_or_fd() has its own error() already, in addition to
         the message from copy_fd(), so this will change the output but
         arguably in a better way.
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      00b7cbfc
  3. 28 Aug, 2014 1 commit
  4. 13 Sep, 2009 1 commit
    • Clemens Buchacher's avatar
      preserve mtime of local clone · f7835a25
      Clemens Buchacher authored
      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: default avatarClemens Buchacher <drizzd@aon.at>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
      f7835a25
  5. 23 Apr, 2008 1 commit
  6. 25 Feb, 2008 1 commit
  7. 07 Jun, 2007 1 commit
    • Junio C Hamano's avatar
      War on whitespace · a6080a0a
      Junio C Hamano authored
      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: default avatarJunio C Hamano <gitster@pobox.com>
      a6080a0a
  8. 16 May, 2007 1 commit
  9. 27 Dec, 2005 1 commit
  10. 20 Dec, 2005 1 commit
  11. 05 Nov, 2005 1 commit
  12. 26 Oct, 2005 1 commit
    • Junio C Hamano's avatar
      pack-objects: Allow use of pre-generated pack. · f3123c4a
      Junio C Hamano authored
      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: default avatarJunio C Hamano <junkio@cox.net>
      f3123c4a