1. 30 12月, 2015 1 次提交
  2. 16 12月, 2015 11 次提交
  3. 15 12月, 2015 2 次提交
    • S
      completion: fix completing unstuck email alias arguments · ccab28a9
      SZEDER Gábor 提交于
      Completing unstuck form of email aliases doesn't quite work:
      
        $ git send-email --to <TAB>
        alice   bob     cecil
        $ git send-email --to a<TAB>
        alice   bob     cecil
      
      While listing email aliases works as expected, the second case should
      just complete to 'alice', but it keeps offering all email aliases
      instead.
      
      The cause for this behavior is that in this case we mistakenly tell
      __gitcomp() explicitly that the current word to be completed is empty,
      while in reality it is not.  As a result __gitcomp() doesn't filter
      out non-matching aliases, so all aliases end up being offered over and
      over again.
      
      Fix this by not passing the current word to be completed to
      __gitcomp() and letting it go the default route and grab it from the
      '$cur' variable.  Don't pass empty prefix either, because it's assumed
      to be empty when unspecified, so it's not necessary.
      Signed-off-by: NSZEDER Gábor <szeder@ira.uka.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ccab28a9
    • J
      ident: fix undefined variable when NO_IPV6 is set · 58d29ece
      Jeff King 提交于
      Commit 00bce77f (ident.c: add support for IPv6, 2015-11-27)
      moved the "gethostbyname" call out of "add_domainname" and
      into the helper function "canonical_name". But when moving
      the code, it forgot that the "buf" variable is passed as
      "host" in the helper.
      Reported-by: Njohan defries <johandefries@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      58d29ece
  4. 12 12月, 2015 16 次提交
  5. 11 12月, 2015 9 次提交
  6. 09 12月, 2015 1 次提交
    • J
      Merge branch 'ep/ident-with-getaddrinfo' · 545299f8
      Junio C Hamano 提交于
      A build without NO_IPv6 used to use gethostbyname() when guessing
      user's hostname, instead of getaddrinfo() that is used in other
      codepaths in such a build.
      
      * ep/ident-with-getaddrinfo:
        ident.c: add support for IPv6
      545299f8