1. 20 9月, 2014 7 次提交
    • J
      Merge branch 'jp/index-with-corrupt-stages' · 04631848
      Junio C Hamano 提交于
      A broken reimplementation of Git could write an invalid index that
      records both stage #0 and higher stage entries for the same path.
      Notice and reject such an index, as there is no sensible fallback
      (we do not know if the broken tool wanted to resolve and forgot to
      remove higher stage entries, or if it wanted to unresolve and
      forgot to remove the stage#0 entry).
      
      * jp/index-with-corrupt-stages:
        read_index_unmerged(): remove unnecessary loop index adjustment
        read_index_from(): catch out of order entries when reading an index file
      04631848
    • J
      Merge branch 'jk/index-pack-threading-races' · bd656f6e
      Junio C Hamano 提交于
      When receiving an invalid pack stream that records the same object
      twice, multiple threads got confused due to a race.  We should
      reject or correct such a stream upon receiving, but that will be a
      larger change.
      
      * jk/index-pack-threading-races:
        index-pack: fix race condition with duplicate bases
      bd656f6e
    • J
      Merge branch 'jk/commit-author-parsing' · 9ff700eb
      Junio C Hamano 提交于
      Code clean-up.
      
      * jk/commit-author-parsing:
        determine_author_info(): copy getenv output
        determine_author_info(): reuse parsing functions
        date: use strbufs in date-formatting functions
        record_author_date(): use find_commit_header()
        record_author_date(): fix memory leak on malformed commit
        commit: provide a function to find a header in a buffer
      9ff700eb
    • J
      Merge branch 'bb/date-iso-strict' · ceeacc50
      Junio C Hamano 提交于
      "log --date=iso" uses a slight variant of ISO 8601 format that is
      made more human readable.  A new "--date=iso-strict" option gives
      datetime output that is more strictly conformant.
      
      * bb/date-iso-strict:
        pretty: provide a strict ISO 8601 date format
      ceeacc50
    • J
      Merge branch 'mb/build-contrib-svn-fe' · a60f434e
      Junio C Hamano 提交于
      * mb/build-contrib-svn-fe:
        contrib/svn-fe: fix Makefile
      a60f434e
    • J
      Merge branch 'jk/fast-export-anonymize' · b1de6b21
      Junio C Hamano 提交于
      Sometimes users want to report a bug they experience on their
      repository, but they are not at liberty to share the contents of
      the repository.  "fast-export" was taught an "--anonymize" option
      to replace blob contents, names of people and paths and log
      messages with bland and simple strings to help them.
      
      * jk/fast-export-anonymize:
        docs/fast-export: explain --anonymize more completely
        teach fast-export an --anonymize option
      b1de6b21
    • J
      Merge branch 'jk/send-pack-many-refspecs' · d9dd4ceb
      Junio C Hamano 提交于
      The number of refs that can be pushed at once over smart HTTP was
      limited by the command line length.  The limitation has been lifted
      by passing these refs from the standard input of send-pack.
      
      * jk/send-pack-many-refspecs:
        send-pack: take refspecs over stdin
      d9dd4ceb
  2. 14 9月, 2014 5 次提交
  3. 12 9月, 2014 20 次提交
    • J
      Update draft release notes to 2.2 · ce1d3a93
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ce1d3a93
    • J
      Merge branch 'br/imap-send-simplify-tunnel-child-process' · 5dcdc780
      Junio C Hamano 提交于
      Code clean-up.
      
      * br/imap-send-simplify-tunnel-child-process:
        imap-send: simplify v_issue_imap_cmd() and get_cmd_result() using starts_with()
        imap-send.c: imap_folder -> imap_server_conf.folder
        git-imap-send: simplify tunnel construction
      5dcdc780
    • J
      Merge branch 'jk/name-decoration-alloc' · 1ebe6a82
      Junio C Hamano 提交于
      The API to allocate the structure to keep track of commit
      decoration was cumbersome to use, inviting lazy code to
      overallocate memory.
      
      * jk/name-decoration-alloc:
        log-tree: use FLEX_ARRAY in name_decoration
        log-tree: make name_decoration hash static
        log-tree: make add_name_decoration a public function
      1ebe6a82
    • J
      Merge branch 'jn/unpack-trees-checkout-m-carry-deletion' · f28763d7
      Junio C Hamano 提交于
      "git checkout -m" did not switch to another branch while carrying
      the local changes forward when a path was deleted from the index.
      
      * jn/unpack-trees-checkout-m-carry-deletion:
        checkout -m: attempt merge when deletion of path was staged
        unpack-trees: use 'cuddled' style for if-else cascade
        unpack-trees: simplify 'all other failures' case
      f28763d7
    • J
      Merge branch 'rs/list-optim' · 29479232
      Junio C Hamano 提交于
      Fix a couple of "accumulate into a sorted list" to "accumulate and
      then sort the list".
      
      * rs/list-optim:
        walker: avoid quadratic list insertion in mark_complete
        sha1_name: avoid quadratic list insertion in handle_one_ref
      29479232
    • J
      Merge branch 'jk/fast-import-fixes' · b6a12617
      Junio C Hamano 提交于
      With sufficiently long refnames, fast-import could have overflown
      an on-stack buffer.
      
      * jk/fast-import-fixes:
        fast-import: fix buffer overflow in dump_tags
        fast-import: clean up pack_data pointer in end_packfile
      b6a12617
    • J
      Merge branch 'jk/prune-top-level-refs-after-packing' · 88e7dff9
      Junio C Hamano 提交于
      After "pack-refs --prune" packed refs at the top-level, it failed
      to prune them.
      
      * jk/prune-top-level-refs-after-packing:
        pack-refs: prune top-level refs like "refs/foo"
      88e7dff9
    • J
      Merge branch 'nd/large-blobs' · bedd3b4b
      Junio C Hamano 提交于
      Teach a few codepaths to punt (instead of dying) when large blobs
      that would not fit in core are involved in the operation.
      
      * nd/large-blobs:
        diff: shortcut for diff'ing two binary SHA-1 objects
        diff --stat: mark any file larger than core.bigfilethreshold binary
        diff.c: allow to pass more flags to diff_populate_filespec
        sha1_file.c: do not die failing to malloc in unpack_compressed_entry
        wrapper.c: introduce gentle xmallocz that does not die()
      bedd3b4b
    • J
      Merge branch 'nd/fetch-pass-quiet-to-gc-child-process' · 08ad26a6
      Junio C Hamano 提交于
      Progress output from "git gc --auto" was visible in "git fetch -q".
      
      * nd/fetch-pass-quiet-to-gc-child-process:
        fetch: silence git-gc if --quiet is given
        fetch: convert argv_gc_auto to struct argv_array
      08ad26a6
    • J
      Merge branch 'dt/cache-tree-repair' · 3fd13cbc
      Junio C Hamano 提交于
      Add a few more places in "commit" and "checkout" that make sure
      that the cache-tree is fully populated in the index.
      
      * dt/cache-tree-repair:
        cache-tree: do not try to use an invalidated subtree info to build a tree
        cache-tree: Write updated cache-tree after commit
        cache-tree: subdirectory tests
        test-dump-cache-tree: invalid trees are not errors
        cache-tree: create/update cache-tree on checkout
      3fd13cbc
    • J
      Merge branch 'rs/ref-transaction-1' · 01d678a2
      Junio C Hamano 提交于
      The second batch of the transactional ref update series.
      
      * rs/ref-transaction-1: (22 commits)
        update-ref --stdin: pass transaction around explicitly
        update-ref --stdin: narrow scope of err strbuf
        refs.c: make delete_ref use a transaction
        refs.c: make prune_ref use a transaction to delete the ref
        refs.c: remove lock_ref_sha1
        refs.c: remove the update_ref_write function
        refs.c: remove the update_ref_lock function
        refs.c: make lock_ref_sha1 static
        walker.c: use ref transaction for ref updates
        fast-import.c: use a ref transaction when dumping tags
        receive-pack.c: use a reference transaction for updating the refs
        refs.c: change update_ref to use a transaction
        branch.c: use ref transaction for all ref updates
        fast-import.c: change update_branch to use ref transactions
        sequencer.c: use ref transactions for all ref updates
        commit.c: use ref transactions for updates
        replace.c: use the ref transaction functions for updates
        tag.c: use ref transactions when doing updates
        refs.c: add transaction.status and track OPEN/CLOSED
        refs.c: make ref_transaction_begin take an err argument
        ...
      01d678a2
    • J
      Merge branch 'nd/mv-code-cleaning' · 5e1dc488
      Junio C Hamano 提交于
      Code clean-up.
      
      * nd/mv-code-cleaning:
        mv: no SP between function name and the first opening parenthese
        mv: combine two if(s)
        mv: unindent one level for directory move code
        mv: move index search code out
        mv: remove an "if" that's always true
        mv: split submodule move preparation code out
        mv: flatten error handling code block
        mv: mark strings for translations
      5e1dc488
    • J
      Merge branch 'mm/discourage-commit-a-to-finish-conflict-resolution' · 785514bb
      Junio C Hamano 提交于
      * mm/discourage-commit-a-to-finish-conflict-resolution:
        merge, pull: stop advising 'commit -a' in case of conflict
      785514bb
    • J
      Merge branch 'jk/make-simplify-dependencies' · 683b4d82
      Junio C Hamano 提交于
      Admit that keeping LIB_H up-to-date, only for those that do not use
      the automatically generated dependencies, is a losing battle, and
      make it conservative by making everything depend on anything.
      
      * jk/make-simplify-dependencies:
        Makefile: drop CHECK_HEADER_DEPENDENCIES code
        Makefile: use `find` to determine static header dependencies
        i18n: treat "make pot" as an explicitly-invoked target
      683b4d82
    • J
      Merge branch 'et/spell-poll-infinite-with-minus-one-only' · 9ddd6897
      Junio C Hamano 提交于
      We used to pass -1000 to poll(2), expecting it to also mean "no
      timeout", which should be spelled as -1.
      
      * et/spell-poll-infinite-with-minus-one-only:
        upload-pack: keep poll(2)'s timeout to -1
      9ddd6897
    • J
      Merge branch 'br/http-init-fix' · 6c1d42ac
      Junio C Hamano 提交于
      Code clean-up.
      
      * br/http-init-fix:
        http: style fixes for curl_multi_init error check
        http.c: die if curl_*_init fails
      6c1d42ac
    • J
      Merge branch 'rs/child-process-init' · 825fd937
      Junio C Hamano 提交于
      Code clean-up.
      
      * rs/child-process-init:
        run-command: inline prepare_run_command_v_opt()
        run-command: call run_command_v_opt_cd_env() instead of duplicating it
        run-command: introduce child_process_init()
        run-command: introduce CHILD_PROCESS_INIT
      825fd937
    • J
      Merge branch 'jk/contrib-subtree-make-all' · 49feda62
      Junio C Hamano 提交于
      * jk/contrib-subtree-make-all:
        subtree: make "all" default target of Makefile
      49feda62
    • J
      Merge branch 'ta/config-set-2' · 554913da
      Junio C Hamano 提交于
      Update git_config() users with callback functions for a very narrow
      scope with calls to config-set API that lets us query a single
      variable.
      
      * ta/config-set-2:
        builtin/apply.c: replace `git_config()` with `git_config_get_string_const()`
        merge-recursive.c: replace `git_config()` with `git_config_get_int()`
        ll-merge.c: refactor `read_merge_config()` to use `git_config_string()`
        fast-import.c: replace `git_config()` with `git_config_get_*()` family
        branch.c: replace `git_config()` with `git_config_get_string()
        alias.c: replace `git_config()` with `git_config_get_string()`
        imap-send.c: replace `git_config()` with `git_config_get_*()` family
        pager.c: replace `git_config()` with `git_config_get_value()`
        builtin/gc.c: replace `git_config()` with `git_config_get_*()` family
        rerere.c: replace `git_config()` with `git_config_get_*()` family
        fetchpack.c: replace `git_config()` with `git_config_get_*()` family
        archive.c: replace `git_config()` with `git_config_get_bool()` family
        read-cache.c: replace `git_config()` with `git_config_get_*()` family
        http-backend.c: replace `git_config()` with `git_config_get_bool()` family
        daemon.c: replace `git_config()` with `git_config_get_bool()` family
      554913da
    • J
      Merge branch 'ta/config-set-1' · 7f346e9d
      Junio C Hamano 提交于
      Use the new caching config-set API in git_config() calls.
      
      * ta/config-set-1:
        add tests for `git_config_get_string_const()`
        add a test for semantic errors in config files
        rewrite git_config() to use the config-set API
        config: add `git_die_config()` to the config-set API
        change `git_config()` return value to void
        add line number and file name info to `config_set`
        config.c: fix accuracy of line number in errors
        config.c: mark error and warnings strings for translation
      7f346e9d
  4. 10 9月, 2014 8 次提交