1. 22 3月, 2014 7 次提交
    • J
      Merge branch 'nd/upload-pack-shallow' · 1ddb4d7e
      Junio C Hamano 提交于
      Serving objects from a shallow repository needs to write a
      temporary file to be used, but the serving upload-pack may not have
      write access to the repository which is meant to be read-only.
      
      Instead feed these temporary shallow bounds from the standard input
      of pack-objects so that we do not have to use a temporary file.
      
      * nd/upload-pack-shallow:
        upload-pack: send shallow info over stdin to pack-objects
      1ddb4d7e
    • J
      Merge branch 'jn/wt-status' · 6dada01b
      Junio C Hamano 提交于
      Unify the codepaths that format new/modified/changed sections and
      conflicted paths in the "git status" output and make it possible to
      properly internationalize their output.
      
      * jn/wt-status:
        wt-status: lift the artificual "at least 20 columns" floor
        wt-status: i18n of section labels
        wt-status: extract the code to compute width for labels
        wt-status: make full label string to be subject to l10n
      6dada01b
    • J
      Merge branch 'jc/stash-pop-not-popped' · 10bdb20d
      Junio C Hamano 提交于
      "stash pop", upon failing to apply the stash, refrains from
      discarding the stash to avoid information loss.  Be more explicit
      in the error message.
      
      The wording may want to get a bit more bikeshedding.
      
      * jc/stash-pop-not-popped:
        stash pop: mention we did not drop the stash upon failing to apply
      10bdb20d
    • J
      Merge branch 'dk/skip-prefix-scan-only-once' · 1be645c0
      Junio C Hamano 提交于
      Update implementation of skip_prefix() to scan only once; given
      that most "prefix" arguments to the inline function are constant
      strings whose strlen() can be determined at the compile time, this
      might actually make things worse with a compiler with sufficient
      intelligence.
      
      * dk/skip-prefix-scan-only-once:
        skip_prefix(): scan prefix only once
      1be645c0
    • J
      Merge branch 'nd/tag-version-sort' · b6de0c63
      Junio C Hamano 提交于
      Allow v1.9.0 sorted before v1.10.0 in "git tag --list" output.
      
      * nd/tag-version-sort:
        tag: support --sort=<spec>
      b6de0c63
    • J
      Merge branch 'jk/shallow-update-fix' · 3e14384b
      Junio C Hamano 提交于
      Serving objects from a shallow repository needs to write a
      new file to hold the temporary shallow boundaries but it was not
      cleaned when we exit due to die() or a signal.
      
      * jk/shallow-update-fix:
        shallow: verify shallow file after taking lock
        shallow: automatically clean up shallow tempfiles
        shallow: use stat_validity to check for up-to-date file
      3e14384b
    • J
      Merge branch 'tc/commit-dry-run-exit-status-tests' · 4291cc10
      Junio C Hamano 提交于
      * tc/commit-dry-run-exit-status-tests:
        demonstrate git-commit --dry-run exit code behaviour
      4291cc10
  2. 19 3月, 2014 33 次提交
    • J
      Sync with 1.9.1 · 5172cb3b
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5172cb3b
    • J
      Update draft release notes to Git 2.0 · a35104fa
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a35104fa
    • J
      Git 1.9.1 · cee0c275
      Junio C Hamano 提交于
      The version numbering scheme has changed since Git 1.9 and we
      dropped the third dewey-decimal from the traditional numbering
      (e.g. both 1.8.4 and 1.8.5 were major feature releases).  This
      release 1.9.1 is the first maintenance relase for Git 1.9.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      cee0c275
    • J
      Merge branch 'jk/clean-d-pathspec' into maint · 9526473f
      Junio C Hamano 提交于
      "git clean -d pathspec" did not use the given pathspec correctly
      and ended up cleaning too much.
      
      * jk/clean-d-pathspec:
        clean: simplify dir/not-dir logic
        clean: respect pathspecs with "-d"
      9526473f
    • J
      Merge branch 'da/difftool-git-files' into maint · 01e13d02
      Junio C Hamano 提交于
      "git difftool" misbehaved when the repository is bound to the
      working tree with the ".git file" mechanism, where a textual file
      ".git" tells us where it is.
      
      * da/difftool-git-files:
        t7800: add a difftool test for .git-files
        difftool: support repositories with .git-files
      01e13d02
    • J
      Merge branch 'jk/remote-pushremote-config-reading' into maint · 4097a254
      Junio C Hamano 提交于
      "git push" did not pay attention to branch.*.pushremote if it is
      defined earlier than remote.pushdefault; the order of these two
      variables in the configuration file should not matter, but it did by
      mistake.
      
      * jk/remote-pushremote-config-reading:
        remote: handle pushremote config in any order
      4097a254
    • J
      Merge branch 'jk/commit-dates-parsing-fix' into maint · 8aac6c97
      Junio C Hamano 提交于
      Codepaths that parse timestamps in commit objects have been
      tightened.
      
      * jk/commit-dates-parsing-fix:
        show_ident_date: fix tz range check
        log: do not segfault on gmtime errors
        log: handle integer overflow in timestamps
        date: check date overflow against time_t
        fsck: report integer overflow in author timestamps
        t4212: test bogus timestamps with git-log
      8aac6c97
    • J
      Merge branch 'tr/diff-submodule-no-reuse-worktree' into maint · a5aca6e8
      Junio C Hamano 提交于
      "git diff --external-diff" incorrectly fed the submodule directory
      in the working tree to the external diff driver when it knew it is
      the same as one of the versions being compared.
      
      * tr/diff-submodule-no-reuse-worktree:
        diff: do not reuse_worktree_file for submodules
      a5aca6e8
    • J
      Merge branch 'nd/reset-setup-worktree' into maint · 1f569775
      Junio C Hamano 提交于
      "git reset" needs to refresh the index when working in a working
      tree (it can also be used to match the index to the HEAD in an
      otherwise bare repository), but it failed to set up the working
      tree properly, causing GIT_WORK_TREE to be ignored.
      
      * nd/reset-setup-worktree:
        reset: optionally setup worktree and refresh index on --mixed
      1f569775
    • J
      Merge branch 'jc/check-attr-honor-working-tree' into maint · a8b31316
      Junio C Hamano 提交于
      "git check-attr" when working on a repository with a working tree
      did not work well when the working tree was specified via the
      --work-tree (and obviously with --git-dir) option.
      
      * jc/check-attr-honor-working-tree:
        check-attr: move to the top of working tree when in non-bare repository
        t0003: do not chdir the whole test process
      a8b31316
    • J
      Merge branch 'bk/refresh-missing-ok-in-merge-recursive' into maint · 6d011b8e
      Junio C Hamano 提交于
      "merge-recursive" was broken in 1.7.7 era and stopped working in an
      empty (temporary) working tree, when there are renames involved.
      This has been corrected.
      
      * 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
      6d011b8e
    • J
      Merge branch 'ds/rev-parse-required-args' into maint · c7b31732
      Junio C Hamano 提交于
      "git rev-parse" was loose in rejecting command line arguments that
      do not make sense, e.g. "--default" without the required value for
      that option.
      
      * ds/rev-parse-required-args:
        rev-parse: check i before using argv[i] against argc
      c7b31732
    • J
      Merge branch 'jk/config-path-include-fix' into maint · 6f016677
      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
      6f016677
    • J
      Merge branch 'nd/diff-quiet-stat-dirty' into maint · 34120a5f
      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
      34120a5f
    • J
      Merge branch 'nd/http-fetch-shallow-fix' into maint · 1030d4c8
      Junio C Hamano 提交于
      Attempting to deepen a shallow repository by fetching over smart
      HTTP transport failed in the protocol exchange, when no-done
      extension was used.  The fetching side waited for the list of
      shallow boundary commits after the sending end stopped talking to
      it.
      
      * nd/http-fetch-shallow-fix:
        t5537: move http tests out to t5539
        fetch-pack: fix deepen shallow over smart http with no-done cap
        protocol-capabilities.txt: document no-done
        protocol-capabilities.txt: refer multi_ack_detailed back to pack-protocol.txt
        pack-protocol.txt: clarify 'obj-id' in the last ACK after 'done'
        test: rename http fetch and push test files
        tests: auto-set LIB_HTTPD_PORT from test name
      1030d4c8
    • J
      Merge branch 'nd/submodule-pathspec-ending-with-slash' into maint · 6a0556e4
      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 (such a slash is often
      given by command line completion).
      
      * 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()
      6a0556e4
    • J
      Merge branch 'rs/grep-h-c' · 6f6be80e
      Junio C Hamano 提交于
      "git grep" learns to handle combination of "-h (no header)" and "-c
      (counts)".
      
      * rs/grep-h-c:
        grep: support -h (no header) with --count
        t7810: add missing variables to tests in loop
      6f6be80e
    • J
      Merge branch 'rm/strchrnul-not-strlen' · 6f75e483
      Junio C Hamano 提交于
      * rm/strchrnul-not-strlen:
        use strchrnul() in place of strchr() and strlen()
      6f75e483
    • J
      Merge branch 'jc/tag-contains-with' · 884377c1
      Junio C Hamano 提交于
      * jc/tag-contains-with:
        tag: grok "--with" as synonym to "--contains"
      884377c1
    • J
      Merge branch 'bg/install-branch-config-skip-prefix' · 9cf0137b
      Junio C Hamano 提交于
      * bg/install-branch-config-skip-prefix:
        branch: use skip_prefix() in install_branch_config()
        t3200-branch: test setting branch as own upstream
      9cf0137b
    • J
      Merge branch 'jc/no-need-for-env-in-sh-scripts' · 1c18a14b
      Junio C Hamano 提交于
      * jc/no-need-for-env-in-sh-scripts:
        *.sh: drop useless use of "env"
      1c18a14b
    • J
      Merge branch 'sh/use-hashcpy' · 006f6787
      Junio C Hamano 提交于
      * sh/use-hashcpy:
        Use hashcpy() when copying object names
      006f6787
    • J
      Merge branch 'mh/simplify-cache-tree-find' · da2e0579
      Junio C Hamano 提交于
      * mh/simplify-cache-tree-find:
        cache_tree_find(): use path variable when passing over slashes
        cache_tree_find(): remove early return
        cache_tree_find(): remove redundant check
        cache_tree_find(): fix comment formatting
        cache_tree_find(): find the end of path component using strchrnul()
        cache_tree_find(): remove redundant checks
      da2e0579
    • J
      Merge branch 'jn/branch-lift-unnecessary-name-length-limit' · 6bd34241
      Junio C Hamano 提交于
      * jn/branch-lift-unnecessary-name-length-limit:
        branch.c: delete size check of newly tracked branch names
      6bd34241
    • J
      Merge branch 'jk/doc-deprecate-grafts' · c0cca589
      Junio C Hamano 提交于
      * jk/doc-deprecate-grafts:
        docs: mark info/grafts as outdated
      c0cca589
    • J
      Merge branch 'jk/detect-push-typo-early' · 9befb340
      Junio C Hamano 提交于
      Catch "git push $there no-such-branch" early.
      
      * jk/detect-push-typo-early:
        push: detect local refspec errors early
        match_explicit_lhs: allow a "verify only" mode
        match_explicit: hoist refspec lhs checks into their own function
      9befb340
    • J
      Merge branch 'jk/repack-pack-keep-objects' · 249d54b2
      Junio C Hamano 提交于
      * jk/repack-pack-keep-objects:
        repack: add `repack.packKeptObjects` config var
      249d54b2
    • J
      Merge branch 'sh/finish-tmp-packfile' · f4eec8ce
      Junio C Hamano 提交于
      * sh/finish-tmp-packfile:
        finish_tmp_packfile():use strbuf for pathname construction
      f4eec8ce
    • J
      Merge branch 'dd/use-alloc-grow' · fe9122a3
      Junio C Hamano 提交于
      Replace open-coded reallocation with ALLOC_GROW() macro.
      
      * dd/use-alloc-grow:
        sha1_file.c: use ALLOC_GROW() in pretend_sha1_file()
        read-cache.c: use ALLOC_GROW() in add_index_entry()
        builtin/mktree.c: use ALLOC_GROW() in append_to_tree()
        attr.c: use ALLOC_GROW() in handle_attr_line()
        dir.c: use ALLOC_GROW() in create_simplify()
        reflog-walk.c: use ALLOC_GROW()
        replace_object.c: use ALLOC_GROW() in register_replace_object()
        patch-ids.c: use ALLOC_GROW() in add_commit()
        diffcore-rename.c: use ALLOC_GROW()
        diff.c: use ALLOC_GROW()
        commit.c: use ALLOC_GROW() in register_commit_graft()
        cache-tree.c: use ALLOC_GROW() in find_subtree()
        bundle.c: use ALLOC_GROW() in add_to_ref_list()
        builtin/pack-objects.c: use ALLOC_GROW() in check_pbase_path()
      fe9122a3
    • J
      Merge branch 'dd/find-graft-with-sha1-pos' · a8e1d711
      Junio C Hamano 提交于
      Replace a hand-rolled binary search with a call to our generic
      binary search helper function.
      
      * dd/find-graft-with-sha1-pos:
        commit.c: use the generic "sha1_pos" function for lookup
      a8e1d711
    • J
      Merge branch 'fc/transport-helper-fixes' · 90e6255a
      Junio C Hamano 提交于
      Updates transport-helper, fast-import and fast-export to allow the
      ref mapping and ref deletion in a way similar to the natively
      supported transports.
      
      * fc/transport-helper-fixes:
        remote-bzr: support the new 'force' option
        test-hg.sh: tests are now expected to pass
        transport-helper.c: do not overwrite forced bit
        transport-helper: check for 'forced update' message
        transport-helper: add 'force' to 'export' helpers
        transport-helper: don't update refs in dry-run
        transport-helper: mismerge fix
      90e6255a
    • J
      Merge branch 'nd/sha1-file-delta-stack-leakage-fix' · decba94d
      Junio C Hamano 提交于
      Fix a small leak in the delta stack used when resolving a long
      delta chain at runtime.
      
      * nd/sha1-file-delta-stack-leakage-fix:
        sha1_file: fix delta_stack memory leak in unpack_entry
      decba94d
    • J
      Merge branch 'jk/diff-filespec-cleanup' · 9b347673
      Junio C Hamano 提交于
      Portability fix to a topic already in v1.9
      
      * jk/diff-filespec-cleanup:
        diffcore.h: be explicit about the signedness of is_binary
      9b347673