1. 14 10月, 2012 1 次提交
  2. 12 10月, 2012 1 次提交
  3. 11 10月, 2012 1 次提交
  4. 10 10月, 2012 1 次提交
  5. 09 10月, 2012 6 次提交
    • J
      Git 1.7.12.3 · 234cd456
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      234cd456
    • J
      Merge branch 'os/commit-submodule-ignore' into maint · ff5702c5
      Junio C Hamano 提交于
      "git status" honored the ignore=dirty settings in .gitmodules but
      "git commit" didn't.
      
      * os/commit-submodule-ignore:
        commit: pay attention to submodule.$name.ignore in .gitmodules
      ff5702c5
    • J
      Merge branch 'jk/receive-pack-unpack-error-to-pusher' into maint · 25c08907
      Junio C Hamano 提交于
      "git receive-pack" (the counterpart to "git push") did not give
      progress output while processing objects it received to the puser
      when run over the smart-http protocol.
      
      * jk/receive-pack-unpack-error-to-pusher:
        receive-pack: drop "n/a" on unpacker errors
        receive-pack: send pack-processing stderr over sideband
        receive-pack: redirect unpack-objects stdout to /dev/null
      25c08907
    • J
      Merge branch 'rt/maint-clone-single' into maint · 9b4030cd
      Junio C Hamano 提交于
      A repository created with "git clone --single" had its fetch
      refspecs set up just like a clone without "--single", leading the
      subsequent "git fetch" to slurp all the other branches, defeating
      the whole point of specifying "only this branch".
      
      * rt/maint-clone-single:
        clone --single: limit the fetch refspec to fetched branch
      9b4030cd
    • J
      Merge branch 'jc/blame-follows-renames' into maint · 63c0c2c8
      Junio C Hamano 提交于
      It was unclear in the documentation for "git blame" that it is
      unnecessary for users to use the "--follow" option.
      
      * jc/blame-follows-renames:
        git blame: document that it always follows origin across whole-file renames
      63c0c2c8
    • J
      Merge branch 'lt/mailinfo-handle-attachment-more-sanely' into maint · 6e203571
      Junio C Hamano 提交于
      A patch attached as application/octet-stream (e.g. not text/*) were
      mishandled, not correctly honoring Content-Transfer-Encoding
      (e.g. base64).
      
      * lt/mailinfo-handle-attachment-more-sanely:
        mailinfo: don't require "text" mime type for attachments
      6e203571
  6. 05 10月, 2012 1 次提交
  7. 03 10月, 2012 5 次提交
  8. 01 10月, 2012 1 次提交
    • L
      mailinfo: don't require "text" mime type for attachments · 9d55b2e1
      Linus Torvalds 提交于
      Currently "git am" does insane things if the mbox it is given contains
      attachments with a MIME type that aren't "text/*".
      
      In particular, it will still decode them, and pass them "one line at a
      time" to the mail body filter, but because it has determined that they
      aren't text (without actually looking at the contents, just at the mime
      type) the "line" will be the encoding line (eg 'base64') rather than a
      line of *content*.
      
      Which then will cause the text filtering to fail, because we won't
      correctly notice when the attachment text switches from the commit message
      to the actual patch. Resulting in a patch failure, even if patch may be a
      perfectly well-formed attachment, it's just that the message type may be
      (for example) "application/octet-stream" instead of "text/plain".
      
      Just remove all the bogus games with the message_type. The only difference
      that code creates is how the data is passed to the filter function
      (chunked per-pred-code line or per post-decode line), and that difference
      is *wrong*, since chunking things per pre-decode line can never be a
      sensible operation, and cannot possibly matter for binary data anyway.
      
      This code goes all the way back to March of 2007, in commit 87ab7992
      ("builtin-mailinfo.c infrastrcture changes"), and apparently Don used to
      pass random mbox contents to git. However, the pre-decode vs post-decode
      logic really shouldn't matter even for that case, and more importantly, "I
      fed git am crap" is not a valid reason to break *real* patch attachments.
      
      If somebody really cares, and determines that some attachment is binary
      data (by looking at the data, not the MIME-type), the whole attachment
      should be dismissed, rather than fed in random-sized chunks to
      "handle_filter()".
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Cc: Don Zickus <dzickus@redhat.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9d55b2e1
  9. 30 9月, 2012 4 次提交
  10. 28 9月, 2012 3 次提交
  11. 26 9月, 2012 2 次提交
    • R
      submodule: if $command was not matched, don't parse other args · af9c9f97
      Ramkumar Ramachandra 提交于
      "git submodule" command DWIMs the command line and assumes a
      unspecified action word for 'status' action.  This is a UI mistake
      that leads to a confusing behaviour.  A mistyped command name is
      instead treated as a request for 'status' of the submodule with that
      name, e.g.
      
          $ git submodule show
          error: pathspec 'show' did not match any file(s) known to git.
          Did you forget to 'git add'?
      
      Stop DWIMming an unknown or mistyped subcommand name as pathspec
      given to unspelled "status" subcommand.  "git submodule" without any
      argument is still interpreted as "git submodule status", but its
      value is questionable.
      
      Adjust t7400 to match, and stop advertising the default subcommand
      being 'status' which does not help much in practice, other than
      promoting laziness and confusion.
      Signed-off-by: NRamkumar Ramachandra <artagnon@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      af9c9f97
    • J
      Revert "completion: fix shell expansion of items" · 666ca59a
      Jeff King 提交于
      This reverts commit 25ae7cfd.
      
      That patch does fix expansion of weird variables in some
      simple tests, but it also seems to break other things, like
      expansion of refs by "git checkout".
      
      While we're sorting out the correct solution, we are much
      better with the original bug (people with metacharacters in
      their completions occasionally see an error message) than
      the current bug (ref completion does not work at all).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      666ca59a
  12. 25 9月, 2012 5 次提交
    • J
      Start preparation for 1.7.12.2 · 1a002c73
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1a002c73
    • J
      Merge branch 'jc/maint-blame-no-such-path' into maint · 140011d8
      Junio C Hamano 提交于
      Even during a conflicted merge, "git blame $path" always meant to
      blame uncommitted changes to the "working tree" version; make it
      more useful by showing cleanly merged parts as coming from the other
      branch that is being merged.
      
      This incidentally fixes an unrelated problem on a case insensitive
      filesystem, where "git blame MAKEFILE" run in a history that has
      "Makefile" but not "MAKEFILE" did not say "No such file MAKEFILE in
      HEAD" but pretended as if "MAKEFILE" was a newly added file.
      
      * jc/maint-blame-no-such-path:
        blame: allow "blame file" in the middle of a conflicted merge
        blame $path: avoid getting fooled by case insensitive filesystems
      140011d8
    • J
      Merge branch 'dj/fetch-all-tags' into maint · 8144049d
      Junio C Hamano 提交于
      "git fetch --all", when passed "--no-tags", did not honor the
      "--no-tags" option while fetching from individual remotes (the same
      issue existed with "--tags", but combination "--all --tags" makes
      much less sense than "--all --no-tags").
      
      * dj/fetch-all-tags:
        fetch --all: pass --tags/--no-tags through to each remote
        submodule: use argv_array instead of hand-building arrays
        fetch: use argv_array instead of hand-building arrays
        argv-array: fix bogus cast when freeing array
        argv-array: add pop function
      8144049d
    • J
      Improve the description of GIT_PS1_SHOWUPSTREAM · f9db1921
      Jonathan "Duke" Leto 提交于
      Describe what '=' means in the output of __git_ps1 when using
      GIT_PS1_SHOWUPSTREAM, which was not previously described.
      Signed-off-by: NJonathan "Duke" Leto <jonathan@leto.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f9db1921
    • O
      commit: pay attention to submodule.$name.ignore in .gitmodules · 8f6811ef
      Orgad Shaneh 提交于
      "git status" does not list a submodule with uncommitted working tree
      files as modified when "submodule.$name.ignore" is set to "dirty" in
      in-tree ".gitmodules" file.  Both status and commit honor the setting
      in $GIT_DIR/config, but "commit" does not pick it up from .gitmodules,
      which is inconsistent.
      
      Teach "git commit" to pay attention to the setting in .gitmodules as
      well.
      Signed-off-by: NOrgad Shaneh <orgads@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8f6811ef
  13. 22 9月, 2012 4 次提交
    • J
      git blame: document that it always follows origin across whole-file renames · e5dce96e
      Junio C Hamano 提交于
      Make it clear to people who (rightly or wrongly) think that the
      "--follow" option should follow origin across while-file renames
      that we already do so.  That would explain the output that they see
      when they do give the "--follow" option to the command.
      
      We may or may not want to do a "--no-follow" patch as a follow-up,
      but that is a separate topic.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e5dce96e
    • J
      receive-pack: drop "n/a" on unpacker errors · 74eb32d3
      Jeff King 提交于
      The output from git push currently looks like this:
      
        $ git push dest HEAD
        fatal: [some message from index-pack]
        error: unpack failed: index-pack abnormal exit
        To dest
         ! [remote rejected] HEAD -> master (n/a (unpacker error))
      
      That n/a is meant to be "the per-ref status is not
      available" but the nested parentheses just make it look
      ugly. Let's turn the final line into just:
      
         ! [remote rejected] HEAD -> master (unpacker error)
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      74eb32d3
    • J
      receive-pack: send pack-processing stderr over sideband · a22e6f85
      Jeff King 提交于
      Receive-pack invokes either unpack-objects or index-pack to
      handle the incoming pack. However, we do not redirect the
      stderr of the sub-processes at all, so it is never seen by
      the client. From the initial thread adding sideband support,
      which is here:
      
        http://thread.gmane.org/gmane.comp.version-control.git/139471
      
      it is clear that some messages are specifically kept off the
      sideband (with the assumption that they are of interest only
      to an administrator, not the client). The stderr of the
      subprocesses is mentioned in the thread, but it's unclear if
      they are included in that group, or were simply forgotten.
      
      However, there are a few good reasons to show them to the
      client:
      
        1. In many cases, they are directly about the incoming
           packfile (e.g., fsck warnings with --strict, corruption
           in the packfile, etc). Without these messages, the
           client just gets "unpacker error" with no extra useful
           diagnosis.
      
        2. No matter what the cause, we are probably better off
           showing the errors to the client. If the client and the
           server admin are not the same entity, it is probably
           much easier for the client to cut-and-paste the errors
           they see than for the admin to try to dig them out of a
           log and correlate them with a particular session.
      
        3. Users of the ssh transport typically already see these
           stderr messages, as the remote's stderr is copied
           literally by ssh. This brings other transports (http,
           and push-over-git if you are crazy enough to enable it)
           more in line with ssh. As a bonus for ssh users,
           because the messages are now fed through the sideband
           and printed by the local git, they will have "remote:"
           prepended and be properly interleaved with any local
           output to stderr.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a22e6f85
    • J
      receive-pack: redirect unpack-objects stdout to /dev/null · 59bfdfb8
      Jeff King 提交于
      The unpack-objects command should not generally produce any
      output on stdout. However, if it's given extra input after
      the packfile, it will spew the remainder to stdout. When
      called by receive-pack, this means we will break protocol,
      since our stdout is connected to the remote send-pack.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      59bfdfb8
  14. 21 9月, 2012 5 次提交