1. 23 2月, 2007 3 次提交
    • J
      git-bundle: avoid fork() in verify_bundle() · fb9a5415
      Johannes Schindelin 提交于
      We can use the revision walker easily for checking if the
      prerequisites are met, instead of fork()ing off a rev-list,
      which would list only the first unmet prerequisite.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      fb9a5415
    • J
      git-bundle: assorted fixes · fa257b05
      Johannes Schindelin 提交于
      This patch fixes issues mentioned by Junio, Nico and Simon:
      
      - I forgot to convert the usage string when removing the "--" from
        the subcommands,
      - a style fix in the bundle_header,
      - use xread() instead of read(),
      - use write_or_die() instead of write(),
      - make the bundle header extensible,
      - fail if the whitespace after a sha1 of a reference is missing,
      - close() the fds passed to a subprocess,
      - in verify_bundle(), do not use "rev-list --stdin", but rather
        pass the revs directly (avoiding a fork()),
      - fix a corrupted comment in show_object(), and
      - fix the size check in index_pack.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      fa257b05
    • J
      Add git-bundle: move objects and references by archive · 2e0afafe
      Johannes Schindelin 提交于
      Some workflows require use of repositories on machines that cannot be
      connected, preventing use of git-fetch / git-push to transport objects and
      references between the repositories.
      
      git-bundle provides an alternate transport mechanism, effectively allowing
      git-fetch and git-pull to operate using sneakernet transport. `git-bundle
      create` allows the user to create a bundle containing one or more branches
      or tags, but with specified basis assumed to exist on the target
      repository. At the receiving end, git-bundle acts like git-fetch-pack,
      allowing the user to invoke git-fetch or git-pull using the bundle file as
      the URL. git-fetch and git-ls-remote determine they have a bundle URL by
      checking that the URL points to a file, but are otherwise unchanged in
      operation with bundles.
      
      The original patch was done by Mark Levedahl <mdl123@verizon.net>.
      
      It was updated to make git-bundle a builtin, and get rid of the tar
      format: now, the first line is supposed to say "# v2 git bundle", the next
      lines either contain a prerequisite ("-" followed by the hash of the
      needed commit), or a ref (the hash of a commit, followed by the name of
      the ref), and finally the pack. As a result, the bundle argument can be
      "-" now.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      2e0afafe
  2. 14 2月, 2007 8 次提交
  3. 13 2月, 2007 20 次提交
  4. 12 2月, 2007 9 次提交