1. 17 8月, 2016 1 次提交
    • L
      gpg-interface: prefer "long" key format output when verifying pgp signatures · b624a3e6
      Linus Torvalds 提交于
      Yes, gpg2 already uses the long format by default, but most
      distributions seem to still have "gpg" be the older 1.x version due to
      compatibility reasons.  And older versions of gpg only show the 32-bit
      short ID, which is quite insecure.
      
      This doesn't actually matter for the _verification_ itself: if the
      verification passes, the pgp signature is good.  But if you don't
      actually have the key yet, and want to fetch it, or you want to check
      exactly which key was used for verification and want to check it, we
      should specify the key with more precision.
      
      In fact, we should preferentially specify the whole key fingerprint, but
      gpg doesn't actually support that.  Which is really quite sad.
      
      Showing the "long" format improves things to at least show 64 bits of
      the fingerprint.  That's a lot better, even if it's not perfect.
      
      This change the log format for "git log --show-signature" from
      
          commit 2376d317
          merged tag 'v2.9.3'
          gpg: Signature made Fri 12 Aug 2016 09:17:59 AM PDT using RSA key ID 96AFE6CB
          gpg: Good signature from "Junio C Hamano <gitster@pobox.com>"
          gpg:                 aka "Junio C Hamano <jch@google.com>"
          gpg:                 aka "Junio C Hamano <junio@pobox.com>"
          Merge: 2807cd7b e0c1ceaf
          Author: Junio C Hamano <gitster@pobox.com>
          Date:   Fri Aug 12 10:02:18 2016 -0700
      
      to
      
          commit 2376d317
          merged tag 'v2.9.3'
          gpg: Signature made Fri 12 Aug 2016 09:17:59 AM PDT
          gpg:                using RSA key B0B5E88696AFE6CB
          gpg: Good signature from "Junio C Hamano <gitster@pobox.com>"
          gpg:                 aka "Junio C Hamano <jch@google.com>"
          gpg:                 aka "Junio C Hamano <junio@pobox.com>"
          Merge: 2807cd7b e0c1ceaf
          Author: Junio C Hamano <gitster@pobox.com>
          Date:   Fri Aug 12 10:02:18 2016 -0700
      
      (note the longer key ID, but also the reflowing of the text) and also
      changes the format in the merge messages when merging a signed
      tag.
      
      If you already use gpg2 (either because it's installed by default, or
      because you have set your gpg_program configuration to point to gpg2),
      that already used the long format, you'll also see a change: it will now
      have the same formatting as gpg 1.x, and the verification string looks
      something like
      
          gpg: Signature made Sun 24 Jul 2016 12:24:02 PM PDT
          gpg:                using RSA key 79BE3E4300411886
          gpg: Good signature from "Linus Torvalds <torvalds@linux-foundation.org>" [ultimate]
      
      where it used to be on one line:
      
          gpg: Signature made Sun 24 Jul 2016 12:24:02 PM PDT using RSA key ID 79BE3E4300411886
          gpg: Good signature from "Linus Torvalds <torvalds@linux-foundation.org>" [ultimate]
      
      so there is certainly a chance this could break some automated scripting.
      But the 32-bit key ID's really are broken. Also note that because of the
      differences between gpg-1.x and gpg-2.x, hopefully any scripted key ID
      parsing code (if such code exists) is already flexible enough to not care.
      
      This was triggered by the fact that the "evil32" project keys ended up
      leaking to the public key servers, so now there are 32-bit aliases for
      just about every open source developer that you can easily get by
      mistake if you use the 32-bit short ID format.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b624a3e6
  2. 07 6月, 2016 5 次提交
    • J
      Git 2.8.4 · 0b65a8db
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0b65a8db
    • J
      Merge branch 'kb/msys2-tty' into maint · 1676827c
      Junio C Hamano 提交于
      The "are we talking with TTY, doing an interactive session?"
      detection has been updated to work better for "Git for Windows".
      
      * kb/msys2-tty:
        mingw: make isatty() recognize MSYS2's pseudo terminals (/dev/pty*)
      1676827c
    • J
      Merge branch 'da/difftool' into maint · 389c3289
      Junio C Hamano 提交于
      "git difftool" learned to handle unmerged paths correctly in
      dir-diff mode.
      
      * da/difftool:
        difftool: handle unmerged files in dir-diff mode
        difftool: initialize variables for readability
      389c3289
    • J
      Merge branch 'tb/core-eol-fix' into maint · 7dcbf891
      Junio C Hamano 提交于
      A couple of bugs around core.autocrlf have been fixed.
      
      * tb/core-eol-fix:
        convert.c: ident + core.autocrlf didn't work
        t0027: test cases for combined attributes
        convert: allow core.autocrlf=input and core.eol=crlf
        t0027: make commit_chk_wrnNNO() reliable
      7dcbf891
    • J
      Merge branch 'ar/diff-args-osx-precompose' into maint · 05781d37
      Junio C Hamano 提交于
      Many commands normalize command line arguments from NFD to NFC
      variant of UTF-8 on OSX, but commands in the "diff" family did
      not, causing "git diff $path" to complain that no such path is
      known to Git.  They have been taught to do the normalization.
      
      * ar/diff-args-osx-precompose:
        diff: run arguments through precompose_argv
      05781d37
  3. 01 6月, 2016 5 次提交
    • J
      More topics for 2.8.4 · 4b0891ff
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4b0891ff
    • J
      Merge branch 'sb/submodule-deinit-all' into maint · 3296e1a9
      Junio C Hamano 提交于
      Correct faulty recommendation to use "git submodule deinit ." when
      de-initialising all submodules, which would result in a strange
      error message in a pathological corner case.
      
      * sb/submodule-deinit-all:
        submodule deinit: require '--all' instead of '.' for all submodules
      3296e1a9
    • J
      Merge branch 'bn/http-cookiefile-config' into maint · e646a82c
      Junio C Hamano 提交于
      "http.cookieFile" configuration variable clearly wants a pathname,
      but we forgot to treat it as such by e.g. applying tilde expansion.
      
      * bn/http-cookiefile-config:
        http: expand http.cookieFile as a path
        Documentation: config: improve word ordering for http.cookieFile
      e646a82c
    • J
      Merge branch 'jk/test-send-sh-x-trace-elsewhere' into maint · 68a6e976
      Junio C Hamano 提交于
      Running tests with '-x' option to trace the individual command
      executions is a useful way to debug test scripts, but some tests
      that capture the standard error stream and check what the command
      said can be broken with the trace output mixed in.  When running
      our tests under "bash", however, we can redirect the trace output
      to another file descriptor to keep the standard error of programs
      being tested intact.
      
      * jk/test-send-sh-x-trace-elsewhere:
        test-lib: set BASH_XTRACEFD automatically
      68a6e976
    • J
      Merge branch 'js/name-rev-use-oldest-ref' into maint · 9ee8f940
      Junio C Hamano 提交于
      "git describe --contains" often made a hard-to-justify choice of
      tag to give name to a given commit, because it tried to come up
      with a name with smallest number of hops from a tag, causing an old
      commit whose close descendant that is recently tagged were not
      described with respect to an old tag but with a newer tag.  It did
      not help that its computation of "hop" count was further tweaked to
      penalize being on a side branch of a merge.  The logic has been
      updated to favor using the tag with the oldest tagger date, which
      is a lot easier to explain to the end users: "We describe a commit
      in terms of the (chronologically) oldest tag that contains the
      commit."
      
      * js/name-rev-use-oldest-ref:
        name-rev: include taggerdate in considering the best name
      9ee8f940
  4. 27 5月, 2016 21 次提交
  5. 19 5月, 2016 8 次提交