1. 22 6月, 2013 2 次提交
    • J
      Sync with maint · 3e7a5b48
      Junio C Hamano 提交于
      * maint:
        completion: complete diff --word-diff
      3e7a5b48
    • J
      transport-helper: be quiet on read errors from helpers · 266f1fdf
      Jeff King 提交于
      Prior to commit 81d340d4, we did not print any error message
      if a remote transport helper died unexpectedly. If a helper
      did not print any error message (e.g., because it crashed),
      the user could be left confused. That commit tried to
      rectify the situation by printing a note that the helper
      exited unexpectedly.
      
      However, this makes a much more common case worse: when a
      helper does die with a useful message, we print the extra
      "Reading from 'git-remote-foo failed" message. This can also
      end up confusing users, as they may not even know what
      remote helpers are (e.g., the fact that http support comes
      through git-remote-https is purely an implementation detail
      that most users do not know or care about).
      
      Since we do not have a good way of knowing whether the
      helper printed a useful error, and since the common failure
      mode is for it to do so, let's default to remaining quiet.
      Debuggers can dig further by setting GIT_TRANSPORT_HELPER_DEBUG.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      266f1fdf
  2. 21 6月, 2013 12 次提交
  3. 17 6月, 2013 1 次提交
    • J
      Merge tag 'gitgui-0.18.0' of git://repo.or.cz/git-gui · fb7dfaa7
      Junio C Hamano 提交于
      git-gui 0.18.0
      
      * tag 'gitgui-0.18.0' of git://repo.or.cz/git-gui:
        git-gui 0.18
        git-gui: avoid an error message when removing the last remote
        git-gui: fix file name handling with non-empty prefix
        git-gui: bring wish process to front on Mac
        git-gui: change dialog button positions for Windows to suit platform.
        git-gui: allow "\ No newline at end of file" for linewise staging
        git-gui: fix the mergetool launcher for the Beyond Compare tool.
        Makefile: replace "echo 1>..." with "echo >..."
        French translation: copy -> copie.
        git-gui: Fix parsing of <rev> <path-which-not-present-in-worktree>
      fb7dfaa7
  4. 16 6月, 2013 3 次提交
  5. 14 6月, 2013 8 次提交
    • J
      Merge branch 'rr/complete-difftool-fixup' · bdff0e3a
      Junio C Hamano 提交于
      "git difftool" can take both revs to be compared and pathspecs.
      "git show" takes revs, revs:path and pathspecs.
      
      * rr/complete-difftool-fixup:
        completion: show can take both revlist and paths
        completion: difftool takes both revs and files
      bdff0e3a
    • J
      Merge branch 'mt/send-email-cc-match-fix' · 908b3601
      Junio C Hamano 提交于
      Logic git-send-email used to suppress cc mishandled names like "A
      U. Thor" <author@example.xz>, where the human readable part needs
      to be quoted (the user input may not have the double quotes around
      the name, and comparison was done between quoted and unquoted
      strings).
      
      * mt/send-email-cc-match-fix:
        test-send-email: test for pre-sanitized self name
        t/send-email: test suppress-cc=self with non-ascii
        t/send-email: add test with quoted sender
        send-email: make --suppress-cc=self sanitize input
        t/send-email: test suppress-cc=self on cccmd
        send-email: fix suppress-cc=self on cccmd
        t/send-email.sh: add test for suppress-cc=self
      908b3601
    • J
      Merge branch 'bp/mediawiki-credential' · 7a9cc7b0
      Junio C Hamano 提交于
      The bridge to MediaWiki has been updated to use the credential
      helper interface in Git.pm, losing its own and the original
      implementation the former was based on.
      
      * bp/mediawiki-credential:
        git-remote-mediawiki: use Git.pm functions for credentials
      7a9cc7b0
    • J
      Merge branch 'mh/reflife' · ede63a19
      Junio C Hamano 提交于
      Define memory ownership and lifetime rules for what for-each-ref
      feeds to its callbacks (in short, "you do not own it, so make a
      copy if you want to keep it").
      
      * mh/reflife: (25 commits)
        refs: document the lifetime of the args passed to each_ref_fn
        register_ref(): make a copy of the bad reference SHA-1
        exclude_existing(): set existing_refs.strdup_strings
        string_list_add_refs_by_glob(): add a comment about memory management
        string_list_add_one_ref(): rename first parameter to "refname"
        show_head_ref(): rename first parameter to "refname"
        show_head_ref(): do not shadow name of argument
        add_existing(): do not retain a reference to sha1
        do_fetch(): clean up existing_refs before exiting
        do_fetch(): reduce scope of peer_item
        object_array_entry: fix memory handling of the name field
        find_first_merges(): remove unnecessary code
        find_first_merges(): initialize merges variable using initializer
        fsck: don't put a void*-shaped peg in a char*-shaped hole
        object_array_remove_duplicates(): rewrite to reduce copying
        revision: use object_array_filter() in implementation of gc_boundary()
        object_array: add function object_array_filter()
        revision: split some overly-long lines
        cmd_diff(): make it obvious which cases are exclusive of each other
        cmd_diff(): rename local variable "list" -> "entry"
        ...
      ede63a19
    • J
      Merge branch 'kb/full-history-compute-treesame-carefully-2' · b27a79d1
      Junio C Hamano 提交于
      Major update to the revision traversal logic to improve culling of
      irrelevant parents while traversing a mergy history.
      
      * kb/full-history-compute-treesame-carefully-2:
        revision.c: make default history consider bottom commits
        revision.c: don't show all merges for --parents
        revision.c: discount side branches when computing TREESAME
        revision.c: add BOTTOM flag for commits
        simplify-merges: drop merge from irrelevant side branch
        simplify-merges: never remove all TREESAME parents
        t6012: update test for tweaked full-history traversal
        revision.c: Make --full-history consider more merges
        Documentation: avoid "uninteresting"
        rev-list-options.txt: correct TREESAME for P
        t6111: add parents to tests
        t6111: allow checking the parents as well
        t6111: new TREESAME test set
        t6019: test file dropped in -s ours merge
        decorate.c: compact table when growing
      b27a79d1
    • J
      Merge branch 'rr/remove-contrib-some' · 91d34bc4
      Junio C Hamano 提交于
      Remove stale contrib/ material.
      
      * rr/remove-contrib-some:
        contrib: drop blameview/ directory
        contrib: remove continuous/ and patches/
      91d34bc4
    • R
      use logical OR (||) instead of binary OR (|) in logical context · 0b437a18
      René Scharfe 提交于
      The compiler can short-circuit the evaluation of conditions strung
      together with logical OR operators instead of computing the resulting
      bitmask with binary ORs.  More importantly, this patch makes the
      intent of the changed code clearer, because the logical context (as
      opposed to binary context) becomes immediately obvious.
      
      While we're at it, simplify the check for patch->is_rename in
      builtin/apply.c a bit; it can only be 0 or 1, so we don't need a
      comparison operator.
      Signed-off-by: NRené Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0b437a18
    • R
      match-trees: factor out fill_tree_desc_strict · 10a3fb00
      René Scharfe 提交于
      Deduplicate code by moving tree_desc initialization into a helper
      function, fill_tree_desc_strict.  It is like fill_tree_descriptor,
      except that it only accepts tree hashes and no tree references (tags,
      commits).  No functional change.
      Signed-off-by: NRené Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      10a3fb00
  6. 13 6月, 2013 2 次提交
    • S
      Fix `git svn` `rebase` & `dcommit` if top-level HEAD directory exist · 9926f66f
      Slava Kardakov 提交于
      When a file (or a directory) called HEAD exists in the working tree,
      internal calls git svn makes trigger "did you mean a revision or a
      path?" ambiguity check.
      
          $ git svn rebase
          fatal: ambiguous argument 'HEAD': both revision and filename
          Use '--' to separate paths from revisions, like this:
          'git <command> [<revision>...] -- [<file>...]'
          rev-list --first-parent --pretty=medium HEAD: command returned error: 128
      
      Explicitly disambiguate by adding "--" after the revision.
      Signed-off-by: NSlava Kardakov <ojab@ojab.ru>
      Reviewed-by: NJeff King <peff@peff.net>
      Acked-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9926f66f
    • J
      contrib: drop blameview/ directory · 1af6a877
      Jeff King 提交于
      Blameview was a quick-and-dirty demonstration of how blame's
      incremental output could be used in an interface. These days
      one can find much better (and less ugly!) demonstrations in
      "git gui blame" and "tig blame".
      
      The only advantage blameview has is that its code is perhaps
      simpler to read. However, that is balanced by the fact that
      it probably has bugs, as nobody uses it nor has touched the
      code in 6 years. An implementor is probably better off just
      reading the "incremental output" section of "man git-blame".
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1af6a877
  7. 12 6月, 2013 12 次提交