1. 03 9月, 2006 1 次提交
    • C
      Trace into a file or an open fd and refactor tracing code. · 6ce4e61f
      Christian Couder 提交于
      If GIT_TRACE is set to an absolute path (starting with a
      '/' character), we interpret this as a file path and we
      trace into it.
      
      Also if GIT_TRACE is set to an integer value greater than
      1 and lower than 10, we interpret this as an open fd value
      and we trace into it.
      
      Note that this behavior is not compatible with the
      previous one.
      
      We also trace whole messages using one write(2) call to
      make sure messages from processes do net get mixed up in
      the middle.
      
      This patch makes it possible to get trace information when
      running "make test".
      Signed-off-by: NChristian Couder <chriscool@tuxfamily.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      6ce4e61f
  2. 02 9月, 2006 1 次提交
    • S
      Replace uses of strdup with xstrdup. · 9befac47
      Shawn Pearce 提交于
      Like xmalloc and xrealloc xstrdup dies with a useful message if
      the native strdup() implementation returns NULL rather than a
      valid pointer.
      
      I just tried to use xstrdup in new code and found it to be missing.
      However I expected it to be present as xmalloc and xrealloc are
      already commonly used throughout the code.
      
      [jc: removed the part that deals with last_XXX, which I am
       finding more and more dubious these days.]
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      9befac47
  3. 01 9月, 2006 1 次提交
  4. 27 8月, 2006 2 次提交
    • R
      Add git-zip-tree · e4fbbfe9
      Rene Scharfe 提交于
      In the Windows world ZIP files are better supported than tar files.
      Windows even includes built-in support for ZIP files nowadays.
      
      git-zip-tree is similar to git-tar-tree; it creates ZIP files out of
      git trees.  It stores the commit ID (if available) in a ZIP file comment
      which can be extracted by unzip.
      
      There's still quite some room for improvement: this initial version
      supports no symlinks, calls write() way too often (three times per file)
      and there is no unit test.
      
      [jc: with a minor typefix to avoid void* arithmetic]
      Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e4fbbfe9
    • J
      Use xrealloc instead of realloc · 83572c1a
      Jonas Fonseca 提交于
      Change places that use realloc, without a proper error path, to instead use
      xrealloc. Drop an erroneous error path in the daemon code that used errno
      in the die message in favour of the simpler xrealloc.
      Signed-off-by: NJonas Fonseca <fonseca@diku.dk>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      83572c1a
  5. 24 8月, 2006 1 次提交
  6. 16 8月, 2006 1 次提交
  7. 11 8月, 2006 1 次提交
  8. 09 8月, 2006 1 次提交
  9. 04 8月, 2006 7 次提交
  10. 03 8月, 2006 2 次提交
  11. 02 8月, 2006 1 次提交
    • R
      Remove cmd_usage() routine and re-organize the help/usage code. · 822a7d50
      Ramsay Allan Jones 提交于
      The cmd_usage() routine was causing warning messages due to a NULL
      format parameter being passed in three out of four calls. This is a
      problem if you want to compile with -Werror. A simple solution is to
      simply remove the GNU __attribute__ format pragma from the cmd_usage()
      declaration in the header file. The function interface was somewhat
      muddled anyway, so re-write the code to finesse the problem.
      
      [jc: this incidentally revealed that t9100 test assumed that the output
       from "git help" to be fixed in stone, but this patch lower-cases
       "Usage" to "usage".  Update the test not to rely on "git help" output.]
      Signed-off-by: NRamsay Allan Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      822a7d50
  12. 01 8月, 2006 1 次提交
  13. 31 7月, 2006 1 次提交
  14. 29 7月, 2006 1 次提交
  15. 27 7月, 2006 1 次提交
  16. 26 7月, 2006 2 次提交
  17. 15 7月, 2006 1 次提交
  18. 09 7月, 2006 3 次提交
  19. 04 7月, 2006 1 次提交
  20. 28 6月, 2006 3 次提交
  21. 19 6月, 2006 6 次提交
  22. 17 6月, 2006 1 次提交
    • J
      fix git alias · d8498500
      Junio C Hamano 提交于
      When extra command line arguments are given to a command that
      was alias-expanded, the code generated a wrong argument list,
      leaving the original alias in the result, and forgetting to
      terminate the new argv list.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d8498500