1. 14 6月, 2017 23 次提交
    • J
      Sync with maint · 02a2850a
      Junio C Hamano 提交于
      02a2850a
    • J
      Eighth batch for 2.14 · a393b0a4
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a393b0a4
    • J
      Merge branch 'jk/pack-idx-corruption-safety' · d0870466
      Junio C Hamano 提交于
      A flaky test has been corrected.
      
      * jk/pack-idx-corruption-safety:
        t5313: make extended-table test more deterministic
      d0870466
    • J
      Merge branch 'nd/fopen-errors' · b9a7d55d
      Junio C Hamano 提交于
      We often try to open a file for reading whose existence is
      optional, and silently ignore errors from open/fopen; report such
      errors if they are not due to missing files.
      
      * nd/fopen-errors:
        mingw_fopen: report ENOENT for invalid file names
        mingw: verify that paths are not mistaken for remote nicknames
        log: fix memory leak in open_next_file()
        rerere.c: move error_errno() closer to the source system call
        print errno when reporting a system call error
        wrapper.c: make warn_on_inaccessible() static
        wrapper.c: add and use fopen_or_warn()
        wrapper.c: add and use warn_on_fopen_errors()
        config.mak.uname: set FREAD_READS_DIRECTORIES for Darwin, too
        config.mak.uname: set FREAD_READS_DIRECTORIES for Linux and FreeBSD
        clone: use xfopen() instead of fopen()
        use xfopen() in more places
        git_fopen: fix a sparse 'not declared' warning
      b9a7d55d
    • J
      Merge branch 'rf/completion' · 9743f18f
      Junio C Hamano 提交于
      Completion updates.
      
      * rf/completion:
        completion: add git config credentialCache.ignoreSIGHUP
        completion: add git config credential completions
        completion: add git config advice completions
        completion: add git config am.threeWay completion
        completion: add git config core completions
        completion: add git config gc completions
      9743f18f
    • J
      Merge branch 'jc/diff-tree-stale-comment' · 42e731c7
      Junio C Hamano 提交于
      Comment fix.
      
      * jc/diff-tree-stale-comment:
        diff-tree: update stale in-code comments
      42e731c7
    • J
      Merge branch 'sb/submodule-blanket-recursive' · 3c548de3
      Junio C Hamano 提交于
      Many commands learned to pay attention to submodule.recurse
      configuration.
      
      * sb/submodule-blanket-recursive:
        builtin/fetch.c: respect 'submodule.recurse' option
        builtin/push.c: respect 'submodule.recurse' option
        builtin/grep.c: respect 'submodule.recurse' option
        Introduce 'submodule.recurse' option for worktree manipulators
        submodule loading: separate code path for .gitmodules and config overlay
        reset/checkout/read-tree: unify config callback for submodule recursion
        submodule test invocation: only pass additional arguments
        submodule recursing: do not write a config variable twice
      3c548de3
    • J
      Merge branch 'jc/noent-notdir' · 93dd544f
      Junio C Hamano 提交于
      Our code often opens a path to an optional file, to work on its
      contents when we can successfully open it.  We can ignore a failure
      to open if such an optional file does not exist, but we do want to
      report a failure in opening for other reasons (e.g. we got an I/O
      error, or the file is there, but we lack the permission to open).
      
      The exact errors we need to ignore are ENOENT (obviously) and
      ENOTDIR (less obvious).  Instead of repeating comparison of errno
      with these two constants, introduce a helper function to do so.
      
      * jc/noent-notdir:
        treewide: use is_missing_file_error() where ENOENT and ENOTDIR are checked
        compat-util: is_missing_file_error()
      93dd544f
    • J
      Prepare for 2.13.2 · fd99e2bd
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      fd99e2bd
    • J
      Merge branch 'ad/pull-remote-doc' into maint · 603d52d3
      Junio C Hamano 提交于
      Docfix.
      
      * ad/pull-remote-doc:
        docs: fix formatting and grammar
      603d52d3
    • J
      Merge branch 'jk/drop-free-refspecs' into maint · 9451a7b6
      Junio C Hamano 提交于
      Code clean-up.
      
      * jk/drop-free-refspecs:
        remote: drop free_refspecs() function
      9451a7b6
    • J
      Merge branch 'jk/connect-symref-info-leak-fix' into maint · 87d4fdd9
      Junio C Hamano 提交于
      Leakfix.
      
      * jk/connect-symref-info-leak-fix:
        connect.c: fix leak in parse_one_symref_info()
      87d4fdd9
    • J
      Merge branch 'rf/completion-config-commit' into maint · e0538aba
      Junio C Hamano 提交于
      Completion update.
      
      * rf/completion-config-commit:
        completion: add completions for git config commit
      e0538aba
    • J
      Merge branch 'ab/t3070-test-dedup' into maint · cbbe1c87
      Junio C Hamano 提交于
      Test cleanup.
      
      * ab/t3070-test-dedup:
        wildmatch test: remove redundant duplicate test
      cbbe1c87
    • J
      Merge branch 'jh/memihash-opt' into maint · a4478c9c
      Junio C Hamano 提交于
      perf-test update.
      
      * jh/memihash-opt:
        p0004: don't error out if test repo is too small
        p0004: don't abort if multi-threaded is too slow
        p0004: use test_perf
        p0004: avoid using pipes
        p0004: simplify calls of test-lazy-init-name-hash
      a4478c9c
    • J
      Merge branch 'tb/pull-ff-rebase-autostash' into maint · 9e60e21e
      Junio C Hamano 提交于
      "git pull --rebase --autostash" didn't auto-stash when the local history
      fast-forwards to the upstream.
      
      * tb/pull-ff-rebase-autostash:
        pull: ff --rebase --autostash works in dirty repo
      9e60e21e
    • J
      Merge branch 'jh/close-index-before-stat' into maint · f24e079c
      Junio C Hamano 提交于
      The timestamp of the index file is now taken after the file is
      closed, to help Windows, on which a stale timestamp is reported by
      fstat() on a file that is opened for writing and data was written
      but not yet closed.
      
      * jh/close-index-before-stat:
        read-cache: close index.lock in do_write_index
      f24e079c
    • J
      Merge branch 'sl/clean-d-ignored-fix' into maint · f4683b4e
      Junio C Hamano 提交于
      "git clean -d" used to clean directories that has ignored files,
      even though the command should not lose ignored ones without "-x".
      "git status --ignored"  did not list ignored and untracked files
      without "-uall".  These have been corrected.
      
      * sl/clean-d-ignored-fix:
        clean: teach clean -d to preserve ignored paths
        dir: expose cmp_name() and check_contains()
        dir: hide untracked contents of untracked dirs
        dir: recurse into untracked dirs for ignored files
        t7061: status --ignored should search untracked dirs
        t7300: clean -d should skip dirs with ignored files
      f4683b4e
    • J
      Merge branch 'dk/send-email-avoid-net-smtp-ssl-when-able' into maint · f381e428
      Junio C Hamano 提交于
      A hotfix to a topic in 'master'.
      
      * dk/send-email-avoid-net-smtp-ssl-when-able:
        send-email: Net::SMTP::starttls was introduced in v2.34
        send-email: Net::SMTP::SSL is obsolete, use only when necessary
      f381e428
    • J
      Merge branch 'jc/skip-test-in-the-middle' into maint · 8a5732c1
      Junio C Hamano 提交于
      A recent update to t5545-push-options.sh started skipping all the
      tests in the script when a web server testing is disabled or
      unavailable, not just the ones that require a web server.  Non HTTP
      tests have been salvaged to always run in this script.
      
      * jc/skip-test-in-the-middle:
        t5545: enhance test coverage when no http server is installed
        test: allow skipping the remainder
      8a5732c1
    • J
      Merge branch 'bw/forking-and-threading' into maint · e350625b
      Junio C Hamano 提交于
      The "run-command" API implementation has been made more robust
      against dead-locking in a threaded environment.
      
      * bw/forking-and-threading:
        usage.c: drop set_error_handle()
        run-command: restrict PATH search to executable files
        run-command: expose is_executable function
        run-command: block signals between fork and execve
        run-command: add note about forking and threading
        run-command: handle dup2 and close errors in child
        run-command: eliminate calls to error handling functions in child
        run-command: don't die in child when duping /dev/null
        run-command: prepare child environment before forking
        string-list: add string_list_remove function
        run-command: use the async-signal-safe execv instead of execvp
        run-command: prepare command before forking
        t0061: run_command executes scripts without a #! line
        t5550: use write_script to generate post-update hook
      e350625b
    • J
      Merge branch 'jk/bug-to-abort' into maint · 7a190a21
      Junio C Hamano 提交于
      Introduce the BUG() macro to improve die("BUG: ...").
      
      * jk/bug-to-abort:
        usage: add NORETURN to BUG() function definitions
        config: complain about --local outside of a git repo
        setup_git_env: convert die("BUG") to BUG()
        usage.c: add BUG() function
      7a190a21
    • J
      Merge branch 'sb/checkout-recurse-submodules' into maint · 146b0ab1
      Junio C Hamano 提交于
      "git checkout --recurse-submodules" did not quite work with a
      submodule that itself has submodules.
      
      * sb/checkout-recurse-submodules:
        submodule: properly recurse for read-tree and checkout
        submodule: avoid auto-discovery in new working tree manipulator code
        submodule_move_head: reuse child_process structure for futher commands
      146b0ab1
  2. 10 6月, 2017 1 次提交
  3. 08 6月, 2017 1 次提交
  4. 07 6月, 2017 5 次提交
  5. 05 6月, 2017 10 次提交
    • J
      Sync with v2.13.1 · 69e6b9b4
      Junio C Hamano 提交于
      69e6b9b4
    • J
      Seventh batch for 2.14 · b3a847d1
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b3a847d1
    • J
      Merge branch 'ad/pull-remote-doc' · ac935fca
      Junio C Hamano 提交于
      Docfix.
      
      * ad/pull-remote-doc:
        docs: fix formatting and grammar
      ac935fca
    • J
      Merge branch 'tb/pull-ff-rebase-autostash' · 35898eaf
      Junio C Hamano 提交于
      "git pull --rebase --autostash" didn't auto-stash when the local history
      fast-forwards to the upstream.
      
      * tb/pull-ff-rebase-autostash:
        pull: ff --rebase --autostash works in dirty repo
      35898eaf
    • J
      Merge branch 'jk/drop-free-refspecs' · 6e9b0108
      Junio C Hamano 提交于
      Code clean-up.
      
      * jk/drop-free-refspecs:
        remote: drop free_refspecs() function
      6e9b0108
    • J
      Merge branch 'jk/connect-symref-info-leak-fix' · a12bfb2b
      Junio C Hamano 提交于
      Leakfix.
      
      * jk/connect-symref-info-leak-fix:
        connect.c: fix leak in parse_one_symref_info()
      a12bfb2b
    • J
      Merge branch 'js/blame-lib' · 583c6a22
      Junio C Hamano 提交于
      The internal logic used in "git blame" has been libified to make it
      easier to use by cgit.
      
      * js/blame-lib: (29 commits)
        blame: move entry prepend to libgit
        blame: move scoreboard setup to libgit
        blame: move scoreboard-related methods to libgit
        blame: move fake-commit-related methods to libgit
        blame: move origin-related methods to libgit
        blame: move core structures to header
        blame: create entry prepend function
        blame: create scoreboard setup function
        blame: create scoreboard init function
        blame: rework methods that determine 'final' commit
        blame: wrap blame_sort and compare_blame_final
        blame: move progress updates to a scoreboard callback
        blame: make sanity_check use a callback in scoreboard
        blame: move no_whole_file_rename flag to scoreboard
        blame: move xdl_opts flags to scoreboard
        blame: move show_root flag to scoreboard
        blame: move reverse flag to scoreboard
        blame: move contents_from to scoreboard
        blame: move copy/move thresholds to scoreboard
        blame: move stat counters to scoreboard
        ...
      583c6a22
    • J
      Merge branch 'mh/packed-ref-store-prep' · 711a11c3
      Junio C Hamano 提交于
      The implementation of "ref" API around the "packed refs" have been
      cleaned up, in preparation for further changes.
      
      * mh/packed-ref-store-prep: (25 commits)
        cache_ref_iterator_begin(): avoid priming unneeded directories
        ref-filter: limit traversal to prefix
        create_ref_entry(): remove `check_name` option
        refs_ref_iterator_begin(): handle `GIT_REF_PARANOIA`
        read_packed_refs(): report unexpected fopen() failures
        read_packed_refs(): do more of the work of reading packed refs
        get_packed_ref_cache(): assume "packed-refs" won't change while locked
        should_pack_ref(): new function, extracted from `files_pack_refs()`
        ref_update_reject_duplicates(): add a sanity check
        ref_update_reject_duplicates(): use `size_t` rather than `int`
        ref_update_reject_duplicates(): expose function to whole refs module
        ref_transaction_prepare(): new optional step for reference updates
        ref_transaction_commit(): check for valid `transaction->state`
        files_transaction_cleanup(): new helper function
        files_ref_store: put the packed files lock directly in this struct
        files-backend: move `lock` member to `files_ref_store`
        lockfile: add a new method, is_lock_file_locked()
        ref_store: take a `msg` parameter when deleting references
        refs: use `size_t` indexes when iterating over ref transaction updates
        refs_ref_iterator_begin(): don't check prefixes redundantly
        ...
      711a11c3
    • J
      Merge branch 'mb/diff-default-to-indent-heuristics' · 53083f85
      Junio C Hamano 提交于
      Make the "indent" heuristics the default in "diff" and diff.indentHeuristics
      configuration variable an escape hatch for those who do no want it.
      
      * mb/diff-default-to-indent-heuristics:
        add--interactive: drop diff.indentHeuristic handling
        diff: enable indent heuristic by default
        diff: have the diff-* builtins configure diff before initializing revisions
        diff: make the indent heuristic part of diff's basic configuration
      53083f85
    • J
      Merge branch 'jh/close-index-before-stat' · 70f8ba55
      Junio C Hamano 提交于
      The timestamp of the index file is now taken after the file is
      closed, to help Windows, on which a stale timestamp is reported by
      fstat() on a file that is opened for writing and data was written
      but not yet closed.
      
      * jh/close-index-before-stat:
        read-cache: close index.lock in do_write_index
      70f8ba55