1. 15 9月, 2006 1 次提交
  2. 14 9月, 2006 1 次提交
  3. 10 9月, 2006 2 次提交
    • F
      Add git-upload-archive · 39345a21
      Franck Bui-Huu 提交于
      This command implements the git archive protocol on the server
      side. This command is not intended to be used by the end user.
      Underlying git-archive command line options are sent over the
      protocol from "git-archive --remote=...", just like upload-tar
      currently does with "git-tar-tree=...".
      
      As for "git-archive" command implementation, this new command
      does not execute any existing "git-{tar,zip}-tree" but rely
      on the archive API defined by "git-archive" patch. Hence we
      get 2 good points:
      
       - "git-archive" and "git-upload-archive" share all option
         parsing code.
      
       - All kind of git-upload-{tar,zip} can be deprecated.
      Signed-off-by: NFranck Bui-Huu <vagabon.xyz@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      39345a21
    • F
      Add git-archive · 4df096a5
      Franck Bui-Huu 提交于
      git-archive is a command to make TAR and ZIP archives of a git tree.
      It helps prevent a proliferation of git-{format}-tree commands.
      
      Instead of directly calling git-{tar,zip}-tree command, it defines
      a very simple API, that archiver should implement and register in
      "git-archive.c". This API is made up by 2 functions whose prototype
      is defined in "archive.h" file.
      
       - The first one is used to parse 'extra' parameters which have
         signification only for the specific archiver. That would allow
         different archive backends to have different kind of options.
      
       - The second one is used to ask to an archive backend to build
         the archive given some already resolved parameters.
      
      The main reason for making this API is to avoid using
      git-{tar,zip}-tree commands, hence making them useless. Maybe it's
      time for them to die ?
      
      It also implements remote operations by defining a very simple
      protocol: it first sends the name of the specific uploader followed
      the repository name (git-upload-tar git://example.org/repo.git).
      Then it sends options. It's done by sending a sequence of one
      argument per packet, with prefix "argument ", followed by a flush.
      
      The remote protocol is implemented in "git-archive.c" for client
      side and is triggered by "--remote=<repo>" option. For example,
      to fetch a TAR archive in a remote repo, you can issue:
      
      $ git archive --format=tar --remote=git://xxx/yyy/zzz.git HEAD
      
      We choose to not make a new command "git-fetch-archive" for example,
      avoind one more GIT command which should be nice for users (less
      commands to remember, keeps existing --remote option).
      Signed-off-by: NFranck Bui-Huu <vagabon.xyz@gmail.com>
      Acked-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      4df096a5
  4. 06 9月, 2006 1 次提交
  5. 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
  6. 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
  7. 01 9月, 2006 2 次提交
  8. 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
  9. 24 8月, 2006 1 次提交
  10. 16 8月, 2006 1 次提交
  11. 11 8月, 2006 1 次提交
  12. 09 8月, 2006 1 次提交
  13. 04 8月, 2006 7 次提交
  14. 03 8月, 2006 2 次提交
  15. 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
  16. 01 8月, 2006 1 次提交
  17. 31 7月, 2006 1 次提交
  18. 29 7月, 2006 1 次提交
  19. 27 7月, 2006 1 次提交
  20. 26 7月, 2006 2 次提交
  21. 15 7月, 2006 1 次提交
  22. 09 7月, 2006 3 次提交
  23. 04 7月, 2006 1 次提交
  24. 28 6月, 2006 3 次提交
  25. 19 6月, 2006 1 次提交