1. 23 9月, 2016 1 次提交
    • J
      clone: pass --progress decision to recursive submodules · 72c5f883
      Jeff King 提交于
      When cloning with "--recursive", we'd generally expect
      submodules to show progress reports if the main clone did,
      too.
      
      In older versions of git, this mostly worked out of the
      box. Since we show progress by default when stderr is a tty,
      and since the child clones inherit the parent stderr, then
      both processes would come to the same decision by default.
      If the parent clone was asked for "--quiet", we passed down
      "--quiet" to the child. However, if stderr was not a tty and
      the user specified "--progress", we did not propagate this
      to the child.
      
      That's a minor bug, but things got much worse when we
      switched recently to submodule--helper's update_clone
      command. With that change, the stderr of the child clones
      are always connected to a pipe, and we never output
      progress at all.
      
      This patch teaches git-submodule and git-submodule--helper
      how to pass down an explicit "--progress" flag when cloning.
      The clone command then decides to propagate that flag based
      on the cloning decision made earlier (which takes into
      account isatty(2) of the parent process, existing --progress
      or --quiet flags, etc). Since the child processes always run
      without a tty on stderr, we don't have to worry about
      passing an explicit "--no-progress"; it's the default for
      them.
      
      This fixes the recent loss of progress during recursive
      clones. And as a bonus, it makes:
      
        git clone --recursive --progress ... 2>&1 | cat
      
      work by triggering progress explicitly in the children.
      Signed-off-by: NJeff King <peff@peff.net>
      Acked-by: NStefan Beller <sbeller@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      72c5f883
  2. 09 9月, 2016 7 次提交
    • J
      Merge branch 'sb/submodule-clone-rr' · 02c6c14d
      Junio C Hamano 提交于
      "git clone --resurse-submodules --reference $path $URL" is a way to
      reduce network transfer cost by borrowing objects in an existing
      $path repository when cloning the superproject from $URL; it
      learned to also peek into $path for presense of corresponding
      repositories of submodules and borrow objects from there when able.
      
      * sb/submodule-clone-rr:
        clone: recursive and reference option triggers submodule alternates
        clone: implement optional references
        clone: clarify option_reference as required
        clone: factor out checking for an alternate path
        submodule--helper update-clone: allow multiple references
        submodule--helper module-clone: allow multiple references
        t7408: merge short tests, factor out testing method
        t7408: modernize style
      02c6c14d
    • J
      Merge branch 'jh/status-v2-porcelain' · 00d27937
      Junio C Hamano 提交于
      Enhance "git status --porcelain" output by collecting more data on
      the state of the index and the working tree files, which may
      further be used to teach git-prompt (in contrib/) to make fewer
      calls to git.
      
      * jh/status-v2-porcelain:
        status: unit tests for --porcelain=v2
        test-lib-functions.sh: add lf_to_nul helper
        git-status.txt: describe --porcelain=v2 format
        status: print branch info with --porcelain=v2 --branch
        status: print per-file porcelain v2 status data
        status: collect per-file data for --porcelain=v2
        status: support --porcelain[=<version>]
        status: cleanup API to wt_status_print
        status: rename long-format print routines
      00d27937
    • J
      Merge branch 'po/range-doc' · d0b61dc6
      Junio C Hamano 提交于
      Clarify various ways to specify the "revision ranges" in the
      documentation.
      
      * po/range-doc:
        doc: revisions: sort examples and fix alignment of the unchanged
        doc: revisions: show revision expansion in examples
        doc: revisions - clarify reachability examples
        doc: revisions - define `reachable`
        doc: gitrevisions - clarify 'latter case' is revision walk
        doc: gitrevisions - use 'reachable' in page description
        doc: revisions: single vs multi-parent notation comparison
        doc: revisions: extra clarification of <rev>^! notation effects
        doc: revisions: give headings for the two and three dot notations
        doc: show the actual left, right, and boundary marks
        doc: revisions - name the left and right sides
        doc: use 'symmetric difference' consistently
      d0b61dc6
    • J
      Merge branch 'rt/help-unknown' · d7ed183a
      Junio C Hamano 提交于
      "git nosuchcommand --help" said "No manual entry for gitnosuchcommand",
      which was not intuitive, given that "git nosuchcommand" said "git:
      'nosuchcommand' is not a git command".
      
      * rt/help-unknown:
        help: make option --help open man pages only for Git commands
        help: introduce option --exclude-guides
      d7ed183a
    • J
      Merge branch 'cc/receive-pack-limit' · da3b6f06
      Junio C Hamano 提交于
      An incoming "git push" that attempts to push too many bytes can now
      be rejected by setting a new configuration variable at the receiving
      end.
      
      * cc/receive-pack-limit:
        receive-pack: allow a maximum input size to be specified
        unpack-objects: add --max-input-size=<size> option
        index-pack: add --max-input-size=<size> option
      da3b6f06
    • J
      Merge branch 'jk/format-patch-number-singleton-patch-with-cover' · 452a9073
      Junio C Hamano 提交于
      "git format-patch --cover-letter HEAD^" to format a single patch
      with a separate cover letter now numbers the output as [PATCH 0/1]
      and [PATCH 1/1] by default.
      
      * jk/format-patch-number-singleton-patch-with-cover:
        format-patch: show 0/1 and 1/1 for singleton patch with cover letter
      452a9073
    • J
      Merge branch 'jk/delta-base-cache' · c4071eac
      Junio C Hamano 提交于
      The delta-base-cache mechanism has been a key to the performance in
      a repository with a tightly packed packfile, but it did not scale
      well even with a larger value of core.deltaBaseCacheLimit.
      
      * jk/delta-base-cache:
        t/perf: add basic perf tests for delta base cache
        delta_base_cache: use hashmap.h
        delta_base_cache: drop special treatment of blobs
        delta_base_cache: use list.h for LRU
        release_delta_base_cache: reuse existing detach function
        clear_delta_base_cache_entry: use a more descriptive name
        cache_or_unpack_entry: drop keep_cache parameter
      c4071eac
  3. 03 9月, 2016 1 次提交
  4. 02 9月, 2016 2 次提交
  5. 01 9月, 2016 5 次提交
  6. 31 8月, 2016 4 次提交
  7. 30 8月, 2016 2 次提交
  8. 29 8月, 2016 1 次提交
  9. 28 8月, 2016 3 次提交
  10. 27 8月, 2016 7 次提交
  11. 26 8月, 2016 7 次提交
    • J
      Prepare for 2.10.0-rc2 · 5cb0d5ad
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5cb0d5ad
    • J
      Merge branch 'ja/i18n' · 0fd6c99b
      Junio C Hamano 提交于
      The recent i18n patch we added during this cycle did a bit too much
      refactoring of the messages to avoid word-legos; the repetition has
      been reduced to help translators.
      
      * ja/i18n:
        i18n: simplify numeric error reporting
        i18n: fix git rebase interactive commit messages
        i18n: fix typos for translation
      0fd6c99b
    • J
      Merge branch 'bw/mingw-avoid-inheriting-fd-to-lockfile' · 3dc01702
      Junio C Hamano 提交于
      The tempfile (hence its user lockfile) API lets the caller to open
      a file descriptor to a temporary file, write into it and then
      finalize it by first closing the filehandle and then either
      removing or renaming the temporary file.  When the process spawns a
      subprocess after obtaining the file descriptor, and if the
      subprocess has not exited when the attempt to remove or rename is
      made, the last step fails on Windows, because the subprocess has
      the file descriptor still open.  Open tempfile with O_CLOEXEC flag
      to avoid this (on Windows, this is mapped to O_NOINHERIT).
      
      * bw/mingw-avoid-inheriting-fd-to-lockfile:
        mingw: ensure temporary file handles are not inherited by child processes
        t6026-merge-attr: child processes must not inherit index.lock handles
      3dc01702
    • J
      Merge branch 'dg/document-git-c-in-git-config-doc' · a8998453
      Junio C Hamano 提交于
      The "git -c var[=val] cmd" facility to append a configuration
      variable definition at the end of the search order was described in
      git(1) manual page, but not in git-config(1), which was more likely
      place for people to look for when they ask "can I make a one-shot
      override, and if so how?"
      
      * dg/document-git-c-in-git-config-doc:
        doc: mention `git -c` in git-config(1)
      a8998453
    • J
      Merge branch 'js/no-html-bypass-on-windows' · 13e11ff7
      Junio C Hamano 提交于
      On Windows, help.browser configuration variable used to be ignored,
      which has been corrected.
      
      * js/no-html-bypass-on-windows:
        Revert "display HTML in default browser using Windows' shell API"
      13e11ff7
    • J
      Merge branch 'hv/doc-commit-reference-style' · a1f0b4e2
      Junio C Hamano 提交于
      A small doc update.
      
      * hv/doc-commit-reference-style:
        SubmittingPatches: document how to reference previous commits
      a1f0b4e2
    • T
      git ls-files: text=auto eol=lf is supported in Git 2.10 · 41a616da
      Torsten Bögershausen 提交于
      The man page for `git ls-files --eol` mentions the combination
      of text attributes "text=auto eol=lf" or "text=auto eol=crlf" as not
      supported yet, but may be in the future.
      
      Now they are supported.
      Signed-off-by: NTorsten Bögershausen <tboegi@web.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      41a616da