1. 06 3月, 2015 5 次提交
  2. 25 2月, 2015 14 次提交
  3. 19 2月, 2015 1 次提交
  4. 16 2月, 2015 1 次提交
  5. 14 2月, 2015 2 次提交
  6. 06 2月, 2015 1 次提交
  7. 03 2月, 2015 1 次提交
  8. 31 1月, 2015 1 次提交
  9. 29 1月, 2015 4 次提交
    • J
      diff-format doc: a score can follow M for rewrite · ac1c2d9a
      Junio C Hamano 提交于
      b6d8f309 (diff-raw format update take #2., 2005-05-23) started
      documenting the diff format, and it said
      
       ...
       (8) sha1 for "dst"; 0{40} if creation, unmerged or "look at work tree".
       (9) status, followed by similarlity index number only for C and R.
       (10) a tab or a NUL when '-z' option is used.
       ...
      
      because C and R _were_ the only ones that came with a number back
      then.  This was corrected by ddafa7e9 (diff-helper: Fix R/C score
      parsing under -z flag., 2005-05-29) and we started saying "score"
      instead of "similarlity index" (because we can have other kind of
      score there), and stopped saying "only for C and R" (because Git is
      an ever evolving system).  Later f345b0a0 (Add -B flag to diff-*
      brothers., 2005-05-30) introduced a new concept, "dissimilarity"
      score; it did not have to fix any documentation.
      
      The current text that says only C and R can have scores came
      independently from a5a323f3 (Add reference for status letters in
      documentation., 2008-11-02) and it was wrong from the day one.
      
      Noticed-by: Mike Hommey
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ac1c2d9a
    • M
      git-push.txt: document the behavior of --repo · 57b92a77
      Michael J Gruber 提交于
      As per the code, the --repo <repo> option is equivalent to the
      <repo> argument to 'git push', but somehow it was documented as
      something that is more than that.  [It exists for historical
      reasons, back from the time when options had to come before
      arguments.]
      
      Say so. [But not that.]
      Signed-off-by: NMichael J Gruber <git@drmicha.warpmail.net>
      Helped-by: NEric Sunshine <sunshine@sunshineco.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      57b92a77
    • J
      do not check truth value of flex arrays · 94ee8e2c
      Jeff King 提交于
      There is no point in checking "!ref->name" when ref is a
      "struct ref". The name field is a flex-array, and there
      always has a non-zero address. This is almost certainly not
      hurting anything, but it does cause clang-3.6 to complain.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      94ee8e2c
    • J
      read_and_strip_branch: fix typo'd address-of operator · 66ec904b
      Jeff King 提交于
      When we are chomping newlines from the end of a strbuf, we
      must check "sb.len != 0" before accessing "sb.buf[sb.len - 1]".
      However, this code mistakenly checks "&sb.len", which is
      always true (it is a part of an auto struct, so the address
      is always non-zero). This could lead to us accessing memory
      outside the strbuf when we read an empty file.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      66ec904b
  10. 28 1月, 2015 3 次提交
    • J
      Git 2.3.0-rc2 · 15598cf4
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      15598cf4
    • J
      dumb-http: do not pass NULL path to parse_pack_index · 8b9c2dd4
      Jeff King 提交于
      Once upon a time, dumb http always fetched .idx files
      directly into their final location, and then checked their
      validity with parse_pack_index. This was refactored in
      commit 750ef425 (http-fetch: Use temporary files for
      pack-*.idx until verified, 2010-04-19), which uses the
      following logic:
      
        1. If we have the idx already in place, see if it's
           valid (using parse_pack_index). If so, use it.
      
        2. Otherwise, fetch the .idx to a tempfile, check
           that, and if so move it into place.
      
        3. Either way, fetch the pack itself if necessary.
      
      However, it got step 1 wrong. We pass a NULL path parameter
      to parse_pack_index, so an existing .idx file always looks
      broken. Worse, we do not treat this broken .idx as an
      opportunity to re-fetch, but instead return an error,
      ignoring the pack entirely. This can lead to a dumb-http
      fetch failing to retrieve the necessary objects.
      
      This doesn't come up much in practice, because it must be a
      packfile that we found out about (and whose .idx we stored)
      during an earlier dumb-http fetch, but whose packfile we
      _didn't_ fetch. I.e., we did a partial clone of a
      repository, didn't need some packfiles, and now a followup
      fetch needs them.
      
      Discovery and tests by Charles Bailey <charles@hashpling.org>.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8b9c2dd4
    • J
      Merge git://github.com/git-l10n/git-po · ff76d36b
      Junio C Hamano 提交于
      * git://github.com/git-l10n/git-po:
        l10n: de.po: correct singular form
        l10n: de.po: translate "leave behind" correctly
        l10n: de.po: fix typo
        l10n: ca.po: update translation
      ff76d36b
  11. 27 1月, 2015 6 次提交
  12. 24 1月, 2015 1 次提交
    • J
      Documentation: what does "git log --indexed-objects" even mean? · 3cab02de
      Junio C Hamano 提交于
      4fe10219 (rev-list: add --indexed-objects option, 2014-10-16) adds
      "--indexed-objects" option to "rev-list", and it is only useful in
      the context of "git rev-list" and not "git log".  There are other
      object traversal options that do not make sense for "git log" that
      are shown in the manual page.
      
      Move the description of "--indexed-objects" to the object traversal
      section so that it sits together with its friends "--objects",
      "--objects-edge", etc. and then show them only in "git rev-list"
      documentation.
      Acked-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3cab02de