1. 18 7月, 2014 1 次提交
  2. 11 7月, 2014 5 次提交
  3. 10 7月, 2014 8 次提交
    • J
      Sixth batch for 2.1 · 81e776d9
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      81e776d9
    • J
      Merge branch 'sk/mingw-unicode-spawn-args' · cb9cd515
      Junio C Hamano 提交于
      * sk/mingw-unicode-spawn-args:
        Win32: Unicode arguments (incoming)
        Win32: Unicode arguments (outgoing)
        MinGW: disable CRT command line globbing
        Win32: fix potential multi-threading issue
        Win32: simplify internal mingw_spawn* APIs
        Win32: let mingw_execve() return an int
      cb9cd515
    • J
      Merge branch 'sk/mingw-dirent' · b0bae7f0
      Junio C Hamano 提交于
      * sk/mingw-dirent:
        Win32 dirent: improve dirent implementation
        Win32 dirent: clarify #include directives
        Win32 dirent: change FILENAME_MAX to MAX_PATH
        Win32 dirent: remove unused dirent.d_reclen member
        Win32 dirent: remove unused dirent.d_ino member
      b0bae7f0
    • J
      Merge branch 'sk/mingw-uni-console' · 641830cb
      Junio C Hamano 提交于
      * sk/mingw-uni-console:
        Win32: reliably detect console pipe handles
        Win32: fix broken pipe detection
        Win32: Thread-safe windows console output
        Win32: add Unicode conversion functions
        Win32: warn if the console font doesn't support Unicode
        Win32: detect console streams more reliably
        Win32: support Unicode console output
      641830cb
    • J
      Merge branch 'sk/mingw-main' · ba655d15
      Junio C Hamano 提交于
      * sk/mingw-main:
        mingw: avoid const warning
        Win32: move main macro to a function
      ba655d15
    • J
      Merge branch 'jk/pretty-G-format-fixes' · ce8350f8
      Junio C Hamano 提交于
      * jk/pretty-G-format-fixes:
        move "%G" format test from t7510 to t6006
        pretty: avoid reading past end-of-string with "%G"
        t7510: check %G* pretty-format output
        t7510: test a commit signed by an unknown key
        t7510: use consistent &&-chains in loop
        t7510: stop referring to master in later tests
      ce8350f8
    • J
      Merge branch 'jk/xstrfmt' · 3b8e8af1
      Junio C Hamano 提交于
      * jk/xstrfmt:
        setup_git_env(): introduce git_path_from_env() helper
        unique_path: fix unlikely heap overflow
        walker_fetch: fix minor memory leak
        merge: use argv_array when spawning merge strategy
        sequencer: use argv_array_pushf
        setup_git_env: use git_pathdup instead of xmalloc + sprintf
        use xstrfmt to replace xmalloc + strcpy/strcat
        use xstrfmt to replace xmalloc + sprintf
        use xstrdup instead of xmalloc + strcpy
        use xstrfmt in favor of manual size calculations
        strbuf: add xstrfmt helper
      3b8e8af1
    • J
      Merge branch 'jk/skip-prefix' · e91ae32a
      Junio C Hamano 提交于
      * jk/skip-prefix:
        http-push: refactor parsing of remote object names
        imap-send: use skip_prefix instead of using magic numbers
        use skip_prefix to avoid repeated calculations
        git: avoid magic number with skip_prefix
        fetch-pack: refactor parsing in get_ack
        fast-import: refactor parsing of spaces
        stat_opt: check extra strlen call
        daemon: use skip_prefix to avoid magic numbers
        fast-import: use skip_prefix for parsing input
        use skip_prefix to avoid repeating strings
        use skip_prefix to avoid magic numbers
        transport-helper: avoid reading past end-of-string
        fast-import: fix read of uninitialized argv memory
        apply: use skip_prefix instead of raw addition
        refactor skip_prefix to return a boolean
        avoid using skip_prefix as a boolean
        daemon: mark some strings as const
        parse_diff_color_slot: drop ofs parameter
      e91ae32a
  4. 09 7月, 2014 2 次提交
  5. 03 7月, 2014 9 次提交
    • J
      Merge branch 'dt/refs-check-refname-component-sse' · 6f92e5ff
      Junio C Hamano 提交于
      Further micro-optimization of a leaf-function.
      
      * dt/refs-check-refname-component-sse:
        refs.c: SSE2 optimizations for check_refname_component
      6f92e5ff
    • J
      Merge branch 'ye/http-extract-charset' · a02ad882
      Junio C Hamano 提交于
      * ye/http-extract-charset:
        http: fix charset detection of extract_content_type()
      a02ad882
    • J
      Merge branch 'bc/fix-rebase-merge-skip' · 6293aea5
      Junio C Hamano 提交于
      "git rebase --skip" did not work well when it stopped due to a
      conflict twice in a row.
      
      * bc/fix-rebase-merge-skip:
        rebase--merge: fix --skip with two conflicts in a row
      6293aea5
    • J
      Merge branch 'jk/commit-buffer-length' · 8061ae8b
      Junio C Hamano 提交于
      Move "commit->buffer" out of the in-core commit object and keep
      track of their lengths.  Use this to optimize the code paths to
      validate GPG signatures in commit objects.
      
      * jk/commit-buffer-length:
        reuse cached commit buffer when parsing signatures
        commit: record buffer length in cache
        commit: convert commit->buffer to a slab
        commit-slab: provide a static initializer
        use get_commit_buffer everywhere
        convert logmsg_reencode to get_commit_buffer
        use get_commit_buffer to avoid duplicate code
        use get_cached_commit_buffer where appropriate
        provide helpers to access the commit buffer
        provide a helper to set the commit buffer
        provide a helper to free commit buffer
        sequencer: use logmsg_reencode in get_message
        logmsg_reencode: return const buffer
        do not create "struct commit" with xcalloc
        commit: push commit_index update into alloc_commit_node
        alloc: include any-object allocations in alloc_report
        replace dangerous uses of strbuf_attach
        commit_tree: take a pointer/len pair rather than a const strbuf
      8061ae8b
    • R
      95acfc24
    • J
      Merge branch 'maint' · 64d84547
      Junio C Hamano 提交于
      * maint:
        t7300: repair filesystem permissions with test_when_finished
        enums: remove trailing ',' after last item in enum
      64d84547
    • J
      Merge branch 'maint-1.8.5' into maint · c2f7b102
      Junio C Hamano 提交于
      * maint-1.8.5:
        t7300: repair filesystem permissions with test_when_finished
        enums: remove trailing ',' after last item in enum
      c2f7b102
    • J
      t7300: repair filesystem permissions with test_when_finished · 45067fc9
      Jeff King 提交于
      We create a directory that cannot be removed, confirm that
      it cannot be removed, and then fix it like:
      
        chmod 0 foo &&
        test_must_fail git clean -d -f &&
        chmod 755 foo
      
      If the middle step fails but leaves the directory (e.g., the
      bug is that clean does not notice the failure), this
      pollutes the test repo with an unremovable directory. Not
      only does this cause further tests to fail, but it means
      that "rm -rf" fails on the whole trash directory, and the
      user has to intervene manually to even re-run the test script.
      
      We can bump the "chmod 755" recovery to a test_when_finished
      block to be sure that it always runs.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      45067fc9
    • R
      78273520
  6. 28 6月, 2014 1 次提交
  7. 27 6月, 2014 4 次提交
  8. 26 6月, 2014 10 次提交
    • J
      move "%G" format test from t7510 to t6006 · 958b2eb2
      Jeff King 提交于
      The final test in t7510 checks that "--format" placeholders
      that look similar to GPG placeholders (but that we don't
      actually understand) are passed through. That test was
      placed in t7510, since the other GPG placeholder tests are
      there. However, it does not have a GPG prerequisite, because
      it is not actually checking any signed commits.
      
      This causes the test to erroneously fail when gpg is not
      installed on a system, however. Not because we need signed
      commits, but because we need _any_ commit to run "git log".
      If we don't have gpg installed, t7510 doesn't create any
      commits at all.
      
      We can fix this by moving the test into t6006. This is
      arguably a better place anyway, because it is where we test
      most of the other placeholders (we do not test GPG
      placeholders there because of the infrastructure needed to
      make signed commits).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      958b2eb2
    • J
      Sync with maint · c47372d3
      Junio C Hamano 提交于
      c47372d3
    • J
      Fifth batch for 2.1 · 369a70fc
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      369a70fc
    • J
      Merge branch 'jm/dedup-name-compare' · 59707231
      Junio C Hamano 提交于
      * jm/dedup-name-compare:
        cleanup duplicate name_compare() functions
        name-hash.c: replace cache_name_compare() with memcmp(3)
      59707231
    • J
      Merge branch 'ep/avoid-test-a-o' · e5685724
      Junio C Hamano 提交于
      Update tests and scripts to avoid "test ... -a ...", which is often
      more error-prone than "test ... && test ...".
      
      Squashed misconversion fix-up into git-submodule.sh updates.
      
      * ep/avoid-test-a-o:
        git-submodule.sh: avoid "echo" path-like values
        git-submodule.sh: avoid "test <cond> -a/-o <cond>"
        t/test-lib-functions.sh: avoid "test <cond> -a/-o <cond>"
        t/t9814-git-p4-rename.sh: avoid "test <cond> -a/-o <cond>"
        t/t5538-push-shallow.sh: avoid "test <cond> -a/-o <cond>"
        t/t5403-post-checkout-hook.sh: avoid "test <cond> -a/-o <cond>"
        t/t5000-tar-tree.sh: avoid "test <cond> -a/-o <cond>"
        t/t4102-apply-rename.sh: avoid "test <cond> -a/-o <cond>"
        t/t0026-eol-config.sh: avoid "test <cond> -a/-o <cond>"
        t/t0025-crlf-auto.sh: avoid "test <cond> -a/-o <cond>"
        t/lib-httpd.sh: avoid "test <cond> -a/-o <cond>"
        git-rebase--interactive.sh: avoid "test <cond> -a/-o <cond>"
        git-mergetool.sh: avoid "test <cond> -a/-o <cond>"
        git-bisect.sh: avoid "test <cond> -a/-o <cond>"
        contrib/examples/git-resolve.sh: avoid "test <cond> -a/-o <cond>"
        contrib/examples/git-repack.sh: avoid "test <cond> -a/-o <cond>"
        contrib/examples/git-merge.sh: avoid "test <cond> -a/-o <cond>"
        contrib/examples/git-commit.sh: avoid "test <cond> -a/-o <cond>"
        contrib/examples/git-clone.sh: avoid "test <cond> -a/-o <cond>"
        check_bindir: avoid "test <cond> -a/-o <cond>"
      e5685724
    • J
      Merge branch 'tb/unicode-7.0-display-width' · 5b9b715f
      Junio C Hamano 提交于
      * tb/unicode-7.0-display-width:
        Update of unicode_width.h to Unicode Version 7.0
      5b9b715f
    • J
      Merge branch 'ye/doc-http-proto' · ccca6b65
      Junio C Hamano 提交于
      * ye/doc-http-proto:
        http-protocol.txt: Basic Auth is defined in RFC 2617, not RFC 2616
      ccca6b65
    • J
      Merge branch 'rs/blame-refactor' · 8d87e35b
      Junio C Hamano 提交于
      * rs/blame-refactor:
        blame: simplify prepare_lines()
        blame: factor out get_next_line()
      8d87e35b
    • J
      Merge branch 'pb/trim-trailing-spaces' · 35869f4c
      Junio C Hamano 提交于
      * pb/trim-trailing-spaces:
        t0008: do not depend on 'echo' handling backslashes specially
      35869f4c
    • J
      Merge branch 'mc/doc-submodule-sync-recurse' · b47761dd
      Junio C Hamano 提交于
      * mc/doc-submodule-sync-recurse:
        submodule: document "sync --recursive"
      b47761dd