1. 26 8月, 2015 1 次提交
    • J
      Merge branch 'jh/strbuf-read-use-read-in-full' · 3b281d12
      Junio C Hamano 提交于
      strbuf_read() used to have one extra iteration (and an unnecessary
      strbuf_grow() of 8kB), which was eliminated.
      
      * jh/strbuf-read-use-read-in-full:
        strbuf_read(): skip unnecessary strbuf_grow() at eof
      3b281d12
  2. 20 8月, 2015 27 次提交
    • J
      Sync with maint · ff86faf2
      Junio C Hamano 提交于
      * maint:
        Start preparing for 2.5.1
      ff86faf2
    • J
      Fourth batch for 2.6 · 8f8d0ecf
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8f8d0ecf
    • J
      Merge branch 'tb/complete-rebase-i-edit-todo' · 011710a3
      Junio C Hamano 提交于
      The command-line completion script (in contrib/) has been updated.
      
      * tb/complete-rebase-i-edit-todo:
        completion: offer '--edit-todo' during interactive rebase
      011710a3
    • J
      Merge branch 'jk/git-path' · 8c9155e0
      Junio C Hamano 提交于
      git_path() and mkpath() are handy helper functions but it is easy
      to misuse, as the callers need to be careful to keep the number of
      active results below 4.  Their uses have been reduced.
      
      * jk/git-path:
        memoize common git-path "constant" files
        get_repo_path: refactor path-allocation
        find_hook: keep our own static buffer
        refs.c: remove_empty_directories can take a strbuf
        refs.c: avoid git_path assignment in lock_ref_sha1_basic
        refs.c: avoid repeated git_path calls in rename_tmp_log
        refs.c: simplify strbufs in reflog setup and writing
        path.c: drop git_path_submodule
        refs.c: remove extra git_path calls from read_loose_refs
        remote.c: drop extraneous local variable from migrate_file
        prefer mkpathdup to mkpath in assignments
        prefer git_pathdup to git_path in some possibly-dangerous cases
        add_to_alternates_file: don't add duplicate entries
        t5700: modernize style
        cache.h: complete set of git_path_submodule helpers
        cache.h: clarify documentation for git_path, et al
      8c9155e0
    • J
      Merge branch 'jc/finalize-temp-file' · 51a22ce1
      Junio C Hamano 提交于
      Long overdue micro clean-up.
      
      * jc/finalize-temp-file:
        sha1_file.c: rename move_temp_to_file() to finalize_object_file()
      51a22ce1
    • J
      Merge branch 'ps/guess-repo-name-at-root' · 4bfab58c
      Junio C Hamano 提交于
      "git clone $URL", when cloning from a site whose sole purpose is to
      host a single repository (hence, no path after <scheme>://<site>/),
      tried to use the site name as the new repository name, but did not
      remove username or password when <site> part was of the form
      <user>@<pass>:<host>.  The code is taught to redact these.
      
      * ps/guess-repo-name-at-root:
        clone: abort if no dir name could be guessed
        clone: do not use port number as dir name
        clone: do not include authentication data in guessed dir
      4bfab58c
    • J
      Merge branch 'jk/guess-repo-name-regression-fix' · 8259da5e
      Junio C Hamano 提交于
      "git clone $URL" in recent releases of Git contains a regression in
      the code that invents a new repository name incorrectly based on
      the $URL.  This has been corrected.
      
      * jk/guess-repo-name-regression-fix:
        clone: use computed length in guess_dir_name
        clone: add tests for output directory
      8259da5e
    • J
      Merge branch 'jk/negative-hiderefs' · 824a0be6
      Junio C Hamano 提交于
      A negative !ref entry in multi-value transfer.hideRefs
      configuration can be used to say "don't hide this one".
      
      * jk/negative-hiderefs:
        refs: support negative transfer.hideRefs
        docs/config.txt: reorder hideRefs config
      824a0be6
    • J
      Merge branch 'jk/test-with-x' · 138014c3
      Junio C Hamano 提交于
      Running tests with the "-x" option to make them verbose had some
      unpleasant interactions with other features of the test suite.
      
      * jk/test-with-x:
        test-lib: disable trace when test is not verbose
        test-lib: turn off "-x" tracing during chain-lint check
      138014c3
    • J
      Merge branch 'ps/t1509-chroot-test-fixup' · 034603f0
      Junio C Hamano 提交于
      t1509 test that requires a dedicated VM environment had some
      bitrot, which has been corrected.
      
      * ps/t1509-chroot-test-fixup:
        tests: fix cleanup after tests in t1509-root-worktree
        tests: fix broken && chains in t1509-root-worktree
      034603f0
    • J
      Merge branch 'sb/check-return-from-read-ref' · 1d82ef5b
      Junio C Hamano 提交于
      * sb/check-return-from-read-ref:
        transport-helper: die on errors reading refs.
      1d82ef5b
    • J
      Merge branch 'mm/pull-upload-pack' · d772def9
      Junio C Hamano 提交于
      "git pull" in recent releases of Git has a regression in the code
      that allows custom path to the --upload-pack=<program>.  This has
      been corrected.
      
      Note that this is irrelevant for 'master' with "git pull" rewritten
      in C.
      
      * mm/pull-upload-pack:
        pull.sh: quote $upload_pack when passing it to git-fetch
      d772def9
    • J
      Start preparing for 2.5.1 · 552a736d
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      552a736d
    • J
      Merge branch 'ta/docfix-index-format-tech' into maint · 91db0091
      Junio C Hamano 提交于
      * ta/docfix-index-format-tech:
        typofix for index-format.txt
      91db0091
    • J
      Merge branch 'sb/parse-options-codeformat' into maint · b994b9bc
      Junio C Hamano 提交于
      * sb/parse-options-codeformat:
        parse-options: align curly braces for all options
      b994b9bc
    • J
      Merge branch 'sb/remove-unused-var-from-builtin-add' into maint · 223b55a5
      Junio C Hamano 提交于
      * sb/remove-unused-var-from-builtin-add:
        add: remove dead code
      223b55a5
    • J
      Merge branch 'kn/tag-doc-fix' into maint · 24493ff5
      Junio C Hamano 提交于
      * kn/tag-doc-fix:
        Documentation/tag: remove double occurance of "<pattern>"
      24493ff5
    • J
      Merge branch 'es/doc-clean-outdated-tools' into maint · cacee08c
      Junio C Hamano 提交于
      * es/doc-clean-outdated-tools:
        Documentation/git-tools: retire manually-maintained list
        Documentation/git-tools: drop references to defunct tools
        Documentation/git-tools: fix item text formatting
        Documentation/git-tools: improve discoverability of Git wiki
        Documentation/git: drop outdated Cogito reference
      cacee08c
    • J
      Merge branch 'nd/export-worktree' into maint · 25a294e4
      Junio C Hamano 提交于
      Running an aliased command from a subdirectory when the .git thing
      in the working tree is a gitfile pointing elsewhere did not work.
      
      * nd/export-worktree:
        setup: set env $GIT_WORK_TREE when work tree is set, like $GIT_DIR
      25a294e4
    • J
      Merge branch 'mh/fast-import-optimize-current-from' into maint · f9610bca
      Junio C Hamano 提交于
      Often a fast-import stream builds a new commit on top of the
      previous commit it built, and it often unconditionally emits a
      "from" command to specify the first parent, which can be omitted in
      such a case.  This caused fast-import to forget the tree of the
      previous commit and then re-read it from scratch, which was
      inefficient.  Optimize for this common case.
      
      * mh/fast-import-optimize-current-from:
        fast-import: do less work when given "from" matches current branch head
      f9610bca
    • J
      Merge branch 'ib/scripted-parse-opt-better-hint-string' into maint · d3ac3598
      Junio C Hamano 提交于
      The "rev-parse --parseopt" mode parsed the option specification
      and the argument hint in a strange way to allow '=' and other
      special characters in the option name while forbidding them from
      the argument hint.  This made it impossible to define an option
      like "--pair <key>=<value>" with "pair=key=value" specification,
      which instead would have defined a "--pair=key <value>" option.
      
      * ib/scripted-parse-opt-better-hint-string:
        rev-parse --parseopt: allow [*=?!] in argument hints
      d3ac3598
    • J
      Merge branch 'se/doc-checkout-ours-theirs' into maint · 204ea3ca
      Junio C Hamano 提交于
      A "rebase" replays changes of the local branch on top of something
      else, as such they are placed in stage #3 and referred to as
      "theirs", while the changes in the new base, typically a foreign
      work, are placed in stage #2 and referred to as "ours".  Clarify
      the "checkout --ours/--theirs".
      
      * se/doc-checkout-ours-theirs:
        checkout: document subtlety around --ours/--theirs
      204ea3ca
    • J
      Merge branch 'cb/uname-in-untracked' into maint · b083703c
      Junio C Hamano 提交于
      An experimental "untracked cache" feature used uname(2) in a
      slightly unportable way.
      
      * cb/uname-in-untracked:
        untracked: fix detection of uname(2) failure
      b083703c
    • J
      Merge branch 'as/sparse-checkout-removal' into maint · 4f66e443
      Junio C Hamano 提交于
      "sparse checkout" misbehaved for a path that is excluded from the
      checkout when switching between branches that differ at the path.
      
      * as/sparse-checkout-removal:
        unpack-trees: don't update files with CE_WT_REMOVE set
      4f66e443
    • J
      Merge branch 'db/send-pack-user-signingkey' into maint · 7e7ce32f
      Junio C Hamano 提交于
      The low-level "git send-pack" did not honor 'user.signingkey'
      configuration variable when sending a signed-push.
      
      * db/send-pack-user-signingkey:
        builtin/send-pack.c: respect user.signingkey
      7e7ce32f
    • J
      Merge branch 'jx/do-not-crash-receive-pack-wo-head' into maint · 17850efa
      Junio C Hamano 提交于
      An attempt to delete a ref by pushing into a repositorywhose HEAD
      symbolic reference points at an unborn branch that cannot be
      created due to ref D/F conflict (e.g. refs/heads/a/b exists, HEAD
      points at refs/heads/a) failed.
      
      * jx/do-not-crash-receive-pack-wo-head:
        receive-pack: crash when checking with non-exist HEAD
      17850efa
    • J
      Merge branch 'da/subtree-date-confusion' into maint · 5a30374a
      Junio C Hamano 提交于
      "git subtree" (in contrib/) depended on "git log" output to be
      stable, which was a no-no.  Apply a workaround to force a
      particular date format.
      
      * da/subtree-date-confusion:
        contrib/subtree: ignore log.date configuration
      5a30374a
  3. 18 8月, 2015 5 次提交
  4. 13 8月, 2015 7 次提交
    • J
      Second batch for 2.6 · 130be8ee
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      130be8ee
    • J
      Merge branch 'sb/remove-unused-var-from-builtin-add' · fde61a0f
      Junio C Hamano 提交于
      * sb/remove-unused-var-from-builtin-add:
        add: remove dead code
      fde61a0f
    • J
      Merge branch 'sb/parse-options-codeformat' · 535efaf6
      Junio C Hamano 提交于
      * sb/parse-options-codeformat:
        parse-options: align curly braces for all options
      535efaf6
    • J
      Merge branch 'dt/unpack-trees-cache-tree-revalidate' · 9ad8474b
      Junio C Hamano 提交于
      The code to perform multi-tree merges has been taught to repopulate
      the cache-tree upon a successful merge into the index, so that
      subsequent "diff-index --cached" (hence "status") and "write-tree"
      (hence "commit") will go faster.
      
      The same logic in "git checkout" may now be removed, but that is a
      separate issue.
      
      * dt/unpack-trees-cache-tree-revalidate:
        unpack-trees: populate cache-tree on successful merge
      9ad8474b
    • J
      Merge branch 'dt/reflog-tests' · 0188f323
      Junio C Hamano 提交于
      Tests that assume how reflogs are represented on the filesystem too
      much have been corrected.
      
      * dt/reflog-tests:
        tests: remove some direct access to .git/logs
        t/t7509: remove unnecessary manipulation of reflog
      0188f323
    • J
      Merge branch 'es/worktree-add-cleanup' · 53860f03
      Junio C Hamano 提交于
      The "new-worktree-mode" hack in "checkout" that was added in
      nd/multiple-work-trees topic has been removed by updating the
      implementation of new "worktree add".
      
      * es/worktree-add-cleanup: (25 commits)
        Documentation/git-worktree: fix duplicated 'from'
        Documentation/config: mention "now" and "never" for 'expire' settings
        Documentation/git-worktree: fix broken 'linkgit' invocation
        checkout: drop intimate knowledge of newly created worktree
        worktree: populate via "git reset --hard" rather than "git checkout"
        worktree: avoid resolving HEAD unnecessarily
        worktree: make setup of new HEAD distinct from worktree population
        worktree: detect branch-name/detached and error conditions locally
        worktree: add_worktree: construct worktree-population command locally
        worktree: elucidate environment variables intended for child processes
        worktree: make branch creation distinct from worktree population
        worktree: add: suppress auto-vivication with --detach and no <branch>
        worktree: make --detach mutually exclusive with -b/-B
        worktree: introduce options container
        worktree: simplify new branch (-b/-B) option checking
        worktree: improve worktree setup message
        branch: publish die_if_checked_out()
        checkout: teach check_linked_checkout() about symbolic link HEAD
        checkout: check_linked_checkout: simplify symref parsing
        checkout: check_linked_checkout: improve "already checked out" aesthetic
        ...
      53860f03
    • J
      Merge branch 'pt/am-builtin' · 7aa2da61
      Junio C Hamano 提交于
      Rewrite "am" in "C".
      
      * pt/am-builtin: (46 commits)
        git-am: add am.threeWay config variable
        builtin-am: remove redirection to git-am.sh
        builtin-am: check for valid committer ident
        builtin-am: implement legacy -b/--binary option
        builtin-am: implement -i/--interactive
        builtin-am: support and auto-detect mercurial patches
        builtin-am: support and auto-detect StGit series files
        builtin-am: support and auto-detect StGit patches
        builtin-am: rerere support
        builtin-am: invoke post-applypatch hook
        builtin-am: invoke pre-applypatch hook
        builtin-am: invoke applypatch-msg hook
        builtin-am: support automatic notes copying
        builtin-am: invoke post-rewrite hook
        builtin-am: implement -S/--gpg-sign, commit.gpgsign
        builtin-am: implement --committer-date-is-author-date
        builtin-am: implement --ignore-date
        builtin-am: pass git-apply's options to git-apply
        builtin-am: implement --[no-]scissors
        builtin-am: support --keep-cr, am.keepcr
        ...
      7aa2da61