1. 19 5月, 2019 1 次提交
  2. 14 5月, 2019 3 次提交
  3. 13 5月, 2019 14 次提交
    • J
      Git 2.22-rc0 · ab15ad1a
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ab15ad1a
    • J
      Merge branch 'jh/trace2' · 49bc8ce5
      Junio C Hamano 提交于
      A few embarrassing bugfixes.
      
      * jh/trace2:
        trace2: fix up a missing "leave" entry point
        trace2: fix incorrect function pointer check
      49bc8ce5
    • J
      Merge branch 'cc/access-on-aix-workaround' · 40bef499
      Junio C Hamano 提交于
      Workaround for standard-compliant but less-than-useful behaviour of
      access(2) for the root user.
      
      * cc/access-on-aix-workaround:
        git-compat-util: work around for access(X_OK) under root
      40bef499
    • J
      Merge branch 'pw/clean-sequencer-state-upon-final-commit' · b51a0fdc
      Junio C Hamano 提交于
      "git chery-pick" (and "revert" that shares the same runtime engine)
      that deals with multiple commits got confused when the final step
      gets stopped with a conflict and the user concluded the sequence
      with "git commit".  Attempt to fix it by cleaning up the state
      files used by these commands in such a situation.
      
      * pw/clean-sequencer-state-upon-final-commit:
        fix cherry-pick/revert status after commit
        commit/reset: try to clean up sequencer state
      b51a0fdc
    • J
      Merge branch 'pw/rebase-i-internal' · 7ba06bc3
      Junio C Hamano 提交于
      The internal implementation of "git rebase -i" has been updated to
      avoid forking a separate "rebase--interactive" process.
      
      * pw/rebase-i-internal:
        rebase -i: run without forking rebase--interactive
        rebase: use a common action enum
        rebase -i: use struct rebase_options in do_interactive_rebase()
        rebase -i: use struct rebase_options to parse args
        rebase -i: use struct object_id for squash_onto
        rebase -i: use struct commit when parsing options
        rebase -i: remove duplication
        rebase -i: combine rebase--interactive.c with rebase.c
        rebase: use OPT_RERERE_AUTOUPDATE()
        rebase: rename write_basic_state()
        rebase: don't translate trace strings
        sequencer: always discard index after checkout
      7ba06bc3
    • J
      Merge branch 'jk/perf-aggregate-wo-libjson' · 6cfa6335
      Junio C Hamano 提交于
      The script to aggregate perf result unconditionally depended on
      libjson-perl even though it did not have to, which has been
      corrected.
      
      * jk/perf-aggregate-wo-libjson:
        t/perf: depend on perl JSON only when using --codespeed
      6cfa6335
    • J
      Merge branch 'dl/rev-tilde-doc-clarify' · 7a188da3
      Junio C Hamano 提交于
      Docfix.
      
      * dl/rev-tilde-doc-clarify:
        revisions.txt: remove ambibuity between <rev>:<path> and :<path>
        revisions.txt: mention <rev>~ form
        revisions.txt: mark optional rev arguments with []
        revisions.txt: change "rev" to "<rev>"
      7a188da3
    • J
      Merge branch 'jc/make-dedup-ls-files-output' · a505f62f
      Junio C Hamano 提交于
      A "ls-files" that emulates "find" to enumerate files in the working
      tree resulted in duplicated Makefile rules that caused the build to
      issue an unnecessary warning during a trial build after merge
      conflicts are resolved in working tree *.h files but before the
      resolved results are added to the index.  This has been corrected.
      
      * jc/make-dedup-ls-files-output:
        Makefile: dedup list of files obtained from ls-files
      a505f62f
    • J
      Merge branch 'jk/ls-files-doc-markup-fix' · 8293ee05
      Junio C Hamano 提交于
      Docfix.
      
      * jk/ls-files-doc-markup-fix:
        doc/ls-files: put nested list for "-t" option into block
      8293ee05
    • J
      Merge branch 'jk/p5302-avoid-collision-check-cost' · e7a1b38f
      Junio C Hamano 提交于
      Fix index-pack perf test so that the repeated invocations always
      run in an empty repository, which emulates the initial clone
      situation better.
      
      * jk/p5302-avoid-collision-check-cost:
        p5302: create the repo in each index-pack test
      e7a1b38f
    • J
      Merge branch 'dl/no-extern-in-func-decl' · 4aeeef37
      Junio C Hamano 提交于
      Mechanically and systematically drop "extern" from function
      declarlation.
      
      * dl/no-extern-in-func-decl:
        *.[ch]: manually align parameter lists
        *.[ch]: remove extern from function declarations using sed
        *.[ch]: remove extern from function declarations using spatch
      4aeeef37
    • J
      Merge branch 'ew/repack-with-bitmaps-by-default' · 2bfb182b
      Junio C Hamano 提交于
      The connectivity bitmaps are created by default in bare
      repositories now; also the pathname hash-cache is created by
      default to avoid making crappy deltas when repacking.
      
      * ew/repack-with-bitmaps-by-default:
        pack-objects: default to writing bitmap hash-cache
        t5310: correctly remove bitmaps for jgit test
        repack: enable bitmaps by default on bare repos
      2bfb182b
    • J
      Merge branch 'js/partial-clone-connectivity-check' · 5b51f0d3
      Junio C Hamano 提交于
      During an initial "git clone --depth=..." partial clone, it is
      pointless to spend cycles for a large portion of the connectivity
      check that enumerates and skips promisor objects (which by
      definition is all objects fetched from the other side).  This has
      been optimized out.
      
      * js/partial-clone-connectivity-check:
        t/perf: add perf script for partial clones
        clone: do faster object check for partial clones
      5b51f0d3
    • J
      Merge branch 'jh/trace2-sid-fix' · 5b2d1c0c
      Junio C Hamano 提交于
      Polishing of the new trace2 facility continues.  The system-level
      configuration can specify site-wide trace2 settings, which can be
      overridden with per-user configuration and environment variables.
      
      * jh/trace2-sid-fix:
        trace2: fixup access problem on /etc/gitconfig in read_very_early_config
        trace2: update docs to describe system/global config settings
        trace2: make SIDs more unique
        trace2: clarify UTC datetime formatting
        trace2: report peak memory usage of the process
        trace2: use system/global config for default trace2 settings
        config: add read_very_early_config()
        trace2: find exec-dir before trace2 initialization
        trace2: add absolute elapsed time to start event
        trace2: refactor setting process starting time
        config: initialize opts structure in repo_read_config()
      5b2d1c0c
  4. 10 5月, 2019 1 次提交
  5. 08 5月, 2019 21 次提交
    • J
      The eighth batch · 6a6c0f10
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6a6c0f10
    • J
      Merge branch 'vk/autoconf-gettext' · f832bccd
      Junio C Hamano 提交于
      The autoconf generated configure script failed to use the right
      gettext() implementations from -libintl by ignoring useless stub
      implementations shipped in some C library, which has been
      corrected.
      
      * vk/autoconf-gettext:
        autoconf: #include <libintl.h> when checking for gettext()
      f832bccd
    • J
      Merge branch 'cc/aix-has-fileno-as-a-macro' · 1ff440fb
      Junio C Hamano 提交于
      AIX shared the same build issues with other BSDs around fileno(fp),
      which has been corrected.
      
      * cc/aix-has-fileno-as-a-macro:
        Makefile: use fileno macro work around on AIX
      1ff440fb
    • J
      Merge branch 'jt/submodule-repo-is-with-worktree' · ec2642a2
      Junio C Hamano 提交于
      The logic to tell if a Git repository has a working tree protects
      "git branch -D" from removing the branch that is currently checked
      out by mistake.  The implementation of this logic was broken for
      repositories with unusual name, which unfortunately is the norm for
      submodules these days.  This has been fixed.
      
      * jt/submodule-repo-is-with-worktree:
        worktree: update is_bare heuristics
      ec2642a2
    • J
      Merge branch 'jk/untracked-cache-more-fixes' · 5b5def9a
      Junio C Hamano 提交于
      Code clean-up.
      
      * jk/untracked-cache-more-fixes:
        untracked-cache: simplify parsing by dropping "len"
        untracked-cache: simplify parsing by dropping "next"
        untracked-cache: be defensive about missing NULs in index
      5b5def9a
    • J
      Merge branch 'jk/prune-optim' · d1311beb
      Junio C Hamano 提交于
      A follow-up test for an earlier "git prune" improvements.
      
      * jk/prune-optim:
        t5304: add a test for pruning with bitmaps
      d1311beb
    • J
      Merge branch 'js/misc-doc-fixes' · caa227ff
      Junio C Hamano 提交于
      "make check-docs", "git help -a", etc. did not account for cases
      where a particular build may deliberately omit some subcommands,
      which has been corrected.
      
      * js/misc-doc-fixes:
        Turn `git serve` into a test helper
        test-tool: handle the `-C <directory>` option just like `git`
        check-docs: do not bother checking for legacy scripts' documentation
        docs: exclude documentation for commands that have been excluded
        check-docs: allow command-list.txt to contain excluded commands
        help -a: do not list commands that are excluded from the build
        Makefile: drop the NO_INSTALL variable
        remote-testgit: move it into the support directory for t5801
      caa227ff
    • J
      Merge branch 'dr/ref-filter-push-track-fix' · f560a4d1
      Junio C Hamano 提交于
      %(push:track) token used in the --format option to "git
      for-each-ref" and friends was not showing the right branch, which
      has been fixed.
      
      * dr/ref-filter-push-track-fix:
        ref-filter: use correct branch for %(push:track)
      f560a4d1
    • J
      Merge branch 'ss/msvc-path-utils-fix' · 70542df5
      Junio C Hamano 提交于
      An earlier update for MinGW and Cygwin accidentally broke MSVC build,
      which has been fixed.
      
      * ss/msvc-path-utils-fix:
        MSVC: include compat/win32/path-utils.h for MSVC, too, for real_path()
      70542df5
    • J
      Merge branch 'jt/clone-server-option' · 6d3df8ef
      Junio C Hamano 提交于
      "git clone" learned a new --server-option option when talking over
      the protocol version 2.
      
      * jt/clone-server-option:
        clone: send server options when using protocol v2
        transport: die if server options are unsupported
      6d3df8ef
    • J
      Merge branch 'tb/unexpected' · ea2dab1a
      Junio C Hamano 提交于
      Code tightening against a "wrong" object appearing where an object
      of a different type is expected, instead of blindly assuming that
      the connection between objects are correctly made.
      
      * tb/unexpected:
        rev-list: detect broken root trees
        rev-list: let traversal die when --missing is not in use
        get_commit_tree(): return NULL for broken tree
        list-objects.c: handle unexpected non-tree entries
        list-objects.c: handle unexpected non-blob entries
        t: introduce tests for unexpected object types
        t: move 'hex2oct' into test-lib-functions.sh
      ea2dab1a
    • J
      Merge branch 'nd/sha1-name-c-wo-the-repository' · 0b179f31
      Junio C Hamano 提交于
      Further code clean-up to allow the lowest level of name-to-object
      mapping layer to work with a passed-in repository other than the
      default one.
      
      * nd/sha1-name-c-wo-the-repository: (34 commits)
        sha1-name.c: remove the_repo from get_oid_mb()
        sha1-name.c: remove the_repo from other get_oid_*
        sha1-name.c: remove the_repo from maybe_die_on_misspelt_object_name
        submodule-config.c: use repo_get_oid for reading .gitmodules
        sha1-name.c: add repo_get_oid()
        sha1-name.c: remove the_repo from get_oid_with_context_1()
        sha1-name.c: remove the_repo from resolve_relative_path()
        sha1-name.c: remove the_repo from diagnose_invalid_index_path()
        sha1-name.c: remove the_repo from handle_one_ref()
        sha1-name.c: remove the_repo from get_oid_1()
        sha1-name.c: remove the_repo from get_oid_basic()
        sha1-name.c: remove the_repo from get_describe_name()
        sha1-name.c: remove the_repo from get_oid_oneline()
        sha1-name.c: add repo_interpret_branch_name()
        sha1-name.c: remove the_repo from interpret_branch_mark()
        sha1-name.c: remove the_repo from interpret_nth_prior_checkout()
        sha1-name.c: remove the_repo from get_short_oid()
        sha1-name.c: add repo_for_each_abbrev()
        sha1-name.c: store and use repo in struct disambiguate_state
        sha1-name.c: add repo_find_unique_abbrev_r()
        ...
      0b179f31
    • J
      Merge branch 'cc/replace-graft-peel-tags' · ce2a18f2
      Junio C Hamano 提交于
      When given a tag that points at a commit-ish, "git replace --graft"
      failed to peel the tag before writing a replace ref, which did not
      make sense because the old graft mechanism the feature wants to
      mimick only allowed to replace one commit object with another.
      This has been fixed.
      
      * cc/replace-graft-peel-tags:
        replace: peel tag when passing a tag first to --graft
        replace: peel tag when passing a tag as parent to --graft
        t6050: redirect expected error output to a file
        t6050: use test_line_count instead of wc -l
      ce2a18f2
    • J
      Merge branch 'js/trace2-to-directory' · 1b403146
      Junio C Hamano 提交于
      The trace2 tracing facility learned to auto-generate a filename
      when told to log to a directory.
      
      * js/trace2-to-directory:
        trace2: write to directory targets
      1b403146
    • J
      Merge branch 'dl/merge-cleanup-scissors-fix' · b877cb4a
      Junio C Hamano 提交于
      The list of conflicted paths shown in the editor while concluding a
      conflicted merge was shown above the scissors line when the
      clean-up mode is set to "scissors", even though it was commented
      out just like the list of updated paths and other information to
      help the user explain the merge better.
      
      * dl/merge-cleanup-scissors-fix:
        cherry-pick/revert: add scissors line on merge conflict
        sequencer.c: save and restore cleanup mode
        merge: add scissors line on merge conflict
        merge: cleanup messages like commit
        parse-options.h: extract common --cleanup option
        commit: extract cleanup_mode functions to sequencer
        t7502: clean up style
        t7604: clean up style
        t3507: clean up style
        t7600: clean up style
      b877cb4a
    • J
      Merge branch 'pw/sequencer-cleanup-with-signoff-x-fix' · f757794d
      Junio C Hamano 提交于
      "git cherry-pick" run with the "-x" or the "--signoff" option used
      to (and more importantly, ought to) clean up the commit log message
      with the --cleanup=space option by default, but this has been
      broken since late 2017.  This has been fixed.
      
      * pw/sequencer-cleanup-with-signoff-x-fix:
        sequencer: fix cleanup with --signoff and -x
      f757794d
    • J
      Merge branch 'jk/pack-objects-reports-num-objects-to-trace2' · 3d675557
      Junio C Hamano 提交于
      The "git pack-objects" command learned to report the number of
      objects it packed via the trace2 mechanism.
      
      * jk/pack-objects-reports-num-objects-to-trace2:
        pack-objects: write objects packed to trace2
      3d675557
    • J
      Merge branch 'tz/git-svn-doc-markup-fix' · 6e0bef37
      Junio C Hamano 提交于
      Doc formatting fix.
      
      * tz/git-svn-doc-markup-fix:
        Documentation/git-svn: improve asciidoctor compatibility
      6e0bef37
    • J
      Merge branch 'km/empty-repo-is-still-a-repo' · 4ab701b2
      Junio C Hamano 提交于
      Running "git add" on a repository created inside the current
      repository is an explicit indication that the user wants to add it
      as a submodule, but when the HEAD of the inner repository is on an
      unborn branch, it cannot be added as a submodule.  Worse, the files
      in its working tree can be added as if they are a part of the outer
      repository, which is not what the user wants.  These problems are
      being addressed.
      
      * km/empty-repo-is-still-a-repo:
        add: error appropriately on repository with no commits
        dir: do not traverse repositories with no commits
        submodule: refuse to add repository with no commits
      4ab701b2
    • J
      Merge branch 'dl/warn-tagging-a-tag' · a1985623
      Junio C Hamano 提交于
      "git tag" learned to give an advice suggesting it might be a
      mistake when creating an annotated or signed tag that points at
      another tag.
      
      * dl/warn-tagging-a-tag:
        tag: advise on nested tags
        tag: fix formatting
      a1985623
    • J
      Merge branch 'en/merge-directory-renames' · 96379f04
      Junio C Hamano 提交于
      "git merge-recursive" backend recently learned a new heuristics to
      infer file movement based on how other files in the same directory
      moved.  As this is inherently less robust heuristics than the one
      based on the content similarity of the file itself (rather than
      based on what its neighbours are doing), it sometimes gives an
      outcome unexpected by the end users.  This has been toned down to
      leave the renamed paths in higher/conflicted stages in the index so
      that the user can examine and confirm the result.
      
      * en/merge-directory-renames:
        merge-recursive: switch directory rename detection default
        merge-recursive: give callers of handle_content_merge() access to contents
        merge-recursive: track information associated with directory renames
        t6043: fix copied test description to match its purpose
        merge-recursive: switch from (oid,mode) pairs to a diff_filespec
        merge-recursive: cleanup handle_rename_* function signatures
        merge-recursive: track branch where rename occurred in rename struct
        merge-recursive: remove ren[12]_other fields from rename_conflict_info
        merge-recursive: shrink rename_conflict_info
        merge-recursive: move some struct declarations together
        merge-recursive: use 'ci' for rename_conflict_info variable name
        merge-recursive: rename locals 'o' and 'a' to 'obuf' and 'abuf'
        merge-recursive: rename diff_filespec 'one' to 'o'
        merge-recursive: rename merge_options argument from 'o' to 'opt'
        Use 'unsigned short' for mode, like diff_filespec does
      96379f04