1. 07 7月, 2016 12 次提交
  2. 28 6月, 2016 5 次提交
    • J
      Start preparing for 2.9.1 · 2ff7dff0
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2ff7dff0
    • J
      Merge branch 'rs/xdiff-hunk-with-func-line' into maint · fda65fad
      Junio C Hamano 提交于
      "git show -W" (extend hunks to cover the entire function, delimited
      by lines that match the "funcname" pattern) used to show the entire
      file when a change added an entire function at the end of the file,
      which has been fixed.
      
      * rs/xdiff-hunk-with-func-line:
        xdiff: fix merging of appended hunk with -W
        grep: -W: don't extend context to trailing empty lines
        t7810: add test for grep -W and trailing empty context lines
        xdiff: don't trim common tail with -W
        xdiff: -W: don't include common trailing empty lines in context
        xdiff: ignore empty lines before added functions with -W
        xdiff: handle appended chunks better with -W
        xdiff: factor out match_func_rec()
        t4051: rewrite, add more tests
      fda65fad
    • J
      Merge branch 'jk/rev-list-count-with-bitmap' into maint · df5a9255
      Junio C Hamano 提交于
      "git rev-list --count" whose walk-length is limited with "-n"
      option did not work well with the counting optimized to look at the
      bitmap index.
      
      * jk/rev-list-count-with-bitmap:
        rev-list: disable bitmaps when "-n" is used with listing objects
        rev-list: "adjust" results of "--count --use-bitmap-index -n"
      df5a9255
    • J
      Merge branch 'et/pretty-format-c-auto' into maint · fbb4138c
      Junio C Hamano 提交于
      The commands in `git log` family take %C(auto) in a custom format
      string.  This unconditionally turned the color on, ignoring
      --no-color or with --color=auto when the output is not connected to
      a tty; this was corrected to make the format truly behave as
      "auto".
      
      * et/pretty-format-c-auto:
        format_commit_message: honor `color=auto` for `%C(auto)`
      fbb4138c
    • J
      Merge branch 'ew/daemon-socket-keepalive' into maint · 0a20325a
      Junio C Hamano 提交于
      When "git daemon" is run without --[init-]timeout specified, a
      connection from a client that silently goes offline can hang around
      for a long time, wasting resources.  The socket-level KEEPALIVE has
      been enabled to allow the OS to notice such failed connections.
      
      * ew/daemon-socket-keepalive:
        daemon: enable SO_KEEPALIVE for all sockets
      0a20325a
  3. 18 6月, 2016 1 次提交
    • E
      rebase: update comment about FreeBSD /bin/sh · 9b35cadc
      Ed Maste 提交于
      Commit 9f50d32b introduced a fix for FreeBSD /bin/sh misbehaviour
      when dot-sourcing a file containing "return" statements outside of
      any function, from a function in another shell script. That issue
      affects FreeBSD 9.x, and is not present in the /bin/sh in FreeBSD
      10.3 and later. Update the comment to clarify this.
      
      The example from 9f50d32b's commit message produces the expected output
      on FreeBSD 10.3 and -CURRENT (the upcoming 11.0):
      
      % sh script1.sh
      only this line should show
      %
      Signed-off-by: NEd Maste <emaste@freebsd.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9b35cadc
  4. 17 6月, 2016 1 次提交
  5. 16 6月, 2016 1 次提交
  6. 15 6月, 2016 1 次提交
  7. 14 6月, 2016 1 次提交
  8. 13 6月, 2016 1 次提交
    • J
      Merge tag 'l10n-2.9.0-rc0' of git://github.com/git-l10n/git-po · 25c7aeb1
      Junio C Hamano 提交于
      l10n-2.9.0-rc0
      
      * tag 'l10n-2.9.0-rc0' of git://github.com/git-l10n/git-po:
        l10n: ko.po: Update Korean translation
        l10n: ru.po: update Russian translation
        l10n: de.po: translate 104 new messages
        l10n: zh_CN: review for git v2.9.0 l10n round 1
        l10n: zh_CN: for git v2.9.0 l10n round 1
        l10n: pt_PT: update Portuguese translation
        l10n: pt_PT: update according to git-gui glossary
        l10n: pt_PT: merge git.pot file
        l10n: Updated Bulgarian translation of git (2597t,0f,0u)
        l10n: sv.po: Update Swedish translation (2597t0f0u)
        l10n: fr.po v2.9.0rnd1
        l10n: Updated Vietnamese translation (2597t)
        l10n: git.pot: v2.9.0 round 1 (104 new, 37 removed)
        l10n: fr.po Fixed grammar mistake
      25c7aeb1
  9. 12 6月, 2016 1 次提交
  10. 11 6月, 2016 8 次提交
  11. 10 6月, 2016 2 次提交
  12. 09 6月, 2016 5 次提交
  13. 08 6月, 2016 1 次提交
    • J
      tree-diff: avoid alloca for large allocations · b8ba412b
      Jeff King 提交于
      Commit 72441af7 (tree-diff: rework diff_tree() to generate
      diffs for multiparent cases as well, 2014-04-07) introduced
      the use of alloca so that the common cases of commits with 1
      or 2 parents would not be adversely affected by going
      through the multi-parent code.
      
      However, our xalloca is not ideal when the number of parents
      grows very large:
      
        1. If the requested size is too large for our stack,
           alloca() has no way to tell us, and we simply segfault
           while trying to access the memory.
      
        2. It does not use our usual memory_limit_check() logic.
      
      I measured, and alloca is indeed buying us a very small
      speedup over xmalloc()/free(). So we'd want to keep
      something like it.
      
      This patch simply puts a conditional in place at each
      callsite: we use alloca for common known-small numbers of
      parents, and otherwise use the heap. We are technically
      still vulnerable to (1), but no more so than if we simply
      put a few dozen bytes on the stack, which we must do all the
      time anyway. And likewise, we technically miss a memory
      limit check if it is tiny, but such a limit is pointless.
      
      An alternative to this would be implement something like:
      
        struct tree *tp, tp_fallback[2];
        if (nparent <= ARRAY_SIZE(tp_fallback))
                tp = tp_fallback;
        else
      	  ALLOC_ARRAY(tp, nparent);
        ...
        if (tp != tp_fallback)
      	  free(tp);
      
      That would let us drop our xalloca() portability code
      entirely. But in my measurements, this seemed to perform
      slightly worse than the xalloca solution.
      
      Note in the example above, and in the patch below, I've used
      ALLOC_ARRAY() to replace the manual xmalloc(nr * sizeof(*x)).
      Besides being shorter, this has the bonus that one cannot
      accidentally overflow a size_t during that computation.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b8ba412b