1. 09 2月, 2019 8 次提交
  2. 07 2月, 2019 32 次提交
    • J
      Git 2.21-rc0 · d62dad7a
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d62dad7a
    • J
      Merge branch 'jk/add-ignore-errors-bit-assignment-fix' · 9293bf6f
      Junio C Hamano 提交于
      A hotfix to an incomplete fix made earlier.
      
      * jk/add-ignore-errors-bit-assignment-fix:
        add_to_index(): convert forgotten HASH_RENORMALIZE check
      9293bf6f
    • J
      Merge branch 'rj/sparse-flags' · fe8e6865
      Junio C Hamano 提交于
      Use of the sparse tool got easier to customize from the command
      line to help developers.
      
      * rj/sparse-flags:
        Makefile: improve SPARSE_FLAGS customisation
        config.mak.uname: remove obsolete SPARSE_FLAGS setting
      fe8e6865
    • J
      Merge branch 'bc/fetch-pack-clear-alternate-shallow' · 8f0f4653
      Junio C Hamano 提交于
      "git fetch" over protocol v2 that needs to make a second connection
      to backfill tags did not clear a variable that holds shallow
      repository information correctly, leading to an access of freed
      piece of memory.
      
      * bc/fetch-pack-clear-alternate-shallow:
        fetch-pack: clear alternate shallow in one more place
        fetch-pack: clear alternate shallow when complete
      8f0f4653
    • J
      Merge branch 'ma/doc-diff-usage-fix' · 0b5dc59c
      Junio C Hamano 提交于
      Running "Documentation/doc-diff x" from anywhere other than the
      top-level of the working tree did not show the usage string
      correctly, which has been fixed.
      
      * ma/doc-diff-usage-fix:
        doc-diff: don't `cd_to_toplevel`
      0b5dc59c
    • J
      Merge branch 'ab/diff-tree-doc-fix' · 9c90dab1
      Junio C Hamano 提交于
      Doc fix.
      
      * ab/diff-tree-doc-fix:
        diff-tree doc: correct & remove wrong documentation
      9c90dab1
    • J
      Merge branch 'ss/describe-dirty-in-the-right-directory' · a1e19004
      Junio C Hamano 提交于
      "git --work-tree=$there --git-dir=$here describe --dirty" did not
      work correctly as it did not pay attention to the location of the
      worktree specified by the user by mistake, which has been
      corrected.
      
      * ss/describe-dirty-in-the-right-directory:
        t6120: test for describe with a bare repository
        describe: setup working tree for --dirty
      a1e19004
    • J
      Merge branch 'sg/travis-osx-brew-breakage-workaround' · d219b7f3
      Junio C Hamano 提交于
      The way the OSX build jobs updates its build environment used the
      "--quiet" option to "brew update" command, but it wasn't all that
      quiet to be useful.  The use of the option has been replaced with
      an explicit redirection to the /dev/null (which incidentally would
      have worked around a breakage by recent updates to homebrew, which
      has fixed itself already).
      
      * sg/travis-osx-brew-breakage-workaround:
        travis-ci: make the OSX build jobs' 'brew update' more quiet
      d219b7f3
    • J
      Merge branch 'nd/commit-doc' · 7a154792
      Junio C Hamano 提交于
      Doc update.
      
      * nd/commit-doc:
        git-commit.txt: better description what it does
      7a154792
    • J
      Merge branch 'sl/const' · 3a14fdec
      Junio C Hamano 提交于
      Code cleanup.
      
      * sl/const:
        various: tighten constness of some local variables
      3a14fdec
    • J
      Merge branch 'sh/submodule-summary-abbrev-fix' · 257507a3
      Junio C Hamano 提交于
      The "git submodule summary" subcommand showed shortened commit
      object names by mechanically truncating them at 7-hexdigit, which
      has been improved to let "rev-parse --short" scale the length of
      the abbreviation with the size of the repository.
      
      * sh/submodule-summary-abbrev-fix:
        git-submodule.sh: shorten submodule SHA-1s using rev-parse
      257507a3
    • J
      Merge branch 'nd/help-align-command-desc' · 75e1a08b
      Junio C Hamano 提交于
      Output from "git help" was not correctly aligned, which has been
      fixed.
      
      * nd/help-align-command-desc:
        help: align the longest command in the command listing
      75e1a08b
    • J
      Merge branch 'jk/loose-object-cache-oid' · cba595ab
      Junio C Hamano 提交于
      Code clean-up.
      
      * jk/loose-object-cache-oid:
        prefer "hash mismatch" to "sha1 mismatch"
        sha1-file: avoid "sha1 file" for generic use in messages
        sha1-file: prefer "loose object file" to "sha1 file" in messages
        sha1-file: drop has_sha1_file()
        convert has_sha1_file() callers to has_object_file()
        sha1-file: convert pass-through functions to object_id
        sha1-file: modernize loose header/stream functions
        sha1-file: modernize loose object file functions
        http: use struct object_id instead of bare sha1
        update comment references to sha1_object_info()
        sha1-file: fix outdated sha1 comment references
      cba595ab
    • J
      Merge branch 'pw/rebase-x-sanity-check' · 96e6547c
      Junio C Hamano 提交于
      "git rebase -x $cmd" did not reject multi-line command, even though
      the command is incapable of handling such a command.  It now is
      rejected upfront.
      
      * pw/rebase-x-sanity-check:
        rebase -x: sanity check command
      96e6547c
    • J
      Merge branch 'js/vsts-ci' · 57cbc53d
      Junio C Hamano 提交于
      Prepare to run test suite on Azure Pipeline.
      
      * js/vsts-ci: (22 commits)
        test-date: drop unused parameter to getnanos()
        ci: parallelize testing on Windows
        ci: speed up Windows phase
        tests: optionally skip bin-wrappers/
        t0061: workaround issues with --with-dashes and RUNTIME_PREFIX
        tests: add t/helper/ to the PATH with --with-dashes
        mingw: try to work around issues with the test cleanup
        tests: include detailed trace logs with --write-junit-xml upon failure
        tests: avoid calling Perl just to determine file sizes
        README: add a build badge (status of the Azure Pipelines build)
        mingw: be more generous when wrapping up the setitimer() emulation
        ci: use git-sdk-64-minimal build artifact
        ci: add a Windows job to the Azure Pipelines definition
        Add a build definition for Azure DevOps
        ci/lib.sh: add support for Azure Pipelines
        tests: optionally write results as JUnit-style .xml
        test-date: add a subcommand to measure times in shell scripts
        ci: use a junction on Windows instead of a symlink
        ci: inherit --jobs via MAKEFLAGS in run-build-and-tests
        ci/lib.sh: encapsulate Travis-specific things
        ...
      57cbc53d
    • J
      Merge branch 'br/commit-tree-fully-spelled-gpg-sign-option' · e7b120bf
      Junio C Hamano 提交于
      The documentation of "git commit-tree" said that the command
      understands "--gpg-sign" in addition to "-S", but the command line
      parser did not know about the longhand, which has been corrected.
      
      * br/commit-tree-fully-spelled-gpg-sign-option:
        commit-tree: add missing --gpg-sign flag
        t7510: invoke git as part of &&-chain
      e7b120bf
    • J
      Merge branch 'sb/submodule-abort-update-upon-config-failure' · e524e44e
      Junio C Hamano 提交于
      "git submodule update" learned to abort early when core.worktree
      for the submodule is not set correctly to prevent spreading damage.
      
      * sb/submodule-abort-update-upon-config-failure:
        git-submodule: abort if core.worktree could not be set correctly
      e524e44e
    • J
      Merge branch 'sg/travis-specific-cc' · 51b99666
      Junio C Hamano 提交于
      The travis CI scripts have been corrected to build Git with the
      compiler(s) of our choice.
      
      * sg/travis-specific-cc:
        travis-ci: build with the right compiler
        travis-ci: switch to Xcode 10.1 macOS image
        travis-ci: don't be '--quiet' when running the tests
        .gitignore: ignore external debug symbols from GCC on macOS
      51b99666
    • J
      Merge branch 'ds/push-sparse-tree-walk' · 5fda3433
      Junio C Hamano 提交于
      "git pack-objects" learned another algorithm to compute the set of
      objects to send, that trades the resulting packfile off to save
      traversal cost to favor small pushes.
      
      * ds/push-sparse-tree-walk:
        pack-objects: create GIT_TEST_PACK_SPARSE
        pack-objects: create pack.useSparse setting
        revision: implement sparse algorithm
        list-objects: consume sparse tree walk
        revision: add mark_tree_uninteresting_sparse
      5fda3433
    • J
      Merge branch 'tb/test-lint-sed-options' · d8d62e61
      Junio C Hamano 提交于
      The test lint learned to catch non-portable "sed" options.
      
      * tb/test-lint-sed-options:
        test-lint: only use only sed [-n] [-e command] [-f command_file]
      d8d62e61
    • J
      Merge branch 'lt/date-human' · ecbe1beb
      Junio C Hamano 提交于
      A new date format "--date=human" that morphs its output depending
      on how far the time is from the current time has been introduced.
      "--date=auto" can be used to use this new format when the output is
      going to the pager or to the terminal and otherwise the default
      format.
      
      * lt/date-human:
        Add `human` date format tests.
        Add `human` format to test-tool
        Add 'human' date format documentation
        Replace the proposed 'auto' mode with 'auto:'
        Add 'human' date format
      ecbe1beb
    • J
      Merge branch 'jk/autocrlf-overrides-eol-doc' · 13e26309
      Junio C Hamano 提交于
      Documentation around core.crlf has been updated.
      
      * jk/autocrlf-overrides-eol-doc:
        docs/config: clarify "text property" in core.eol
        doc/gitattributes: clarify "autocrlf overrides eol"
      13e26309
    • J
      Merge branch 'jk/unused-parameter-cleanup' · b2fc9d2f
      Junio C Hamano 提交于
      Code cleanup.
      
      * jk/unused-parameter-cleanup:
        convert: drop path parameter from actual conversion functions
        convert: drop len parameter from conversion checks
        config: drop unused parameter from maybe_remove_section()
        show_date_relative(): drop unused "tz" parameter
        column: drop unused "opts" parameter in item_length()
        create_bundle(): drop unused "header" parameter
        apply: drop unused "def" parameter from find_name_gnu()
        match-trees: drop unused path parameter from score functions
      b2fc9d2f
    • J
      Merge branch 'nd/the-index-final' · 7589e636
      Junio C Hamano 提交于
      The assumption to work on the single "in-core index" instance has
      been reduced from the library-ish part of the codebase.
      
      * nd/the-index-final:
        cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switch
        read-cache.c: remove the_* from index_has_changes()
        merge-recursive.c: remove implicit dependency on the_repository
        merge-recursive.c: remove implicit dependency on the_index
        sha1-name.c: remove implicit dependency on the_index
        read-cache.c: replace update_index_if_able with repo_&
        read-cache.c: kill read_index()
        checkout: avoid the_index when possible
        repository.c: replace hold_locked_index() with repo_hold_locked_index()
        notes-utils.c: remove the_repository references
        grep: use grep_opt->repo instead of explict repo argument
      7589e636
    • J
      Merge branch 'js/rebase-am' · e52c6bbd
      Junio C Hamano 提交于
      Instead of going through "git-rebase--am" scriptlet to use the "am"
      backend, the built-in version of "git rebase" learned to drive the
      "am" backend directly.
      
      * js/rebase-am:
        built-in rebase: call `git am` directly
        rebase: teach `reset_head()` to optionally skip the worktree
        rebase: avoid double reflog entry when switching branches
        rebase: move `reset_head()` into a better spot
      e52c6bbd
    • J
      Merge branch 'tt/bisect-in-c' · 09a9c1f4
      Junio C Hamano 提交于
      More code in "git bisect" has been rewritten in C.
      
      * tt/bisect-in-c:
        bisect--helper: `bisect_start` shell function partially in C
        bisect--helper: `get_terms` & `bisect_terms` shell function in C
        bisect--helper: `bisect_next_check` shell function in C
        bisect--helper: `check_and_set_terms` shell function in C
        wrapper: move is_empty_file() and rename it as is_empty_or_missing_file()
        bisect--helper: `bisect_write` shell function in C
        bisect--helper: `bisect_reset` shell function in C
      09a9c1f4
    • J
      Merge branch 'tb/utf-16-le-with-explicit-bom' · 0fa3cc77
      Junio C Hamano 提交于
      A new encoding UTF-16LE-BOM has been invented to force encoding to
      UTF-16 with BOM in little endian byte order, which cannot be directly
      generated by using iconv.
      
      * tb/utf-16-le-with-explicit-bom:
        Support working-tree-encoding "UTF-16LE-BOM"
      0fa3cc77
    • J
      Merge branch 'dt/cat-file-batch-ambiguous' · cfd9167c
      Junio C Hamano 提交于
      "git cat-file --batch" reported a dangling symbolic link by
      mistake, when it wanted to report that a given name is ambiguous.
      
      * dt/cat-file-batch-ambiguous:
        t1512: test ambiguous cat-file --batch and --batch-output
        Do not print 'dangling' for cat-file in case of ambiguity
      cfd9167c
    • J
      Merge branch 'km/init-doc-typofix' · a3d41733
      Junio C Hamano 提交于
      Docfix.
      
      * km/init-doc-typofix:
        init docs: correct a punctuation typo
      a3d41733
    • J
      Merge branch 'en/rebase-merge-on-sequencer' · 8fe9c3f2
      Junio C Hamano 提交于
      "git rebase --merge" as been reimplemented by reusing the internal
      machinery used for "git rebase -i".
      
      * en/rebase-merge-on-sequencer:
        rebase: implement --merge via the interactive machinery
        rebase: define linearization ordering and enforce it
        git-legacy-rebase: simplify unnecessary triply-nested if
        git-rebase, sequencer: extend --quiet option for the interactive machinery
        am, rebase--merge: do not overlook --skip'ed commits with post-rewrite
        t5407: add a test demonstrating how interactive handles --skip differently
        rebase: fix incompatible options error message
        rebase: make builtin and legacy script error messages the same
      8fe9c3f2
    • J
      add_to_index(): convert forgotten HASH_RENORMALIZE check · e2c2a375
      Jeff King 提交于
      Commit 9e5da3d0 (add: use separate ADD_CACHE_RENORMALIZE flag,
      2019-01-17) switched out using HASH_RENORMALIZE in our flags field for a
      new ADD_CACHE_RENORMALIZE flag. However, it forgot to convert one of the
      checks for HASH_RENORMALIZE into the new flag, which totally broke "git
      add --renormalize".
      
      To make matters even more confusing, the resulting code would racily
      pass the tests!  The forgotten check was responsible for defeating the
      up-to-date check of the index entry. That meant that "git add
      --renormalize" would refuse to renormalize things that appeared
      stat-clean. But most of the time the test commands run fast enough that
      the file mtime is the same as the index mtime. And thus we err on the
      conservative side and re-hash the file, which is what "--renormalize"
      would have wanted.
      
      But if you're unlucky and cross that one-second boundary between writing
      the file and writing the index (which is more likely to happen on a slow
      or heavily-loaded system), then the file appears stat-clean. And
      "--renormalize" would effectively do nothing.
      
      The fix is straightforward: convert this check to use the right flag.
      Noticed-by: NSZEDER Gábor <szeder.dev@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e2c2a375
    • B
      fetch-pack: clear alternate shallow in one more place · 380ebab2
      brian m. carlson 提交于
      The previous one did not clear the variable in one codepath,
      but we should aim to be complete.
      Signed-off-by: Nbrian m. carlson <sandals@crustytoothpaste.net>
      [jc: made a reroll into incremental, as the previous one already is
       in the next branch]
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      380ebab2