1. 21 6月, 2013 9 次提交
  2. 14 6月, 2013 3 次提交
    • 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
  3. 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
  4. 12 6月, 2013 26 次提交
    • J
      Merge branch 'maint' · 4d1c565e
      Junio C Hamano 提交于
      * maint:
        t0070 "mktemp to unwritable directory" needs SANITY
        pre-push.sample: Make the script executable
      4d1c565e
    • J
      Merge branch 'maint-1.8.2' into maint · f2b4626d
      Junio C Hamano 提交于
      * maint-1.8.2:
        t0070 "mktemp to unwritable directory" needs SANITY
        pre-push.sample: Make the script executable
      f2b4626d
    • T
      t0070 "mktemp to unwritable directory" needs SANITY · b3b8ceb4
      Torsten Bögershausen 提交于
      Use the SANITY prerequisite when testing if a temp file can
      be created in a read only directory.
      Skip the test under CYGWIN, or skip it under Unix/Linux when
      it is run as root.
      Signed-off-by: NTorsten Bögershausen <tboegi@web.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b3b8ceb4
    • J
      Update draft release notes · 879070e6
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      879070e6
    • J
      Merge branch 'cm/gitweb-project-list-persistent-cgi-fix' · a8624d39
      Junio C Hamano 提交于
      "gitweb" forgot to clear a global variable $search_regexp upon each
      request, mistakenly carrying over the previous search to a new one
      when used as a persistent CGI.
      
      * cm/gitweb-project-list-persistent-cgi-fix:
        gitweb: fix problem causing erroneous project list
      a8624d39
    • J
      Merge branch 'rr/maint-fetch-tag-doc-asterisks' · 0f93608b
      Junio C Hamano 提交于
      * rr/maint-fetch-tag-doc-asterisks:
        fetch-options.txt: prevent a wildcard refspec from getting misformatted
      0f93608b
    • J
      Merge branch 'rr/rebase-autostash' · 45acb759
      Junio C Hamano 提交于
      * rr/rebase-autostash:
        rebase: implement --[no-]autostash and rebase.autostash
        rebase --merge: return control to caller, for housekeeping
        rebase -i: return control to caller, for housekeeping
        am: return control to caller, for housekeeping
        rebase: prepare to do generic housekeeping
        rebase -i: don't error out if $state_dir already exists
        am: tighten a conditional that checks for $dotest
      45acb759
    • J
      Merge branch 'jk/test-exit-code-by-signal' · 52faa0e8
      Junio C Hamano 提交于
      * jk/test-exit-code-by-signal:
        t0005: skip signal death exit code test on Windows
        t0005: test git exit code from signal death
      52faa0e8
    • J
      Merge branch 'fc/at-head' · bb1c8fbc
      Junio C Hamano 提交于
      Instead of typing four capital letters "HEAD", you can say "@"
      instead.
      
      * fc/at-head:
        sha1_name: compare variable with constant, not constant with variable
        Add new @ shortcut for HEAD
        sha1_name: refactor reinterpret()
        sha1_name: check @{-N} errors sooner
        sha1_name: reorganize get_sha1_basic()
        sha1_name: don't waste cycles in the @-parsing loop
        sha1_name: remove unnecessary braces
        sha1_name: remove no-op
        tests: at-combinations: @{N} versus HEAD@{N}
        tests: at-combinations: increase coverage
        tests: at-combinations: improve nonsense()
        tests: at-combinations: check ref names directly
        tests: at-combinations: simplify setup
      bb1c8fbc
    • J
      Merge branch 'ar/wildmatch-foldcase' · 96d339f1
      Junio C Hamano 提交于
      The wildmatch engine did not honor WM_CASEFOLD option correctly.
      
      * ar/wildmatch-foldcase:
        wildmatch: properly fold case everywhere
      96d339f1
    • J
      Merge branch 'tr/sha1-file-silence-loose-object-info-under-prune-race' · cf6de296
      Junio C Hamano 提交于
      * tr/sha1-file-silence-loose-object-info-under-prune-race:
        sha1_file: silence sha1_loose_object_info
      cf6de296
    • J
      Merge branch 'nd/warn-ambiguous-object-name' · f4c52a05
      Junio C Hamano 提交于
      "git cmd <name>", when <name> happens to be a 40-hex string,
      directly uses the 40-hex string as an object name, even if a ref
      "refs/<some hierarchy>/<name>" exists.  This disambiguation order
      is unlikely to change, but we should warn about the ambiguity just
      like we warn when more than one refs/ hierachies share the same
      name.
      
      * nd/warn-ambiguous-object-name:
        get_sha1: warn about full or short object names that look like refs
      f4c52a05
    • J
      Merge branch 'rr/diffcore-pickaxe-doc' · 71e12020
      Junio C Hamano 提交于
      Update the low-level diffcore documentation on -S/-G and --pickaxe-all.
      
      * rr/diffcore-pickaxe-doc:
        diffcore-pickaxe doc: document -S and -G properly
        diffcore-pickaxe: make error messages more consistent
      71e12020
    • J
      Merge branch 'cr/git-work-tree-sans-git-dir' · b1bd9296
      Junio C Hamano 提交于
      These days, "git --work-tree=there cmd" without specifying an
      explicit --git-dir=here will do the usual discovery, but we had a
      description of older behaviour in the documentation.
      
      * cr/git-work-tree-sans-git-dir:
        git.txt: remove stale comment regarding GIT_WORK_TREE
      b1bd9296
    • J
      Merge branch 'mm/mediawiki-https-fail-message' · f1e74148
      Junio C Hamano 提交于
      Hint users when https:// connection failed to check the certificate.
      
      * mm/mediawiki-https-fail-message:
        git-remote-mediawiki: better error message when HTTP(S) access fails
      f1e74148
    • J
      Merge branch 'cb/log-follow-with-combined' · a1ddd114
      Junio C Hamano 提交于
      * cb/log-follow-with-combined:
        fix segfault with git log -c --follow
      a1ddd114
    • J
      Merge branch 'xq/credential-osxkeychain' · cb4d6c2b
      Junio C Hamano 提交于
      * xq/credential-osxkeychain:
        credential-osxkeychain: support more protocols
      cb4d6c2b
    • J
      Merge branch 'fc/do-not-use-the-index-in-add-to-index' · 6bf2227b
      Junio C Hamano 提交于
      * fc/do-not-use-the-index-in-add-to-index:
        read-cache: trivial style cleanups
        read-cache: fix wrong 'the_index' usage
      6bf2227b
    • J
      Merge branch 'fc/remote-bzr' · 221ea21e
      Junio C Hamano 提交于
      * fc/remote-bzr:
        remote-bzr: add fallback check for a partial clone
        remote-bzr: reorganize the way 'wanted' works
        remote-bzr: trivial cleanups
        remote-bzr: change global repo
        remote-bzr: delay cloning/pulling
        remote-bzr: simplify get_remote_branch()
        remote-bzr: fix for files with spaces
        remote-bzr: recover from failed clones
      221ea21e
    • J
      Merge branch 'fc/remote-hg' · 8d3b97ae
      Junio C Hamano 提交于
      * fc/remote-hg: (50 commits)
        remote-hg: add support for --force
        remote-hg: add support for --dry-run
        remote-hg: check if a fetch is needed
        remote-hg: trivial cleanup
        remote-helpers: improve marks usage
        remote-hg: add check_push() helper
        remote-hg: add setup_big_push() helper
        remote-hg: remove files before modifications
        remote-hg: improve lightweight tag author
        remote-hg: use remote 'default' not local one
        remote-hg: improve branch listing
        remote-hg: simplify branch_tip()
        remote-hg: check diverged bookmarks
        remote-hg: pass around revision refs
        remote-hg: implement custom checkheads()
        remote-hg: implement custom push()
        remote-hg: only update necessary revisions
        remote-hg: force remote bookmark push selectively
        remote-hg: reorganize bookmark handling
        remote-hg: add test for failed double push
        ...
      8d3b97ae
    • J
      Merge branch 'rj/mingw-cygwin' · e936318a
      Junio C Hamano 提交于
      Update build for Cygwin 1.[57].  Torsten Bögershausen reports that
      this is fine with Cygwin 1.7 ($gmane/225824) so let's try moving it
      ahead.
      
      * rj/mingw-cygwin:
        cygwin: Remove the CYGWIN_V15_WIN32API build variable
        mingw: rename WIN32 cpp macro to GIT_WINDOWS_NATIVE
      e936318a
    • J
      Merge branch 'fc/completion-less-ls-remote' · a62d73e7
      Junio C Hamano 提交于
      * fc/completion-less-ls-remote:
        completion: avoid ls-remote in certain scenarios
      a62d73e7
    • J
      Merge branch 'tr/test-commit-only-on-orphan' · 9845bbba
      Junio C Hamano 提交于
      * tr/test-commit-only-on-orphan:
        Test 'commit --only' after 'checkout --orphan'
      9845bbba
    • J
      Merge branch 'rs/unpack-trees-plug-leak' · dd261b17
      Junio C Hamano 提交于
      * rs/unpack-trees-plug-leak:
        unpack-trees: free cache_entry array members for merges
        diff-lib, read-tree, unpack-trees: mark cache_entry array paramters const
        diff-lib, read-tree, unpack-trees: mark cache_entry pointers const
        unpack-trees: create working copy of merge entry in merged_entry
        unpack-trees: factor out dup_entry
        read-cache: mark cache_entry pointers const
        cache: mark cache_entry pointers const
      dd261b17
    • J
      Merge branch 'rr/die-on-missing-upstream' · 03b15582
      Junio C Hamano 提交于
      When a reflog notation is used for implicit "current branch", we
      did not say which branch and worse said "branch ''".
      
      * rr/die-on-missing-upstream:
        sha1_name: fix error message for @{<N>}, @{<date>}
        sha1_name: fix error message for @{u}
      03b15582
    • W
      pre-push.sample: Make the script executable · 3ea59412
      Wieland Hoffmann 提交于
      githooks(5) says that "[...]the .sample files are executable by default"
      which was not true.
      Signed-off-by: NWieland Hoffmann <themineo@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3ea59412