1. 21 5月, 2010 11 次提交
    • J
      Merge branch 'jc/status-show-ignored' · cd4ce1e8
      Junio C Hamano 提交于
      * jc/status-show-ignored:
        wt-status: fix 'fprintf' compilation warning
        status: --ignored option shows ignored files
        wt-status: rename and restructure status-print-untracked
        wt-status: collect ignored files
        wt-status: plug memory leak while collecting untracked files
        wt-status: remove unused workdir_untracked member
      cd4ce1e8
    • J
      Merge branch 'np/malloc-threading' · ea5f75a6
      Junio C Hamano 提交于
      * np/malloc-threading:
        Thread-safe xmalloc and xrealloc needs a recursive mutex
        Make xmalloc and xrealloc thread-safe
      ea5f75a6
    • J
      Merge branch 'sr/remote-helper-export' · af655431
      Junio C Hamano 提交于
      * sr/remote-helper-export:
        t5800: testgit helper requires Python support
        Makefile: Simplify handling of python scripts
        remote-helpers: add tests for testgit helper
        remote-helpers: add testgit helper
        remote-helpers: add support for an export command
        remote-helpers: allow requesing the path to the .git directory
        fast-import: always create marks_file directories
        clone: also configure url for bare clones
        clone: pass the remote name to remote_get
      
      Conflicts:
      	Makefile
      af655431
    • J
      Merge branch 'ld/discovery-limit-to-fs' (early part) · 78f17935
      Junio C Hamano 提交于
      * 'ld/discovery-limit-to-fs' (early part):
        Rename ONE_FILESYSTEM to DISCOVERY_ACROSS_FILESYSTEM
        GIT_ONE_FILESYSTEM: flip the default to stop at filesystem boundaries
        Add support for GIT_ONE_FILESYSTEM
        truncate cwd string before printing error message
        config.c: remove static keyword from git_env_bool()
      78f17935
    • J
      Merge branch 'ar/config-from-command-line' · 7f3ed824
      Junio C Hamano 提交于
      * ar/config-from-command-line:
        Complete prototype of git_config_from_parameters()
        Use strbufs instead of open-coded string manipulation
        Allow passing of configuration parameters in the command line
      7f3ed824
    • J
      Merge branch 'em/checkout-orphan' · e2ab0227
      Junio C Hamano 提交于
      * em/checkout-orphan:
        git checkout: create unparented branch by --orphan
      e2ab0227
    • T
      Complete prototype of git_config_from_parameters() · b3d83d9f
      Thomas Rast 提交于
      Add the missing argument list.  (Its lack triggered a compiler warning
      for me.)
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Acked-by: NAlex Riesen <raa.lkml@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b3d83d9f
    • J
      Merge branch 'maint' · 1be270cb
      Junio C Hamano 提交于
      * maint:
        Fix checkout of large files to network shares on Windows XP
        start_command: close cmd->err descriptor when fork/spawn fails
        Fix "Out of memory? mmap failed" for files larger than 4GB on Windows
      1be270cb
    • R
      Fix checkout of large files to network shares on Windows XP · c8b29645
      René Scharfe 提交于
      Bigger writes to network drives on Windows XP fail.  Cap them at 31MB to
      allow them to succeed.  Callers need to be prepared for write() calls
      that do less work than requested anyway.
      
      On local drives, write() calls are translated to WriteFile() calls with
      a cap of 64KB on Windows XP and 256KB on Vista.  Thus a cap of 31MB won't
      affect the number of WriteFile() calls which do the actual work.  There's
      still room for some other version of Windows to use a chunk size of 1MB
      without increasing the number of system calls.
      Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c8b29645
    • B
      start_command: close cmd->err descriptor when fork/spawn fails · fc012c28
      bert Dvornik 提交于
      Fix the problem where the cmd->err passed into start_command wasn't
      being properly closed when certain types of errors occurr.  (Compare
      the affected code with the clean shutdown code later in the function.)
      
      On Windows, this problem would be triggered if mingw_spawnvpe()
      failed, which would happen if the command to be executed was malformed
      (e.g. a text file that didn't start with a #! line).  If cmd->err was
      a pipe, the failure to close it could result in a hang while the other
      side was waiting (forever) for either input or pipe close, e.g. while
      trying to shove the output into the side band.  On msysGit, this
      problem was causing a hang in t5516-fetch-push.
      
      [J6t: With a slight adjustment of the test case, the hang is also
      observed on Linux.]
      Signed-off-by: Nbert Dvornik <dvornik+git@gmail.com>
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      fc012c28
    • I
      Fix "Out of memory? mmap failed" for files larger than 4GB on Windows · 60890cc6
      Ian McLean 提交于
      The git_mmap implementation was broken for file sizes that wouldn't fit
      into a size_t (32 bits).  This was caused by intermediate variables that
      were only 32 bits wide when they should be 64 bits.
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      60890cc6
  2. 20 5月, 2010 2 次提交
  3. 19 5月, 2010 8 次提交
  4. 12 5月, 2010 2 次提交
  5. 11 5月, 2010 2 次提交
    • J
      Merge branch 'maint' · d92f8446
      Junio C Hamano 提交于
      * maint:
        handle "git --bare init <dir>" properly
      d92f8446
    • J
      handle "git --bare init <dir>" properly · 87a074df
      Jeff King 提交于
      If we know we are creating a bare repository, we use setenv
      to set the GIT_DIR directory to the current directory
      (either where we already were, or one we created and chdir'd
      into with "git init --bare <dir>").
      
      However, with "git --bare init <dir>" (note the --bare as a
      git wrapper option), the setup code actually sets GIT_DIR
      for us, but it uses the wrong, original cwd when a directory
      is given. Because our setenv does not use the overwrite
      flag, it is ignored.
      
      We need to set the overwrite flag, but only when we are
      given a directory on the command line. That still allows:
      
        GIT_DIR=foo.git git init --bare
      
      to work. The behavior is changed for:
      
        GIT_DIR=foo.git git init --bare bar.git
      
      which used to create the repository in foo.git, but now will
      use bar.git. This is more sane, as command line options
      should generally override the environment.
      
      Noticed by Oliver Hoffmann.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      87a074df
  6. 09 5月, 2010 15 次提交