1. 27 4月, 2017 1 次提交
  2. 24 4月, 2017 19 次提交
    • J
      Getting ready for -rc1 · e2cb6ab8
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e2cb6ab8
    • J
      Merge branch 'dt/xgethostname-nul-termination' · 5938454c
      Junio C Hamano 提交于
      gethostname(2) may not NUL terminate the buffer if hostname does
      not fit; unfortunately there is no easy way to see if our buffer
      was too small, but at least this will make sure we will not end up
      using garbage past the end of the buffer.
      
      * dt/xgethostname-nul-termination:
        xgethostname: handle long hostnames
        use HOST_NAME_MAX to size buffers for gethostname(2)
      5938454c
    • J
      Merge branch 'jk/ls-files-recurse-submodules-fix' · 2d646e3e
      Junio C Hamano 提交于
      "ls-files --recurse-submodules" did not quite work well in a
      project with nested submodules.
      
      * jk/ls-files-recurse-submodules-fix:
        ls-files: fix path used when recursing into submodules
        ls-files: fix recurse-submodules with nested submodules
      2d646e3e
    • J
      Merge branch 'rs/misc-cppcheck-fixes' · f9096db5
      Junio C Hamano 提交于
      Various small fixes.
      
      * rs/misc-cppcheck-fixes:
        server-info: avoid calling fclose(3) twice in update_info_file()
        files_for_each_reflog_ent_reverse(): close stream and free strbuf on error
        am: close stream on error, but not stdin
      f9096db5
    • J
      Merge branch 'jk/snprintf-cleanups' · a507115e
      Junio C Hamano 提交于
      Hotfix for a topic that is already in 'master'.
      
      * jk/snprintf-cleanups:
        replace: plug a memory leak
      a507115e
    • J
      Merge branch 'xy/format-patch-base' · 2cef68f8
      Junio C Hamano 提交于
      Doc cleanup.
      
      * xy/format-patch-base:
        doc: trivial typo in git-format-patch.txt
      2cef68f8
    • J
      Merge branch 'sb/checkout-recurse-submodules' · 5000cd45
      Junio C Hamano 提交于
      Code cleanup.
      
      * sb/checkout-recurse-submodules:
        submodule: remove a superfluous second check for the "new" variable
      5000cd45
    • J
      Merge branch 'jt/fetch-pack-error-reporting' · d2617eb9
      Junio C Hamano 提交于
      "git fetch-pack" was not prepared to accept ERR packet that the
      upload-pack can send with a human-readable error message.  It
      showed the packet contents with ERR prefix, so there was no data
      loss, but it was redundant to say "ERR" in an error message.
      
      * jt/fetch-pack-error-reporting:
        fetch-pack: show clearer error message upon ERR
      d2617eb9
    • J
      Merge branch 'km/t1400-modernization' · b30cf676
      Junio C Hamano 提交于
      Code cleanup.
      
      * km/t1400-modernization:
        t1400: use consistent style for test_expect_success calls
      b30cf676
    • J
      Merge branch 'jk/quarantine-received-objects' · 9f1384f7
      Junio C Hamano 提交于
      Add finishing touches to a recent topic.
      
      * jk/quarantine-received-objects:
        refs: reject ref updates while GIT_QUARANTINE_PATH is set
        receive-pack: document user-visible quarantine effects
        receive-pack: drop tmp_objdir_env from run_update_hook
      9f1384f7
    • J
      Merge branch 'jk/loose-object-fsck' · d7f8a378
      Junio C Hamano 提交于
      Code cleanup.
      
      * jk/loose-object-fsck:
        sha1_file: remove an used fd variable
      d7f8a378
    • J
      Merge branch 'bw/submodule-with-bs-path' · 5bceab41
      Junio C Hamano 提交于
      "git submodule" script does not work well with strange pathnames.
      Protect it from a path with slashes in them, at least.
      
      * bw/submodule-with-bs-path:
        submodule: prevent backslash expantion in submodule names
      5bceab41
    • J
      Merge branch 'jh/verify-index-checksum-only-in-fsck' · cdfe138b
      Junio C Hamano 提交于
      The index file has a trailing SHA-1 checksum to detect file
      corruption, and historically we checked it every time the index
      file is used.  Omit the validation during normal use, and instead
      verify only in "git fsck".
      
      * jh/verify-index-checksum-only-in-fsck:
        read-cache: force_verify_index_checksum
      cdfe138b
    • J
      Merge branch 'jh/unpack-trees-micro-optim' · 8868ba19
      Junio C Hamano 提交于
      In a 2- and 3-way merge of trees, more than one source trees often
      end up sharing an identical subtree; optimize by not reading the
      same tree multiple times in such a case.
      
      * jh/unpack-trees-micro-optim:
        unpack-trees: avoid duplicate ODB lookups during checkout
      8868ba19
    • J
      Merge branch 'jh/string-list-micro-optim' · 8b6bba66
      Junio C Hamano 提交于
      The string-list API used a custom reallocation strategy that was
      very inefficient, instead of using the usual ALLOC_GROW() macro,
      which has been fixed.
      
      * jh/string-list-micro-optim:
        string-list: use ALLOC_GROW macro when reallocing string_list
      8b6bba66
    • J
      Merge branch 'nd/conditional-config-include' · a2e2c046
      Junio C Hamano 提交于
      $GIT_DIR may in some cases be normalized with all symlinks resolved
      while "gitdir" path expansion in the pattern does not receive the
      same treatment, leading to incorrect mismatch.  This has been fixed.
      
      * nd/conditional-config-include:
        config: resolve symlinks in conditional include's patterns
        path.c: and an option to call real_path() in expand_user_path()
      a2e2c046
    • J
      Merge branch 'dt/http-postbuffer-can-be-large' · 4c01f67d
      Junio C Hamano 提交于
      Allow the http.postbuffer configuration variable to be set to a
      size that can be expressed in size_t, which can be larger than
      ulong on some platforms.
      
      * dt/http-postbuffer-can-be-large:
        http.postbuffer: allow full range of ssize_t values
      4c01f67d
    • J
      Merge branch 'tb/doc-eol-normalization' · 848d9a9b
      Junio C Hamano 提交于
      Doc update.
      
      * tb/doc-eol-normalization:
        gitattributes.txt: document how to normalize the line endings
      848d9a9b
    • J
      Merge branch 'sr/http-proxy-configuration-fix' · 6b51cb61
      Junio C Hamano 提交于
      "http.proxy" set to an empty string is used to disable the usage of
      proxy.  We broke this early last year.
      
      * sr/http-proxy-configuration-fix:
        http: fix the silent ignoring of proxy misconfiguraion
        http: honor empty http.proxy option to bypass proxy
      6b51cb61
  3. 20 4月, 2017 18 次提交
    • J
      Git 2.13-rc0 · 6a2c2f8d
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6a2c2f8d
    • J
      Merge branch 'jh/memihash-opt' · 8377f345
      Junio C Hamano 提交于
      Hotfix for a topic that is already in 'master'.
      
      * jh/memihash-opt:
        p0004: make perf test executable
        t3008: skip lazy-init test on a single-core box
        test-online-cpus: helper to return cpu count
        name-hash: fix buffer overrun
      8377f345
    • J
      Merge branch 'vn/revision-shorthand-for-side-branch-log' · 5feb8b84
      Junio C Hamano 提交于
      Doc cleanup.
      
      * vn/revision-shorthand-for-side-branch-log:
        doc/revisions: remove brackets from rev^-n shorthand
      5feb8b84
    • J
      Merge branch 'sf/putty-w-args' · c96e3ce6
      Junio C Hamano 提交于
      * sf/putty-w-args:
        connect.c: handle errors from split_cmdline
      c96e3ce6
    • J
      Merge branch 'ld/p4-current-branch-fix' · c2cbb30f
      Junio C Hamano 提交于
      "git p4" used "name-rev HEAD" when it wants to learn what branch is
      checked out; it should use "symbolic-ref HEAD".
      
      * ld/p4-current-branch-fix:
        git-p4: don't use name-rev to get current branch
        git-p4: add read_pipe_text() internal function
        git-p4: add failing test for name-rev rather than symbolic-ref
      c2cbb30f
    • J
      Merge branch 'dt/gc-ignore-old-gc-logs' · 442136f7
      Junio C Hamano 提交于
      * dt/gc-ignore-old-gc-logs:
        t6500: wait for detached auto gc at the end of the test script
      442136f7
    • J
      Merge branch 'bw/attr-pathspec' · 2f9dfb83
      Junio C Hamano 提交于
      * bw/attr-pathspec:
        pathspec: fix segfault in clear_pathspec
      2f9dfb83
    • J
      Merge branch 'ab/grep-plug-pathspec-leak' · df3b1192
      Junio C Hamano 提交于
      Call clear_pathspec() to release resources immediately before the
      cmd_grep() function returns.
      
      * ab/grep-plug-pathspec-leak:
        grep: plug a trivial memory leak
      df3b1192
    • J
      Merge branch 'jk/no-looking-at-dotgit-outside-repo' · eb3af74e
      Junio C Hamano 提交于
      Clean up fallouts from recent tightening of the set-up sequence,
      where Git barfs when repository information is accessed without
      first ensuring that it was started in a repository.
      
      * jk/no-looking-at-dotgit-outside-repo:
        test-read-cache: setup git dir
        has_sha1_file: don't bother if we are not in a repository
      eb3af74e
    • J
      Merge branch 'nd/files-backend-git-dir' · 5ab8f226
      Junio C Hamano 提交于
      The "submodule" specific field in the ref_store structure is
      replaced with a more generic "gitdir" that can later be used also
      when dealing with ref_store that represents the set of refs visible
      from the other worktrees.
      
      * nd/files-backend-git-dir: (28 commits)
        refs.h: add a note about sorting order of for_each_ref_*
        t1406: new tests for submodule ref store
        t1405: some basic tests on main ref store
        t/helper: add test-ref-store to test ref-store functions
        refs: delete pack_refs() in favor of refs_pack_refs()
        files-backend: avoid ref api targeting main ref store
        refs: new transaction related ref-store api
        refs: add new ref-store api
        refs: rename get_ref_store() to get_submodule_ref_store() and make it public
        files-backend: replace submodule_allowed check in files_downcast()
        refs: move submodule code out of files-backend.c
        path.c: move some code out of strbuf_git_path_submodule()
        refs.c: make get_main_ref_store() public and use it
        refs.c: kill register_ref_store(), add register_submodule_ref_store()
        refs.c: flatten get_ref_store() a bit
        refs: rename lookup_ref_store() to lookup_submodule_ref_store()
        refs.c: introduce get_main_ref_store()
        files-backend: remove the use of git_path()
        files-backend: add and use files_ref_path()
        files-backend: add and use files_reflog_path()
        ...
      5ab8f226
    • J
      Merge branch 'bw/submodule-is-active' · 52d77af4
      Junio C Hamano 提交于
      Error message fix.
      
      * bw/submodule-is-active:
        submodule--helper: fix typo in is_active error message
      52d77af4
    • J
      Merge branch 'va/i18n-perl-scripts' · 34130cc0
      Junio C Hamano 提交于
      Message fix.
      
      * va/i18n-perl-scripts:
        git-add--interactive.perl: add missing dot in a message
      34130cc0
    • J
      Merge branch 'sb/submodule-rm-absorb' · a06380be
      Junio C Hamano 提交于
      Error message fix.
      
      * sb/submodule-rm-absorb:
        submodule.c: add missing ' in error messages
      a06380be
    • J
      Merge branch 'ah/diff-files-ours-theirs-doc' · 7203bafa
      Junio C Hamano 提交于
      The diff options "--ours", "--theirs" exist for quite some time.
      But so far they were not documented. Now they are.
      
      * ah/diff-files-ours-theirs-doc:
        diff-files: document --ours etc.
      7203bafa
    • J
      Merge branch 'lt/mailinfo-in-body-header-continuation' · 74a74bee
      Junio C Hamano 提交于
      If a patch e-mail had its first paragraph after an in-body header
      indented (even after a blank line after the in-body header line),
      the indented line was mistook as a continuation of the in-body
      header.  This has been fixed.
      
      * lt/mailinfo-in-body-header-continuation:
        mailinfo: fix in-body header continuations
      74a74bee
    • J
      Merge branch 'bw/push-options-recursively-to-submodules' · 872e2cf0
      Junio C Hamano 提交于
      "git push --recurse-submodules --push-option=<string>" learned to
      propagate the push option recursively down to pushes in submodules.
      
      * bw/push-options-recursively-to-submodules:
        push: propagate remote and refspec with --recurse-submodules
        submodule--helper: add push-check subcommand
        remote: expose parse_push_refspec function
        push: propagate push-options with --recurse-submodules
        push: unmark a local variable as static
      872e2cf0
    • J
      Merge branch 'bc/object-id' · b1081e40
      Junio C Hamano 提交于
      Conversion from unsigned char [40] to struct object_id continues.
      
      * bc/object-id:
        Documentation: update and rename api-sha1-array.txt
        Rename sha1_array to oid_array
        Convert sha1_array_for_each_unique and for_each_abbrev to object_id
        Convert sha1_array_lookup to take struct object_id
        Convert remaining callers of sha1_array_lookup to object_id
        Make sha1_array_append take a struct object_id *
        sha1-array: convert internal storage for struct sha1_array to object_id
        builtin/pull: convert to struct object_id
        submodule: convert check_for_new_submodule_commits to object_id
        sha1_name: convert disambiguate_hint_fn to take object_id
        sha1_name: convert struct disambiguate_state to object_id
        test-sha1-array: convert most code to struct object_id
        parse-options-cb: convert sha1_array_append caller to struct object_id
        fsck: convert init_skiplist to struct object_id
        builtin/receive-pack: convert portions to struct object_id
        builtin/pull: convert portions to struct object_id
        builtin/diff: convert to struct object_id
        Convert GIT_SHA1_RAWSZ used for allocation to GIT_MAX_RAWSZ
        Convert GIT_SHA1_HEXSZ used for allocation to GIT_MAX_HEXSZ
        Define new hash-size constants for allocating memory
      b1081e40
    • J
      Merge branch 'sb/submodule-short-status' · c703555c
      Junio C Hamano 提交于
      The output from "git status --short" has been extended to show
      various kinds of dirtyness in submodules differently; instead of to
      "M" for modified, 'm' and '?' can be shown to signal changes only
      to the working tree of the submodule but not the commit that is
      checked out.
      
      * sb/submodule-short-status:
        submodule.c: correctly handle nested submodules in is_submodule_modified
        short status: improve reporting for submodule changes
        submodule.c: stricter checking for submodules in is_submodule_modified
        submodule.c: port is_submodule_modified to use porcelain 2
        submodule.c: convert is_submodule_modified to use strbuf_getwholeline
        submodule.c: factor out early loop termination in is_submodule_modified
        submodule.c: use argv_array in is_submodule_modified
      c703555c
  4. 19 4月, 2017 2 次提交