1. 05 12月, 2009 1 次提交
  2. 11 11月, 2009 1 次提交
  3. 20 10月, 2009 1 次提交
  4. 08 10月, 2009 1 次提交
  5. 28 6月, 2009 2 次提交
  6. 02 5月, 2009 1 次提交
  7. 30 4月, 2009 1 次提交
    • A
      replace direct calls to unlink(2) with unlink_or_warn · 691f1a28
      Alex Riesen 提交于
      This helps to notice when something's going wrong, especially on
      systems which lock open files.
      
      I used the following criteria when selecting the code for replacement:
      - it was already printing a warning for the unlink failures
      - it is in a function which already printing something or is
        called from such a function
      - it is in a static function, returning void and the function is only
        called from a builtin main function (cmd_)
      - it is in a function which handles emergency exit (signal handlers)
      - it is in a function which is obvously cleaning up the lockfiles
      Signed-off-by: NAlex Riesen <raa.lkml@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      691f1a28
  8. 23 4月, 2009 2 次提交
  9. 28 3月, 2009 1 次提交
  10. 26 3月, 2009 1 次提交
  11. 08 3月, 2009 1 次提交
  12. 26 2月, 2009 1 次提交
    • J
      Make sure objects/pack exists before creating a new pack · 6e180cdc
      Junio C Hamano 提交于
      In a repository created with git older than f49fb35d (git-init-db: create
      "pack" subdirectory under objects, 2005-06-27), objects/pack/ directory is
      not created upon initialization.  It was Ok because subdirectories are
      created as needed inside directories init-db creates, and back then,
      packfiles were recent invention.
      
      After the said commit, new codepaths started relying on the presense of
      objects/pack/ directory in the repository.  This was exacerbated with
      8b4eb6b6 (Do not perform cross-directory renames when creating packs,
      2008-09-22) that moved the location temporary pack files are created from
      objects/ directory to objects/pack/ directory, because moving temporary to
      the final location was done carefully with lazy leading directory creation.
      
      Many packfile related operations in such an old repository can fail
      mysteriously because of this.
      
      This commit introduces two helper functions to make things work better.
      
       - odb_mkstemp() is a specialized version of mkstemp() to refactor the
         code and teach it to create leading directories as needed;
      
       - odb_pack_keep() refactors the code to create a ".keep" file while
         create leading directories as needed.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6e180cdc
  13. 11 2月, 2009 2 次提交
  14. 26 1月, 2009 1 次提交
  15. 14 1月, 2009 1 次提交
  16. 21 12月, 2008 1 次提交
  17. 20 12月, 2008 1 次提交
  18. 16 12月, 2008 1 次提交
  19. 15 12月, 2008 1 次提交
    • Y
      git-fast-import possible memory corruption problem · 2fad5329
      YONETANI Tomokazu 提交于
      Internal "allocate in bulk, we will never free this memory anyway"
      allocator used in fast-import had a logic to round up the size of the
      requested memory block in a wrong place (it computed if the available
      space is enough to fit the request first, and then carved a chunk of
      memory by size rounded up to the alignment, which could go beyond the
      actually available space).
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2fad5329
  20. 03 10月, 2008 1 次提交
    • N
      fix openssl headers conflicting with custom SHA1 implementations · 9126f009
      Nicolas Pitre 提交于
      On ARM I have the following compilation errors:
      
          CC fast-import.o
      In file included from cache.h:8,
                       from builtin.h:6,
                       from fast-import.c:142:
      arm/sha1.h:14: error: conflicting types for 'SHA_CTX'
      /usr/include/openssl/sha.h:105: error: previous declaration of 'SHA_CTX' was here
      arm/sha1.h:16: error: conflicting types for 'SHA1_Init'
      /usr/include/openssl/sha.h:115: error: previous declaration of 'SHA1_Init' was here
      arm/sha1.h:17: error: conflicting types for 'SHA1_Update'
      /usr/include/openssl/sha.h:116: error: previous declaration of 'SHA1_Update' was here
      arm/sha1.h:18: error: conflicting types for 'SHA1_Final'
      /usr/include/openssl/sha.h:117: error: previous declaration of 'SHA1_Final' was here
      make: *** [fast-import.o] Error 1
      
      This is because openssl header files are always included in
      git-compat-util.h since commit 684ec6c6 whenever NO_OPENSSL is not
      set, which somehow brings in <openssl/sha1.h> clashing with the custom
      ARM version.  Compilation of git is probably broken on PPC too for the
      same reason.
      
      Turns out that the only file requiring openssl/ssl.h and openssl/err.h
      is imap-send.c.  But only moving those problematic includes there
      doesn't solve the issue as it also includes cache.h which brings in the
      conflicting local SHA1 header file.
      
      As suggested by Jeff King, the best solution is to rename our references
      to SHA1 functions and structure to something git specific, and define those
      according to the implementation used.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      9126f009
  21. 23 9月, 2008 1 次提交
  22. 01 9月, 2008 1 次提交
  23. 30 8月, 2008 1 次提交
  24. 20 7月, 2008 1 次提交
    • A
      Support gitlinks in fast-import. · 03db4525
      Alexander Gavrilov 提交于
      Currently fast-import/export cannot be used for
      repositories with submodules. This patch extends
      the relevant programs to make them correctly
      process gitlinks.
      
      Links can be represented by two forms of the
      Modify command:
      
      M 160000 SHA1 some/path
      
      which sets the link target explicitly, or
      
      M 160000 :mark some/path
      
      where the mark refers to a commit. The latter
      form can be used by importing tools to build
      all submodules simultaneously in one physical
      repository, and then simply fetch them apart.
      Signed-off-by: NAlexander Gavrilov <angavrilov@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      03db4525
  25. 14 7月, 2008 1 次提交
    • S
      Make usage strings dash-less · 1b1dd23f
      Stephan Beyer 提交于
      When you misuse a git command, you are shown the usage string.
      But this is currently shown in the dashed form.  So if you just
      copy what you see, it will not work, when the dashed form
      is no longer supported.
      
      This patch makes git commands show the dash-less version.
      
      For shell scripts that do not specify OPTIONS_SPEC, git-sh-setup.sh
      generates a dash-less usage string now.
      Signed-off-by: NStephan Beyer <s-beyer@gmx.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1b1dd23f
  26. 01 6月, 2008 1 次提交
  27. 17 5月, 2008 1 次提交
  28. 15 5月, 2008 1 次提交
  29. 17 3月, 2008 1 次提交
  30. 09 3月, 2008 1 次提交
  31. 03 3月, 2008 1 次提交
  32. 16 2月, 2008 4 次提交
  33. 21 1月, 2008 2 次提交