1. 10 9月, 2006 1 次提交
    • 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
  2. 08 9月, 2006 3 次提交
  3. 07 9月, 2006 3 次提交
  4. 06 9月, 2006 6 次提交
  5. 05 9月, 2006 9 次提交
  6. 04 9月, 2006 4 次提交
  7. 03 9月, 2006 3 次提交
    • J
      Merge branch 'master' into cc/trace · 1bbb2cff
      Junio C Hamano 提交于
      * master:
        Trace into a file or an open fd and refactor tracing code.
        Replace uses of strdup with xstrdup.
        consolidate two copies of new style object header parsing code.
        Documentation: Fix howto/revert-branch-rebase.html generation
        fmt-merge-msg: fix off-by-one bug
        git-rev-list(1): group options; reformat; document more options
        Constness tightening for move/link_temp_to_file()
        gitweb: Fix git_blame
        Include config.mak.autogen in the doc Makefile
        Use xmalloc instead of malloc
        git(7): move gitk(1) to the list of porcelain commands
        gitk: Fix some bugs in the new cherry-picking code
        gitk: Improve responsiveness while reading and layout out the graph
        gitk: Update preceding/following tag info when creating a tag
        gitk: Add a menu item for cherry-picking commits
        gitk: Fix a couple of buglets in the branch head menu items
        gitk: Add a context menu for heads
        gitk: Add a row context-menu item for creating a new branch
        gitk: Recompute ancestor/descendent heads/tags when rereading refs
        gitk: Minor cleanups
      1bbb2cff
    • J
      pack-objects: re-validate data we copy from elsewhere. · df6d6101
      Junio C Hamano 提交于
      When reusing data from an existing pack and from a new style
      loose objects, we used to just copy it staight into the
      resulting pack.  Instead make sure they are not corrupt, but
      do so only when we are not streaming to stdout, in which case
      the receiving end will do the validation either by unpacking
      the stream or by constructing the .idx file.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      df6d6101
    • 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
  8. 02 9月, 2006 3 次提交
  9. 01 9月, 2006 8 次提交