1. 28 2月, 2014 16 次提交
    • J
      Merge branch 'jk/test-ports' · bd62e7c3
      Junio C Hamano 提交于
      Avoid having to assign port number to be used in tests manually.
      
      * jk/test-ports:
        tests: auto-set git-daemon port
        tests: auto-set LIB_HTTPD_PORT from test name
      bd62e7c3
    • J
      Merge branch 'nd/reset-intent-to-add' · 8336832a
      Junio C Hamano 提交于
      * nd/reset-intent-to-add:
        reset: support "--mixed --intent-to-add" mode
      8336832a
    • J
      Merge branch 'ks/tree-diff-walk' · 795dd116
      Junio C Hamano 提交于
      * ks/tree-diff-walk:
        tree-walk: finally switch over tree descriptors to contain a pre-parsed entry
        revision: convert to using diff_tree_sha1()
        line-log: convert to using diff_tree_sha1()
        tree-diff: convert diff_root_tree_sha1() to just call diff_tree_sha1 with old=NULL
        tree-diff: allow diff_tree_sha1 to accept NULL sha1
      795dd116
    • J
      Merge branch 'mw/symlinks' · 8a342058
      Junio C Hamano 提交于
      All subcommands that take pathspecs mishandled an in-tree symbolic
      link when given it as a full path from the root (which arguably is
      a sick way to use pathspecs).  "git ls-files -s $(pwd)/RelNotes" in
      our tree is an easy reproduction recipe.
      
      * mw/symlinks:
        setup: don't dereference in-tree symlinks for absolute paths
        setup: add abspath_part_inside_repo() function
        t0060: add tests for prefix_path when path begins with work tree
        t0060: add test for prefix_path when path == work tree
        t0060: add test for prefix_path on symlinks via absolute paths
        t3004: add test for ls-files on symlinks via absolute paths
      8a342058
    • J
      Merge branch 'nd/test-rename-reset' · f813f71a
      Junio C Hamano 提交于
      * nd/test-rename-reset:
        t7101, t7014: rename test files to indicate what that file is for
      f813f71a
    • J
      Merge branch 'wk/submodule-on-branch' · 06c27689
      Junio C Hamano 提交于
      Make sure 'submodule update' modes that do not detach HEADs can
      be used more pleasantly by checking out a concrete branch when
      cloning them to prime the well.
      
      * wk/submodule-on-branch:
        Documentation: describe 'submodule update --remote' use case
        submodule: explicit local branch creation in module_clone
        submodule: document module_clone arguments in comments
        submodule: make 'checkout' update_module mode more explicit
      06c27689
    • J
      Merge branch 'ep/varscope' · 04347830
      Junio C Hamano 提交于
      Shrink lifetime of variables by moving their definitions to an
      inner scope where appropriate.
      
      * ep/varscope:
        builtin/gc.c: reduce scope of variables
        builtin/fetch.c: reduce scope of variable
        builtin/commit.c: reduce scope of variables
        builtin/clean.c: reduce scope of variable
        builtin/blame.c: reduce scope of variables
        builtin/apply.c: reduce scope of variables
        bisect.c: reduce scope of variable
      04347830
    • J
      Merge branch 'bs/stdio-undef-before-redef' · a06f23c7
      Junio C Hamano 提交于
      When we replace broken macros from stdio.h in git-compat-util.h,
      preprocessor.
      
      * bs/stdio-undef-before-redef:
        git-compat-util.h: #undef (v)snprintf before #define them
      a06f23c7
    • J
      Merge branch 'jk/config-path-include-fix' · bfef492d
      Junio C Hamano 提交于
      include.path variable (or any variable that expects a path that can
      use ~username expansion) in the configuration file is not a
      boolean, but the code failed to check it.
      
      * jk/config-path-include-fix:
        handle_path_include: don't look at NULL value
        expand_user_path: do not look at NULL path
      bfef492d
    • J
      Merge branch 'ds/rev-parse-required-args' · 28006fb0
      Junio C Hamano 提交于
      "git rev-parse --default" without the required option argument did
      not diagnose it as an error.
      
      * ds/rev-parse-required-args:
        rev-parse: check i before using argv[i] against argc
      28006fb0
    • J
      Merge branch 'nd/diff-quiet-stat-dirty' · 1e745453
      Junio C Hamano 提交于
      "git diff --quiet -- pathspec1 pathspec2" sometimes did not return
      correct status value.
      
      * nd/diff-quiet-stat-dirty:
        diff: do not quit early on stat-dirty files
        diff.c: move diffcore_skip_stat_unmatch core logic out for reuse later
      1e745453
    • J
      Merge branch 'nd/submodule-pathspec-ending-with-slash' · cbaeafc3
      Junio C Hamano 提交于
      Allow "git cmd path/", when the 'path' is where a submodule is
      bound to the top-level working tree, to match 'path', despite the
      extra and unnecessary trailing slash.
      
      * nd/submodule-pathspec-ending-with-slash:
        clean: use cache_name_is_other()
        clean: replace match_pathspec() with dir_path_match()
        pathspec: pass directory indicator to match_pathspec_item()
        match_pathspec: match pathspec "foo/" against directory "foo"
        dir.c: prepare match_pathspec_item for taking more flags
        pathspec: rename match_pathspec_depth() to match_pathspec()
        pathspec: convert some match_pathspec_depth() to dir_path_match()
        pathspec: convert some match_pathspec_depth() to ce_path_match()
      cbaeafc3
    • J
      Merge branch 'bk/refresh-missing-ok-in-merge-recursive' · 156d6ed9
      Junio C Hamano 提交于
      Allow "merge-recursive" to work in an empty (temporary) working
      tree again when there are renames involved, correcting an old
      regression in 1.7.7 era.
      
      * bk/refresh-missing-ok-in-merge-recursive:
        merge-recursive.c: tolerate missing files while refreshing index
        read-cache.c: extend make_cache_entry refresh flag with options
        read-cache.c: refactor --ignore-missing implementation
        t3030-merge-recursive: test known breakage with empty work tree
      156d6ed9
    • J
      Merge branch 'da/pull-ff-configuration' · 7da5fd68
      Junio C Hamano 提交于
      "git pull" learned to pay attention to pull.ff configuration
      variable.
      
      * da/pull-ff-configuration:
        pull: add --ff-only to the help text
        pull: add pull.ff configuration
      7da5fd68
    • J
      Merge branch 'kb/fast-hashmap' · d637d1b9
      Junio C Hamano 提交于
      Improvements to our hash table to get it to meet the needs of the
      msysgit fscache project, with some nice performance improvements.
      
      * kb/fast-hashmap:
        name-hash: retire unused index_name_exists()
        hashmap.h: use 'unsigned int' for hash-codes everywhere
        test-hashmap.c: drop unnecessary #includes
        .gitignore: test-hashmap is a generated file
        read-cache.c: fix memory leaks caused by removed cache entries
        builtin/update-index.c: cleanup update_one
        fix 'git update-index --verbose --again' output
        remove old hash.[ch] implementation
        name-hash.c: remove cache entries instead of marking them CE_UNHASHED
        name-hash.c: use new hash map implementation for cache entries
        name-hash.c: remove unreferenced directory entries
        name-hash.c: use new hash map implementation for directories
        diffcore-rename.c: use new hash map implementation
        diffcore-rename.c: simplify finding exact renames
        diffcore-rename.c: move code around to prepare for the next patch
        buitin/describe.c: use new hash map implementation
        add a hashtable implementation that supports O(1) removal
        submodule: don't access the .gitmodules cache entry after removing it
      d637d1b9
    • J
      Merge branch 'nv/commit-gpgsign-config' · 810273bc
      Junio C Hamano 提交于
      Introduce commit.gpgsign configuration variable to force every
      commit to be GPG signed.  The variable cannot be overriden from the
      command line of some of the commands that create commits except for
      "git commit" and "git commit-tree", but I am not convinced that it
      is a good idea to sprinkle support for --no-gpg-sign everywhere,
      which in turn means that this configuration variable may not be
      such a good idea.
      
      * nv/commit-gpgsign-config:
        test the commit.gpgsign config option
        commit-tree: add and document --no-gpg-sign
        commit-tree: add the commit.gpgsign option to sign all commits
      810273bc
  2. 25 2月, 2014 24 次提交