1. 31 5月, 2019 4 次提交
    • J
      Merge branch 'js/rebase-deprecate-preserve-merges' · 2656ecea
      Junio C Hamano 提交于
      A bit more leftover clean-up to deprepcate "rebase -p".
      
      * js/rebase-deprecate-preserve-merges:
        rebase docs: recommend `-r` over `-p`
        docs: say that `--rebase=preserve` is deprecated
        tests: mark a couple more test cases as requiring `rebase -p`
      2656ecea
    • J
      Merge branch 'sg/trace2-rename' · 463dca64
      Junio C Hamano 提交于
      Rename environment variables that are used to control the "trace2"
      mechanism to a more readable name.
      
      * sg/trace2-rename:
        trace2: document the supported values of GIT_TRACE2* env variables
        trace2: rename environment variables to GIT_TRACE2*
      463dca64
    • J
      Merge branch 'jh/trace2' · 90f2d88e
      Junio C Hamano 提交于
      * jh/trace2:
        trace2: fix tracing when NO_PTHREADS is defined
      90f2d88e
    • J
      Merge branch 'nd/diff-parseopt' · 20aa7c59
      Junio C Hamano 提交于
      A brown-paper-bag bugfix to a change already in 'master'.
      
      * nd/diff-parseopt:
        parse-options: check empty value in OPT_INTEGER and OPT_ABBREV
        diff-parseopt: restore -U (no argument) behavior
        diff-parseopt: correct variable types that are used by parseopt
      20aa7c59
  2. 30 5月, 2019 3 次提交
    • N
      parse-options: check empty value in OPT_INTEGER and OPT_ABBREV · f7e68a08
      Nguyễn Thái Ngọc Duy 提交于
      When parsing the argument for OPT_INTEGER and OPT_ABBREV, we check if we
      can parse the entire argument to a number with "if (*s)". There is one
      missing check: if "arg" is empty to begin with, we fail to notice.
      
      This could happen with long option by writing like
      
        git diff --inter-hunk-context= blah blah
      
      Before 16ed6c97 (diff-parseopt: convert --inter-hunk-context,
      2019-03-24), --inter-hunk-context is handled by a custom parser
      opt_arg() and does detect this correctly.
      
      This restores the bahvior for --inter-hunk-context and make sure all
      other integer options are handled the same (sane) way. For OPT_ABBREV
      this is new behavior. But it makes it consistent with the rest.
      
      PS. OPT_MAGNITUDE has similar code but git_parse_ulong() does detect
      empty "arg". So it's good to go.
      Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f7e68a08
    • N
      diff-parseopt: restore -U (no argument) behavior · 8ef05193
      Nguyễn Thái Ngọc Duy 提交于
      Before d473e2e0 (diff.c: convert -U|--unified, 2019-01-27), -U and
      --unified are implemented with a custom parser opt_arg() in diff.c. I
      didn't check this code carefully and not realize that it's the
      equivalent of PARSE_OPT_NONEG | PARSE_OPT_OPTARG.
      
      In other words, if -U is specified without any argument, the option
      should be accepted, and the default value should be used. Without
      PARSE_OPT_OPTARG, parse_options() will reject this case and cause a
      regression.
      Reported-by: NBryan Turner <bturner@atlassian.com>
      Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8ef05193
    • N
      diff-parseopt: correct variable types that are used by parseopt · 7f125ff9
      Nguyễn Thái Ngọc Duy 提交于
      Most number-related OPT_ macros store the value in an 'int'
      variable. Many of the variables in 'struct diff_options' have a
      different type, but during the conversion to using parse_options() I
      failed to notice and correct.
      
      The problem was reported on s360x which is a big-endian
      architechture. The variable to store '-w' option in this case is
      xdl_opts, 'long' type, 8 bytes. But since parse_options() assumes
      'int' (4 bytes), it will store bits in the wrong part of xdl_opts. The
      problem was found on little-endian platforms because parse_options()
      will accidentally store at the right part of xdl_opts.
      
      There aren't much to say about the type change (except that 'int' for
      xdl_opts should still be big enough, since Windows' long is the same
      size as 'int' and nobody has complained so far). Some safety checks may
      be implemented in the future to prevent class of bugs.
      Reported-by: NTodd Zullinger <tmz@pobox.com>
      Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7f125ff9
  3. 29 5月, 2019 6 次提交
  4. 19 5月, 2019 27 次提交
    • J
      Git 2.22-rc1 · aa25c824
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      aa25c824
    • J
      Merge branch 'js/difftool-no-index' · fab4a8a3
      Junio C Hamano 提交于
      The "--dir-diff" mode of "git difftool" is not useful in "--no-index"
      mode; they are now explicitly marked as mutually incompatible.
      
      * js/difftool-no-index:
        difftool --no-index: error out on --dir-diff (and don't crash)
      fab4a8a3
    • J
      Merge branch 'jk/get-oid-indexed-object-name' · 8c59ba9a
      Junio C Hamano 提交于
      The codepath to parse :<path> that obtains the object name for an
      indexed object has been made more robust.
      
      * jk/get-oid-indexed-object-name:
        get_oid: handle NULL repo->index
      8c59ba9a
    • J
      Merge branch 'jc/set-packet-header-signature-fix' · bca6aba7
      Junio C Hamano 提交于
      Code clean-up.
      
      * jc/set-packet-header-signature-fix:
        pkt-line: drop 'const'-ness of a param to set_packet_header()
      bca6aba7
    • J
      Merge branch 'cb/http-push-null-in-message-fix' · 8cbad493
      Junio C Hamano 提交于
      Code clean-up.
      
      * cb/http-push-null-in-message-fix:
        http-push: prevent format overflow warning with gcc >= 9
      8cbad493
    • J
      Merge branch 'js/stash-in-c-use-builtin-doc' · 4ecaedec
      Junio C Hamano 提交于
      Doc update.
      
      * js/stash-in-c-use-builtin-doc:
        stash: document stash.useBuiltin
      4ecaedec
    • J
      Merge branch 'tz/test-lib-check-working-jgit' · dc58922c
      Junio C Hamano 提交于
      A prerequiste check in the test suite to see if a working jgit is
      available was made more robust.
      
      * tz/test-lib-check-working-jgit:
        test-lib: try harder to ensure a working jgit
      dc58922c
    • J
      Merge branch 'js/parseopt-unknown-cb-returns-an-enum' · 7a09f5f1
      Junio C Hamano 提交于
      Code clean-up.
      
      * js/parseopt-unknown-cb-returns-an-enum:
        parse-options: adjust `parse_opt_unknown_cb()`s declared return type
      7a09f5f1
    • J
      Merge branch 'ab/sha1dc' · ed8a4516
      Junio C Hamano 提交于
      Update collision-detecting SHA-1 code to build properly on HP-UX.
      
      * ab/sha1dc:
        sha1dc: update from upstream
      ed8a4516
    • J
      Merge branch 'js/rebase-i-label-shown-in-status-fix' · e0708c24
      Junio C Hamano 提交于
      "git status" did not know that the "label" instruction in the
      todo-list "rebase -i -r" uses should not be shown as a hex object
      name.
      
      * js/rebase-i-label-shown-in-status-fix:
        status: fix display of rebase -ir's `label` command
      e0708c24
    • J
      Merge branch 'es/check-non-portable-pre-5.10' · dd5b7dc8
      Junio C Hamano 提交于
      Developer support update.
      
      * es/check-non-portable-pre-5.10:
        check-non-portable-shell: support Perl versions older than 5.10
      dd5b7dc8
    • J
      Merge branch 'ds/trace2-document-env-vars' · bd96a787
      Junio C Hamano 提交于
      Doc update.
      
      * ds/trace2-document-env-vars:
        trace2: add variable description to git.txt
      bd96a787
    • J
      Merge branch 'js/fsmonitor-refresh-after-discarding-index' · cfd635c7
      Junio C Hamano 提交于
      The fsmonitor interface got out of sync after the in-core index
      file gets discarded, which has been corrected.
      
      * js/fsmonitor-refresh-after-discarding-index:
        fsmonitor: force a refresh after the index was discarded
        fsmonitor: demonstrate that it is not refreshed after discard_index()
      cfd635c7
    • J
      Merge branch 'cm/notes-comment-fix' · 521d3ef3
      Junio C Hamano 提交于
      A stale in-code comment has been updated.
      
      * cm/notes-comment-fix:
        notes: correct documentation of format_display_notes()
      521d3ef3
    • J
      Merge branch 'tt/no-ipv6-fallback-for-winxp' · b3e0981f
      Junio C Hamano 提交于
      Code cleanup.
      
      * tt/no-ipv6-fallback-for-winxp:
        mingw: remove obsolete IPv6-related code
      b3e0981f
    • J
      Merge branch 'js/t5580-unc-alternate-test' · 0b076b4c
      Junio C Hamano 提交于
      An additional test for MinGW
      
      * js/t5580-unc-alternate-test:
        t5580: verify that alternates can be UNC paths
      0b076b4c
    • J
      Merge branch 'ds/cvsexportcommit-force-text' · b5fb62bf
      Junio C Hamano 提交于
      "git cvsexportcommit" running on msys did not expect cvsnt showed
      "cvs status" output with CRLF line endings.
      
      * ds/cvsexportcommit-force-text:
        cvsexportcommit: force crlf translation
      b5fb62bf
    • J
      Merge branch 'sg/ci-libsvn-perl' · 6f3d93f7
      Junio C Hamano 提交于
      To run tests for Git SVN, our scripts for CI used to install the
      git-svn package (in the hope that it would bring in the right
      dependencies).  This has been updated to install the more direct
      dependency, namely, libsvn-perl.
      
      * sg/ci-libsvn-perl:
        ci: install 'libsvn-perl' instead of 'git-svn'
      6f3d93f7
    • J
      Merge branch 'bl/t4253-exit-code-from-format-patch' · 717dad8e
      Junio C Hamano 提交于
      Avoid patterns to pipe output from a git command to feed another
      command in tests.
      
      * bl/t4253-exit-code-from-format-patch:
        t4253-am-keep-cr-dos: avoid using pipes
      717dad8e
    • J
      Merge branch 'ds/midx-too-many-packs' · 454b4197
      Junio C Hamano 提交于
      The code to generate the multi-pack idx file was not prepared to
      see too many packfiles and ran out of open file descriptor, which
      has been corrected.
      
      * ds/midx-too-many-packs:
        midx: add packs to packed_git linked list
        midx: pass a repository pointer
      454b4197
    • J
      Merge branch 'en/unicode-in-refnames' · 97616ca4
      Junio C Hamano 提交于
      On a filesystem like HFS+, the names of the refs stored as filesystem
      entities may become different from what the end-user expects, just
      like files in the working tree get "renamed".  Work around the
      mismatch by paying attention to the core.precomposeUnicode
      configuration.
      
      * en/unicode-in-refnames:
        Honor core.precomposeUnicode in more places
      97616ca4
    • J
      Merge branch 'dl/difftool-mergetool' · 85ac27e0
      Junio C Hamano 提交于
      Update "git difftool" and "git mergetool" so that the combinations
      of {diff,merge}.{tool,guitool} configuration variables serve as
      fallback settings of each other in a sensible order.
      
      * dl/difftool-mergetool:
        difftool: fallback on merge.guitool
        difftool: make --gui, --tool and --extcmd mutually exclusive
        mergetool: fallback to tool when guitool unavailable
        mergetool--lib: create gui_mode function
        mergetool: use get_merge_tool function
        t7610: add mergetool --gui tests
        t7610: unsuppress output
      85ac27e0
    • J
      Merge branch 'mh/http-fread-api-fix' · fed9391f
      Junio C Hamano 提交于
      A pair of private functions in http.c that had names similar to
      fread/fwrite did not return the number of elements, which was found
      to be confusing.
      
      * mh/http-fread-api-fix:
        Make fread/fwrite-like functions in http.c more like fread/fwrite.
      fed9391f
    • J
      Merge branch 'js/t6500-use-windows-pid-on-mingw' · b20b8fec
      Junio C Hamano 提交于
      Future-proof a test against an update to MSYS2 runtime v3.x series.
      
      * js/t6500-use-windows-pid-on-mingw:
        t6500(mingw): use the Windows PID of the shell
      b20b8fec
    • J
      Merge branch 'jk/apache-lsan' · 7782066f
      Junio C Hamano 提交于
      Allow tests that involve httpd to be run under leak sanitizer, just
      like we can already do so under address sanitizer.
      
      * jk/apache-lsan:
        t/lib-httpd: pass LSAN_OPTIONS through apache
      7782066f
    • J
      Merge branch 'nd/parse-options-aliases' · 2cfab608
      Junio C Hamano 提交于
      Attempt to use an abbreviated option in "git clone --recurs" is
      responded by a request to disambiguate between --recursive and
      --recurse-submodules, which is bad because these two are synonyms.
      The parse-options API has been extended to define such synonyms
      more easily and not produce an unnecessary failure.
      
      * nd/parse-options-aliases:
        parse-options: don't emit "ambiguous option" for aliases
      2cfab608
    • J
      Merge branch 'dl/branch-from-3dot-merge-base' · 4ac8371a
      Junio C Hamano 提交于
      "git branch new A...B" and "git checkout -b new A...B" have been
      taught that in their contexts, the notation A...B means "the merge
      base between these two commits", just like "git checkout A...B"
      detaches HEAD at that commit.
      
      * dl/branch-from-3dot-merge-base:
        branch: make create_branch accept a merge base rev
        t2018: cleanup in current test
      4ac8371a