1. 15 9月, 2015 7 次提交
    • J
      Merge branch 'sg/help-group' · a9400b01
      Junio C Hamano 提交于
      * sg/help-group:
        Makefile: use SHELL_PATH when running generate-cmdlist.sh
      a9400b01
    • J
      Merge branch 'rt/help-strings-fix' · 153ec926
      Junio C Hamano 提交于
      * rt/help-strings-fix:
        tag, update-ref: improve description of option "create-reflog"
        pull: don't mark values for option "rebase" for translation
      153ec926
    • J
      Git 2.6-rc2 · 45733fa9
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      45733fa9
    • J
      Merge git://ozlabs.org/~paulus/gitk · 3f26fe76
      Junio C Hamano 提交于
      * git://ozlabs.org/~paulus/gitk:
        gitk: Accelerators for the main menu
        gitk: Adjust the menu line numbers to compensate for the new entry
        gitk: Add a "Copy commit summary" command
        gitk: Update Bulgarian translation (307t)
        gitk: Update .po files
        gitk: Update Bulgarian translation (304t)
        gitk: Use translated version of "Command line" in getcommitlines
        gitk: Make it easier to go quickly to a specific commit
        gitk: Show the current view's name in the window title
        gitk: Add mouse right-click options to copy path and branch name
        gitk: Remove mc parameter from proc show_error
        gitk: Fix error when changing colors after closing "List references" window
        gitk: Replace catch {unset foo} with unset -nocomplain foo
        gitk: Rearrange window title to be more conventional
        gitk: sv.po: Update Swedish translation (305t0f0u)
        gitk: Fix bad English grammar "Matches none Commit Info"
      3f26fe76
    • J
      Merge branch 'jk/pack-protocol-doc' · 4be6af64
      Junio C Hamano 提交于
      Streamline documentation of the pkt-line protocol.
      
      * jk/pack-protocol-doc:
        pack-protocol: clarify LF-handling in PKT-LINE()
      4be6af64
    • J
      Merge branch 'mp/t7060-diff-index-test' · 971f9ea5
      Junio C Hamano 提交于
      Fix an old test that was doing the same thing as another one.
      
      * mp/t7060-diff-index-test:
        t7060: actually test "git diff-index --cached -M"
      971f9ea5
    • J
      Merge branch 'gb/apply-comment-typofix' · e0eeba26
      Junio C Hamano 提交于
      * gb/apply-comment-typofix:
        apply: comment grammar fix
      e0eeba26
  2. 13 9月, 2015 2 次提交
  3. 12 9月, 2015 2 次提交
  4. 11 9月, 2015 3 次提交
  5. 10 9月, 2015 3 次提交
  6. 09 9月, 2015 2 次提交
  7. 07 9月, 2015 1 次提交
    • J
      am: match --signoff to the original scripted version · aab84542
      Junio C Hamano 提交于
      Linus noticed that the recently reimplemented "git am -s" defines
      the trailer block too rigidly, resulting in an unnecessary blank
      line between the existing sign-offs and his new sign-off.  An e-mail
      submission sent to Linus in real life ends with mixture of sign-offs
      and commentaries, e.g.
      
      	title here
      
      	message here
      Signed-off-by: NOriginal Author <original@auth.or>
      	[rv: tweaked frotz and nitfol]
      Signed-off-by: NRe Viewer <rv@ew.er>
      Signed-off-by: NOther Reviewer <other@rev.ewer>
      	---
      	patch here
      
      Because the reimplementation reused append_signoff() helper that is
      used by other codepaths, which is unaware that people intermix such
      comments with their sign-offs in the trailer block, such a message
      was judged to end with a non-trailer, resulting in an extra blank
      line before adding a new sign-off.
      
      The original scripted version of "git am" used a lot looser
      definition, i.e. "if and only if there is no line that begins with
      Signed-off-by:, add a blank line before adding a new sign-off".  For
      the upcoming release, stop using the append_signoff() in "git am"
      and reimplement the looser definition used by the scripted version
      to use only in "git am" to fix this regression in "am" while
      avoiding new regressions to other users of append_signoff().
      
      In the longer term, we should look into loosening append_signoff()
      so that other codepaths that add a new sign-off behave the same way
      as "git am -s", but that is a task for post-release.
      Reported-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      aab84542
  8. 05 9月, 2015 12 次提交
  9. 04 9月, 2015 8 次提交
    • J
      verify_absent: allow filenames longer than PATH_MAX · f514ef97
      Jeff King 提交于
      When unpack-trees wants to know whether a path will
      overwrite anything in the working tree, we use lstat() to
      see if there is anything there. But if we are going to write
      "foo/bar", we can't just lstat("foo/bar"); we need to look
      for leading prefixes (e.g., "foo"). So we use the lstat cache
      to find the length of the leading prefix, and copy the
      filename up to that length into a temporary buffer (since
      the original name is const, we cannot just stick a NUL in
      it).
      
      The copy we make goes into a PATH_MAX-sized buffer, which
      will overflow if the prefix is longer than PATH_MAX. How
      this happens is a little tricky, since in theory PATH_MAX is
      the biggest path we will have read from the filesystem. But
      this can happen if:
      
        - the compiled-in PATH_MAX does not accurately reflect
          what the filesystem is capable of
      
        - the leading prefix is not _quite_ what is on disk; it
          contains the next element from the name we are checking.
          So if we want to write "aaa/bbb/ccc/ddd" and "aaa/bbb"
          exists, the prefix of interest is "aaa/bbb/ccc". If
          "aaa/bbb" approaches PATH_MAX, then "ccc" can overflow
          it.
      
      So this can be triggered, but it's hard to do. In
      particular, you cannot just "git clone" a bogus repo. The
      verify_absent checks happen before unpack-trees writes
      anything to the filesystem, so there are never any leading
      prefixes during the initial checkout, and the bug doesn't
      trigger. And by definition, these files are larger than
      PATH_MAX, so writing them will fail, and clone will
      complain (though it may write a partial path, which will
      cause a subsequent "git checkout" to hit the bug).
      
      We can fix it by creating the temporary path on the heap.
      The extra malloc overhead is not important, as we are
      already making at least one stat() call (and probably more
      for the prefix discovery).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f514ef97
    • J
      Merge branch 'ee/clean-test-fixes' into maint · fb8880de
      Junio C Hamano 提交于
      * ee/clean-test-fixes:
        t7300: fix broken && chains
      fb8880de
    • J
      Merge branch 'jk/log-missing-default-HEAD' into maint · 5af77d13
      Junio C Hamano 提交于
      "git init empty && git -C empty log" said "bad default revision 'HEAD'",
      which was found to be a bit confusing to new users.
      
      * jk/log-missing-default-HEAD:
        log: diagnose empty HEAD more clearly
      5af77d13
    • J
      Merge branch 'cc/trailers-corner-case-fix' into maint · 9d939886
      Junio C Hamano 提交于
      The "interpret-trailers" helper mistook a multi-paragraph title of
      a commit log message with a colon in it as the end of the trailer
      block.
      
      * cc/trailers-corner-case-fix:
        trailer: support multiline title
        trailer: retitle a test and correct an in-comment message
        trailer: ignore first line of message
      9d939886
    • J
      Merge branch 'dt/commit-preserve-base-index-upon-opportunistic-cache-tree-update' into maint · 311e5ce2
      Junio C Hamano 提交于
      When re-priming the cache-tree opportunistically while committing
      the in-core index as-is, we mistakenly invalidated the in-core
      index too aggressively, causing the experimental split-index code
      to unnecessarily rewrite the on-disk index file(s).
      
      * dt/commit-preserve-base-index-upon-opportunistic-cache-tree-update:
        commit: don't rewrite shared index unnecessarily
      311e5ce2
    • J
      Merge branch 'rs/archive-zip-many' into maint · 1c820392
      Junio C Hamano 提交于
      "git archive" did not use zip64 extension when creating an archive
      with more than 64k entries, which nobody should need, right ;-)?
      
      * rs/archive-zip-many:
        archive-zip: support more than 65535 entries
        archive-zip: use a local variable to store the creator version
        t5004: test ZIP archives with many entries
      1c820392
    • J
      Merge branch 'jc/calloc-pathspec' into maint · ae6ac848
      Junio C Hamano 提交于
      Minor code cleanup.
      
      * jc/calloc-pathspec:
        ps_matched: xcalloc() takes nmemb and then element size
      ae6ac848
    • J
      Merge branch 'ss/fix-config-fd-leak' into maint · 8136099a
      Junio C Hamano 提交于
      * ss/fix-config-fd-leak:
        config: close config file handle in case of error
      8136099a