1. 06 3月, 2015 15 次提交
    • J
      Merge branch 'es/squelch-openssl-warnings-on-macosx' into maint · e591339c
      Junio C Hamano 提交于
      An earlier workaround to squelch unhelpful deprecation warnings
      from the complier on Mac OSX unnecessarily set minimum required
      version of the OS, which the user might want to raise (or lower)
      for other reasons.
      
      * es/squelch-openssl-warnings-on-macosx:
        git-compat-util: do not step on MAC_OS_X_VERSION_MIN_REQUIRED
      e591339c
    • J
      Merge branch 'jc/conf-var-doc' into maint · c11c154f
      Junio C Hamano 提交于
      Longstanding configuration variable naming rules has been added to
      the documentation.
      
      * jc/conf-var-doc:
        CodingGuidelines: describe naming rules for configuration variables
        config.txt: mark deprecated variables more prominently
        config.txt: clarify that add.ignore-errors is deprecated
      c11c154f
    • J
      Merge branch 'av/wincred-with-at-in-username-fix' into maint · 518d1c34
      Junio C Hamano 提交于
      The credential helper for Windows (in contrib/) used to mishandle
      a user name with an at-sign in it.
      
      * av/wincred-with-at-in-username-fix:
        wincred: fix get credential if username has "@"
      518d1c34
    • J
      Merge branch 'ch/new-gpg-drops-rfc-1991' into maint · ab09f58e
      Junio C Hamano 提交于
      Older GnuPG implementations may not correctly import the keyring
      material we prepare for the tests to use.
      
      * ch/new-gpg-drops-rfc-1991:
        t/lib-gpg: sanity-check that we can actually sign
        t/lib-gpg: include separate public keys in keyring.gpg
      ab09f58e
    • J
      Merge branch 'jc/remote-set-url-doc' into maint · 069dea89
      Junio C Hamano 提交于
      Clarify in the documentation that "remote.<nick>.pushURL" and
      "remote.<nick>.URL" are there to name the same repository accessed
      via different transports, not two separate repositories.
      
      * jc/remote-set-url-doc:
        Documentation/git-remote.txt: stress that set-url is not for triangular
      069dea89
    • J
      Merge branch 'jk/pack-bitmap' into maint · abfed73c
      Junio C Hamano 提交于
      The pack bitmap support did not build with older versions of GCC.
      
      * jk/pack-bitmap:
        ewah: fix building with gcc < 3.4.0
      abfed73c
    • J
      Merge branch 'jk/config-no-ungetc-eof' into maint · 2250406b
      Junio C Hamano 提交于
      Reading configuration from a blob object, when it ends with a lone
      CR, use to confuse the configuration parser.
      
      * jk/config-no-ungetc-eof:
        config_buf_ungetc: warn when pushing back a random character
        config: do not ungetc EOF
      2250406b
    • J
      Merge branch 'jk/decimal-width-for-uintmax' into maint · 3bef3c12
      Junio C Hamano 提交于
      We didn't format an integer that wouldn't fit in "int" but in
      "uintmax_t" correctly.
      
      * jk/decimal-width-for-uintmax:
        decimal_width: avoid integer overflow
      3bef3c12
    • J
      Merge branch 'jc/push-cert' into maint · b1cffbfc
      Junio C Hamano 提交于
      "git push --signed" gave an incorrectly worded error message when
      the other side did not support the capability.
      
      * jc/push-cert:
        transport-helper: fix typo in error message when --signed is not supported
      b1cffbfc
    • J
      Merge branch 'mh/deref-symref-over-helper-transport' into maint · 6db0497e
      Junio C Hamano 提交于
      "git fetch" over a remote-helper that cannot respond to "list"
      command could not fetch from a symbolic reference e.g. HEAD.
      
      * mh/deref-symref-over-helper-transport:
        transport-helper: do not request symbolic refs to remote helpers
      6db0497e
    • J
      Merge branch 'ks/rebase-i-abbrev' into maint · aaa90f5f
      Junio C Hamano 提交于
      The insn sheet "git rebase -i" creates did not fully honor
      core.abbrev settings.
      
      * ks/rebase-i-abbrev:
        rebase -i: use full object name internally throughout the script
      aaa90f5f
    • J
      Merge branch 'dp/remove-duplicated-header-inclusion' into maint · be2804c4
      Junio C Hamano 提交于
      Code clean-up.
      
      * dp/remove-duplicated-header-inclusion:
        do not include the same header twice
      be2804c4
    • J
      Merge branch 'sb/hex-object-name-is-at-most-41-bytes-long' into maint · 552f6994
      Junio C Hamano 提交于
      Code clean-up.
      
      * sb/hex-object-name-is-at-most-41-bytes-long:
        hex.c: reduce memory footprint of sha1_to_hex static buffers
      552f6994
    • J
      Merge branch 'ak/git-pm-typofix' into maint · a628d505
      Junio C Hamano 提交于
      Typofix in comments.
      
      * ak/git-pm-typofix:
        Git.pm: two minor typo fixes
      a628d505
    • J
      Merge branch 'jk/sanity' into maint · 8fd37b38
      Junio C Hamano 提交于
      The tests that wanted to see that file becomes unreadable after
      running "chmod a-r file", and the tests that wanted to make sure it
      is not run as root, we used "can we write into the / directory?" as
      a cheap substitute, but on some platforms that is not a good
      heuristics.  The tests and their prerequisites have been updated to
      check what they really require.
      
      * jk/sanity:
        test-lib.sh: set prerequisite SANITY by testing what we really need
        tests: correct misuses of POSIXPERM
        t/lib-httpd: switch SANITY check for NOT_ROOT
      8fd37b38
  2. 25 2月, 2015 14 次提交
  3. 19 2月, 2015 1 次提交
  4. 16 2月, 2015 1 次提交
  5. 14 2月, 2015 2 次提交
  6. 13 2月, 2015 1 次提交
  7. 10 2月, 2015 1 次提交
    • K
      git-compat-util: do not step on MAC_OS_X_VERSION_MIN_REQUIRED · 88c03eb5
      Kyle J. McKay 提交于
      MAC_OS_X_VERSION_MIN_REQUIRED may be defined by the builder to a
      specific version in order to produce compatible binaries for a
      particular system.  Blindly defining it to MAC_OS_X_VERSION_10_6
      is bad.
      
      Additionally MAC_OS_X_VERSION_10_6 will not be defined on older
      systems and should AvailabilityMacros.h be included on such as
      system an error will result.  However, using the explicit value
      of 1060 (which is what MAC_OS_X_VERSION_10_6 is defined to) does
      not solve the problem.
      
      The changes that introduced stepping on MAC_OS_X_VERSION_MIN were
      made in b195aa00 (git-compat-util: suppress unavoidable
      Apple-specific deprecation warnings) to avoid deprecation
      warnings.
      
      Instead of blindly setting MAC_OS_X_VERSION_MIN to 1060 change
      the definition of DEPRECATED_ATTRIBUTE to empty to avoid the
      warnings.  This preserves any MAC_OS_X_VERSION_MIN_REQUIRED
      setting while avoiding the warnings as intended by b195aa00.
      Signed-off-by: NKyle J. McKay <mackyle@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      88c03eb5
  8. 06 2月, 2015 4 次提交
    • J
      Git 2.3 · 9874fca7
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9874fca7
    • J
      config_buf_ungetc: warn when pushing back a random character · 1d0655c1
      Jeff King 提交于
      Our config code simulates a stdio stream around a buffer,
      but our fake ungetc() does not behave quite like the real
      one. In particular, we only rewind the position by one
      character, but do _not_ actually put the character from the
      caller into position.
      
      It turns out that this does not matter, because we only ever
      push back the character we just read. In other words, such
      an assignment would be a noop. But because the function is
      called ungetc, and because it takes a character parameter,
      it is a mistake waiting to happen.
      
      Actually assigning the character into the buffer would be
      ideal, but our pointer is actually a "const" copy of the
      buffer. We do not know who the real owner of the buffer is
      in this code, and would not want to munge their contents.
      
      Instead, we can simply add an assertion that matches what
      the current caller does, and will let us know if new callers
      are added that violate the contract.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1d0655c1
    • J
      decimal_width: avoid integer overflow · d306f3d3
      Jeff King 提交于
      The decimal_width function originally appeared in blame.c as
      "lineno_width", and was designed for calculating the
      print-width of small-ish integer values (line numbers in
      text files). In ec7ff5ba, it was made into a reusable
      function, and in dc801e71, we started using it to align
      diffstats.
      
      Binary files in a diffstat show byte counts rather than line
      numbers, meaning they can be quite large (e.g., consider
      adding or removing a 2GB file). decimal_width is not up to
      the challenge for two reasons:
      
        1. It takes the value as an "int", whereas large files may
           easily surpass this. The value may be truncated, in
           which case we will produce an incorrect value.
      
        2. It counts "up" by repeatedly multiplying another
           integer by 10 until it surpasses the value.  This can
           cause an infinite loop when the value is close to the
           largest representable integer.
      
           For example, consider using a 32-bit signed integer,
           and a value of 2,140,000,000 (just shy of 2^31-1).
           We will count up and eventually see that 1,000,000,000
           is smaller than our value. The next step would be to
           multiply by 10 and see that 10,000,000,000 is too
           large, ending the loop. But we can't represent that
           value, and we have signed overflow.
      
           This is technically undefined behavior, but a common
           behavior is to lose the high bits, in which case our
           iterator will certainly be less than the number. So
           we'll keep multiplying, overflow again, and so on.
      
      This patch changes the argument to a uintmax_t (the same
      type we use to store the diffstat information for binary
      filese), and counts "down" by repeatedly dividing our value
      by 10.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d306f3d3
    • J
      config: do not ungetc EOF · 5e0be134
      Jeff King 提交于
      When we are parsing a config value, if we see a carriage
      return, we fgetc the next character to see if it is a
      line feed (in which case we silently drop the CR). If it
      isn't, we then ungetc the character, and take the literal
      CR.
      
      But we never check whether we in fact got a character at
      all. If the config file ends in CR, we will get EOF here,
      and try to ungetc EOF. This works OK for a real stdio
      stream. The ungetc returns an error, and the next fgetc will
      then return EOF again.
      
      However, our custom buffer-based stream is not so fortunate.
      It happily rewinds the position of the stream by one
      character, ignoring the fact that we fed it EOF. The next
      fgetc call returns the final CR again, over and over, and we
      end up in an infinite loop.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5e0be134
  9. 05 2月, 2015 1 次提交