1. 21 1月, 2010 2 次提交
  2. 20 1月, 2010 3 次提交
  3. 19 1月, 2010 10 次提交
  4. 18 1月, 2010 10 次提交
    • J
      Update draft release notes to 1.7.0 · ff6d26a0
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ff6d26a0
    • J
      Merge branch 'tc/test-locate-httpd' · f287c65b
      Junio C Hamano 提交于
      * tc/test-locate-httpd:
        t/lib-http.sh: Restructure finding of default httpd location
      f287c65b
    • J
      Merge branch 'jh/commit-status' · f8eb50f6
      Junio C Hamano 提交于
      * jh/commit-status:
        t7502: test commit.status, --status and --no-status
        commit: support commit.status, --status, and --no-status
      
      Conflicts:
      	Documentation/git-commit.txt
      	builtin-commit.c
      f8eb50f6
    • J
      Merge branch 'jn/makefile' · a4c3616b
      Junio C Hamano 提交于
      * jn/makefile:
        Makefile: consolidate .FORCE-* targets
        Makefile: learn to generate listings for targets requiring special flags
        Makefile: use target-specific variable to pass flags to cc
        Makefile: regenerate assembler listings when asked
      a4c3616b
    • J
      Merge branch 'jc/maint-1.6.1-checkout-m-custom-merge' · a0db3e58
      Junio C Hamano 提交于
      * jc/maint-1.6.1-checkout-m-custom-merge:
        checkout -m path: fix recreating conflicts
      
      Conflicts:
      	t/t7201-co.sh
      a0db3e58
    • J
      Merge branch 'tc/clone-v-progress' · 42aac967
      Junio C Hamano 提交于
      * tc/clone-v-progress:
        clone: use --progress to force progress reporting
        clone: set transport->verbose when -v/--verbose is used
        git-clone.txt: reword description of progress behaviour
        check stderr with isatty() instead of stdout when deciding to show progress
      
      Conflicts:
      	transport.c
      42aac967
    • J
      Merge branch 'tc/smart-http-restrict' · d0605072
      Junio C Hamano 提交于
      * tc/smart-http-restrict:
        Test t5560: Fix test when run with dash
        Smart-http tests: Test http-backend without curl or a webserver
        Smart-http tests: Break test t5560-http-backend into pieces
        Smart-http tests: Improve coverage in test t5560
        Smart-http: check if repository is OK to export before serving it
      d0605072
    • J
      Merge branch 'jk/run-command-use-shell' · 4fa08820
      Junio C Hamano 提交于
      * jk/run-command-use-shell:
        t4030, t4031: work around bogus MSYS bash path conversion
        diff: run external diff helper with shell
        textconv: use shell to run helper
        editor: use run_command's shell feature
        run-command: optimize out useless shell calls
        run-command: convert simple callsites to use_shell
        t0021: use $SHELL_PATH for the filter script
        run-command: add "use shell" option
      4fa08820
    • J
      Merge branch 'sr/gfi-options' · fa232d45
      Junio C Hamano 提交于
      * sr/gfi-options:
        fast-import: add (non-)relative-marks feature
        fast-import: allow for multiple --import-marks= arguments
        fast-import: test the new option command
        fast-import: add option command
        fast-import: add feature command
        fast-import: put marks reading in its own function
        fast-import: put option parsing code in separate functions
      fa232d45
    • J
      Update COPYING with GPLv2 with new FSF address · 703601d6
      Junio C Hamano 提交于
      The mailing address of FSF changed quite a while ago.  Also the expansion
      of the acronym LGPL (which we don't use) is "Lesser GPL" not "Library GPL"
      these days in recent copies of GPLv2.  Update the copy we have with a
      fresh download of <http://www.gnu.org/licenses/gpl-2.0.txt>.
      
      This incidentally removes form-feeds in the text we retained for all these
      years.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      703601d6
  5. 17 1月, 2010 10 次提交
    • J
      Do not use date.c:tm_to_time_t() from compat/mingw.c · a6d15bc3
      Johannes Sixt 提交于
      To implement gettimeofday(), a broken-down UTC time was requested from the
      system using GetSystemTime(), then tm_to_time_t() was used to convert it
      to a time_t because it does not look at the current timezone, which
      mktime() would do.
      
      Use GetSystemTimeAsFileTime() and a different conversion path to avoid this
      back-reference from the compatibility layer to the generic code.
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a6d15bc3
    • A
      MSVC: Windows-native implementation for subset of Pthreads API · 44626dc7
      Andrzej K. Haczewski 提交于
      This patch implements native to Windows subset of pthreads API used by Git.
      It allows to remove Pthreads for Win32 dependency for MSVC, msysgit and
      Cygwin.
      
      [J6t: If the MinGW build was built as part of the msysgit build
      environment, then threading was already enabled because the
      pthreads-win32 package is available in msysgit. With this patch, we can now
      enable threaded code unconditionally.]
      Signed-off-by: NAndrzej K. Haczewski <ahaczewski@gmail.com>
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      44626dc7
    • J
      Merge branch 'maint' · 56119723
      Junio C Hamano 提交于
      * maint:
        Fix uninitialized variable in get_refs_via_rsync().
        Document git-blame triple -C option
      56119723
    • J
      Merge branch 'cc/reset-more' · 0346e324
      Junio C Hamano 提交于
      * cc/reset-more:
        t7111: fix bad HEAD in tests with unmerged entries
      0346e324
    • R
      MSVC: Fix an "incompatible pointer types" compiler warning · b6f714f8
      Ramsay Jones 提交于
      In particular, the following warning is issued while compiling
      compat/msvc.c:
      
          ...mingw.c(223) : warning C4133: 'function' : incompatible \
      types - from '_stati64 *' to '_stat64 *'
      
      which relates to a call of _fstati64() in the mingw_fstat()
      function definition.
      
      This is caused by various layers of macro magic and attempts to
      avoid macro redefinition compiler warnings. For example, the call
      to _fstati64() mentioned above is actually a call to _fstat64(),
      and expects a pointer to a struct _stat64 rather than the struct
      _stati64 which is passed to mingw_fstat().
      
      The definition of struct _stati64 given in compat/msvc.h had the
      same "shape" as the definition of struct _stat64, so the call to
      _fstat64() does not actually cause any runtime errors, but the
      structure types are indeed incompatible.
      
      In order to avoid the compiler warning, we add declarations for the
      mingw_lstat() and mingw_fstat() functions and supporting macros to
      msvc.h, suppressing the corresponding declarations in mingw.h, so
      that we can use the appropriate structure type (and function) names
      from the msvc headers.
      Signed-off-by: NRamsay Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b6f714f8
    • J
      Windows: avoid the "dup dance" when spawning a child process · 75301f90
      Johannes Sixt 提交于
      When stdin, stdout, or stderr must be redirected for a child process that
      on Windows is spawned using one of the spawn() functions of Microsoft's
      C runtime, then there is no choice other than to
      
      1. make a backup copy of fd 0,1,2 with dup
      2. dup2 the redirection source fd into 0,1,2
      3. spawn
      4. dup2 the backup back into 0,1,2
      5. close the backup copy and the redirection source
      
      We used this idiom as well -- but we are not using the spawn() functions
      anymore!
      
      Instead, we have our own implementation. We had hardcoded that stdin,
      stdout, and stderr of the child process were inherited from the parent's
      fds 0, 1, and 2. But we can actually specify any fd.
      
      With this patch, the fds to inherit are passed from start_command()'s
      WIN32 section to our spawn implementation. This way, we can avoid the
      backup copies of the fds.
      
      The backup copies were a bug waiting to surface: The OS handles underlying
      the dup()ed fds were inherited by the child process (but were not
      associated with a file descriptor in the child). Consequently, the file or
      pipe represented by the OS handle remained open even after the backup copy
      was closed in the parent process until the child exited.
      
      Since our implementation of pipe() creates non-inheritable OS handles, we
      still dup() file descriptors in start_command() because dup() happens to
      create inheritable duplicates. (A nice side effect is that the fd cleanup
      in start_command is the same for Windows and Unix and remains unchanged.)
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      75301f90
    • J
      Windows: simplify the pipe(2) implementation · 3e34d665
      Johannes Sixt 提交于
      Our implementation of pipe() must create non-inheritable handles for the
      reason that when a child process is started, there is no opportunity to
      close the unneeded pipe ends in the child (on POSIX this is done between
      fork() and exec()).
      
      Previously, we used the _pipe() function provided by Microsoft's C runtime
      (which creates inheritable handles) and then turned the handles into
      non-inheritable handles using the DuplicateHandle() API.
      
      Simplify the procedure by using the CreatePipe() API, which can create
      non-inheritable handles right from the beginning.
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3e34d665
    • J
      Windows: boost startup by avoiding a static dependency on shell32.dll · 928500e0
      Johannes Sixt 提交于
      This DLL is only needed to invoke the browser in a "git help" call. By
      looking up the only function that we need at runtime, we can avoid the
      startup costs of this DLL.
      
      DLL usage can be profiled with Microsoft's Dependency Walker. For example,
      a call to "git diff-files" loaded
      
      before:  19 DLLs
      after:    9 DLLs
      
      As a result, the runtime of 'make -j2 test' went down from 16:00min
      to 12:40min on one of my boxes.
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      928500e0
    • E
      Windows: disable Python · 56932249
      Erik Faye-Lund 提交于
      Python is not commonly installed on Windows machines, so
      we should disable it there by default.
      Signed-off-by: NErik Faye-Lund <kusmabite@gmail.com>
      Signed-off-by: NJohannes Sixt <j6t@kdbg.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      56932249
    • C
      t7111: fix bad HEAD in tests with unmerged entries · 6f53c3b2
      Christian Couder 提交于
      When testing what happens on unmerged entries, the HEAD is the
      commit we are starting from before the merge that fails and create
      the unmerged entries. It is not the commit before.
      Signed-off-by: NChristian Couder <chriscool@tuxfamily.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6f53c3b2
  6. 16 1月, 2010 2 次提交
  7. 15 1月, 2010 2 次提交
  8. 14 1月, 2010 1 次提交
    • J
      Merge branch 'jc/checkout-merge-base' · 1f73566a
      Junio C Hamano 提交于
      * jc/checkout-merge-base:
        rebase -i: teach --onto A...B syntax
        rebase: fix --onto A...B parsing and add tests
        "rebase --onto A...B" replays history on the merge base between A and B
        "checkout A...B" switches to the merge base between A and B
      1f73566a