1. 09 9月, 2016 10 次提交
    • J
      Merge branch 'sb/checkout-explit-detach-no-advice' into maint · 7c964719
      Junio C Hamano 提交于
      "git checkout --detach <branch>" used to give the same advice
      message as that is issued when "git checkout <tag>" (or anything
      that is not a branch name) is given, but asking with "--detach" is
      an explicit enough sign that the user knows what is going on.  The
      advice message has been squelched in this case.
      
      * sb/checkout-explit-detach-no-advice:
        checkout: do not mention detach advice for explicit --detach option
      7c964719
    • J
      Merge branch 'rs/pull-signed-tag' into maint · 69307312
      Junio C Hamano 提交于
      When "git merge-recursive" works on history with many criss-cross
      merges in "verbose" mode, the names the command assigns to the
      virtual merge bases could have overwritten each other by unintended
      reuse of the same piece of memory.
      
      * rs/pull-signed-tag:
        commit: use FLEX_ARRAY in struct merge_remote_desc
        merge-recursive: fix verbose output for multiple base trees
        commit: factor out set_merge_remote_desc()
        commit: use xstrdup() in get_merge_parent()
      69307312
    • J
      Merge branch 'js/test-lint-pathname' into maint · 86df11b1
      Junio C Hamano 提交于
      The "t/" hierarchy is prone to get an unusual pathname; "make test"
      has been taught to make sure they do not contain paths that cannot
      be checked out on Windows (and the mechanism can be reusable to
      catch pathnames that are not portable to other platforms as need
      arises).
      
      * js/test-lint-pathname:
        t/Makefile: ensure that paths are valid on platforms we care
      86df11b1
    • J
      Merge branch 'js/mv-dir-to-new-directory' into maint · 8e7c580e
      Junio C Hamano 提交于
      "git mv dir non-existing-dir/" did not work in some environments
      the same way as existing mainstream platforms.  The code now moves
      "dir" to "non-existing-dir", without relying on rename("A", "B/")
      that strips the trailing slash of '/'.
      
      * js/mv-dir-to-new-directory:
        git mv: do not keep slash in `git mv dir non-existing-dir/`
      8e7c580e
    • J
      Merge branch 'js/import-tars-hardlinks' into maint · 5e09f1dd
      Junio C Hamano 提交于
      "import-tars" fast-import script (in contrib/) used to ignore a
      hardlink target and replaced it with an empty file, which has been
      corrected to record the same blob as the other file the hardlink is
      shared with.
      
      * js/import-tars-hardlinks:
        import-tars: support hard links
      5e09f1dd
    • J
      Merge branch 'ms/document-pack-window-memory-is-per-thread' into maint · c343e491
      Junio C Hamano 提交于
      * ms/document-pack-window-memory-is-per-thread:
        document git-repack interaction of pack.threads and pack.windowMemory
      c343e491
    • J
      Merge branch 'jk/push-force-with-lease-creation' into maint · f34d900a
      Junio C Hamano 提交于
      "git push --force-with-lease" already had enough logic to allow
      ensuring that such a push results in creation of a ref (i.e. the
      receiving end did not have another push from sideways that would be
      discarded by our force-pushing), but didn't expose this possibility
      to the users.  It does so now.
      
      * jk/push-force-with-lease-creation:
        t5533: make it pass on case-sensitive filesystems
        push: allow pushing new branches with --force-with-lease
        push: add shorthand for --force-with-lease branch creation
        Documentation/git-push: fix placeholder formatting
      f34d900a
    • J
      Merge branch 'jk/reflog-date' into maint · f59c6e6c
      Junio C Hamano 提交于
      The reflog output format is documented better, and a new format
      --date=unix to report the seconds-since-epoch (without timezone)
      has been added.
      
      * jk/reflog-date:
        date: clarify --date=raw description
        date: add "unix" format
        date: document and test "raw-local" mode
        doc/pretty-formats: explain shortening of %gd
        doc/pretty-formats: describe index/time formats for %gd
        doc/rev-list-options: explain "-g" output formats
        doc/rev-list-options: clarify "commit@{Nth}" for "-g" option
      f59c6e6c
    • J
      Merge branch 'jc/renormalize-merge-kill-safer-crlf' into maint · 7f5885ad
      Junio C Hamano 提交于
      "git merge" with renormalization did not work well with
      merge-recursive, due to "safer crlf" conversion kicking in when it
      shouldn't.
      
      * jc/renormalize-merge-kill-safer-crlf:
        merge: avoid "safer crlf" during recording of merge results
        convert: unify the "auto" handling of CRLF
      7f5885ad
    • J
      Merge branch 'jk/common-main' into maint · faacc8ef
      Junio C Hamano 提交于
      There are certain house-keeping tasks that need to be performed at
      the very beginning of any Git program, and programs that are not
      built-in commands had to do them exactly the same way as "git"
      potty does.  It was easy to make mistakes in one-off standalone
      programs (like test helpers).  A common "main()" function that
      calls cmd_main() of individual program has been introduced to
      make it harder to make mistakes.
      
      * jk/common-main:
        mingw: declare main()'s argv as const
        common-main: call git_setup_gettext()
        common-main: call restore_sigpipe_to_default()
        common-main: call sanitize_stdfds()
        common-main: call git_extract_argv0_path()
        add an extra level of indirection to main()
      faacc8ef
  2. 17 8月, 2016 1 次提交
    • J
      t/Makefile: ensure that paths are valid on platforms we care · c2cafd39
      Johannes Schindelin 提交于
      Some pathnames that are okay on ext4 and on HFS+ cannot be checked
      out on Windows. Tests that want to see operations on such paths on
      filesystems that support them must do so behind appropriate test
      prerequisites, and must not include them in the source tree (instead
      they should create them when they run). Otherwise, the source tree
      cannot even be checked out.
      
      Make sure that double-quotes, asterisk, colon, greater/less-than,
      question-mark, backslash, tab, vertical-bar, as well as any non-ASCII
      characters never appear in the pathnames with a new test-lint-* target
      as part of a `make test`. To that end, we call `git ls-files` (ensuring
      that the paths are quoted properly), relying on the fact that paths
      containing non-ASCII characters are quoted within double-quotes.
      
      In case that the source code does not actually live in a Git
      repository (e.g. when extracted from a .zip file), or that the `git`
      executable cannot be executed, we simply ignore the error for now; In
      that case, our trusty Continuous Integration will be the last line of
      defense and catch any problematic file name.
      
      Noticed when a topic wanted to add a pathname with '>' in it.  A
      check like this will prevent a similar problems from happening in the
      future.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c2cafd39
  3. 16 8月, 2016 1 次提交
  4. 14 8月, 2016 4 次提交
  5. 13 8月, 2016 3 次提交
    • J
      Git 2.9.3 · e0c1ceaf
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e0c1ceaf
    • J
      Merge branch 'jk/difftool-in-subdir' into maint · 9b601eaf
      Junio C Hamano 提交于
      "git difftool <paths>..." started in a subdirectory failed to
      interpret the paths relative to that directory, which has been
      fixed.
      
      * jk/difftool-in-subdir:
        difftool: use Git::* functions instead of passing around state
        difftool: avoid $GIT_DIR and $GIT_WORK_TREE
        difftool: fix argument handling in subdirs
      9b601eaf
    • J
      Merge branch 'jk/reset-ident-time-per-commit' into maint · f4fd6276
      Junio C Hamano 提交于
      Not-so-recent rewrite of "git am" that started making internal
      calls into the commit machinery had an unintended regression, in
      that no matter how many seconds it took to apply many patches, the
      resulting committer timestamp for the resulting commits were all
      the same.
      
      * jk/reset-ident-time-per-commit:
        am: reset cached ident date for each patch
      f4fd6276
  6. 11 8月, 2016 21 次提交
    • J
      Yet another batch for 2.9.3 · 8e4b75a9
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8e4b75a9
    • J
      Merge branch 'jh/clean-smudge-f-doc' into maint · 019d8a40
      Junio C Hamano 提交于
      A minor documentation update.
      
      This was split out from a stalled jh/clean-smudge-annex topic
      before discarding it.
      
      * jh/clean-smudge-f-doc:
        clarify %f documentation
      019d8a40
    • J
      Merge branch 'rs/use-strbuf-addstr' into maint · 574a31b5
      Junio C Hamano 提交于
      * rs/use-strbuf-addstr:
        use strbuf_addstr() instead of strbuf_addf() with "%s"
        use strbuf_addstr() for adding constant strings to a strbuf
      574a31b5
    • J
      Merge branch 'cp/completion-clone-recurse-submodules' into maint · 9a54075c
      Junio C Hamano 提交于
      * cp/completion-clone-recurse-submodules:
        completion: add option '--recurse-submodules' to 'git clone'
      9a54075c
    • J
      Merge branch 'jk/t4205-cleanup' into maint · 66d6511c
      Junio C Hamano 提交于
      Test modernization.
      
      * jk/t4205-cleanup:
        t4205: indent here documents
        t4205: drop top-level &&-chaining
      66d6511c
    • J
      Merge branch 'jc/hashmap-doc-init' into maint · 33481c1e
      Junio C Hamano 提交于
      The API documentation for hashmap was unclear if hashmap_entry
      can be safely discarded without any other consideration.  State
      that it is safe to do so.
      
      * jc/hashmap-doc-init:
        hashmap: clarify that hashmap_entry can safely be discarded
      33481c1e
    • J
      Merge branch 'js/nedmalloc-gcc6-warnings' into maint · 05a6d0e9
      Junio C Hamano 提交于
      Squelch compiler warnings for netmalloc (in compat/) library.
      
      * js/nedmalloc-gcc6-warnings:
        nedmalloc: work around overzealous GCC 6 warning
        nedmalloc: fix misleading indentation
      05a6d0e9
    • J
      Merge branch 'nd/fbsd-lazy-mtime' into maint · f7fb6e21
      Junio C Hamano 提交于
      FreeBSD can lie when asked mtime of a directory, which made the
      untracked cache code to fall back to a slow-path, which in turn
      caused tests in t7063 to fail because it wanted to verify the
      behaviour of the fast-path.
      
      * nd/fbsd-lazy-mtime:
        t7063: work around FreeBSD's lazy mtime update feature
      f7fb6e21
    • J
      Merge branch 'ab/gitweb-link-html-escape' into maint · 1dc4aa67
      Junio C Hamano 提交于
      The characters in the label shown for tags/refs for commits in
      "gitweb" output are now properly escaped for proper HTML output.
      
      * ab/gitweb-link-html-escape:
        gitweb: escape link body in format_ref_marker
      1dc4aa67
    • J
      Merge branch 'js/t4130-rename-without-ino' into maint · 85b2ea29
      Junio C Hamano 提交于
      Windows port was failing some tests in t4130, due to the lack of
      inum in the returned values by its lstat(2) emulation.
      
      * js/t4130-rename-without-ino:
        t4130: work around Windows limitation
      85b2ea29
    • J
      Merge branch 'jc/grep-commandline-vs-configuration' into maint · 7b163e91
      Junio C Hamano 提交于
      "git -c grep.patternType=extended log --basic-regexp" misbehaved
      because the internal API to access the grep machinery was not
      designed well.
      
      * jc/grep-commandline-vs-configuration:
        grep: further simplify setting the pattern type
      7b163e91
    • J
      Merge branch 'jk/diff-do-not-reuse-wtf-needs-cleaning' into maint · cee6c5b4
      Junio C Hamano 提交于
      There is an optimization used in "git diff $treeA $treeB" to borrow
      an already checked-out copy in the working tree when it is known to
      be the same as the blob being compared, expecting that open/mmap of
      such a file is faster than reading it from the object store, which
      involves inflating and applying delta.  This however kicked in even
      when the checked-out copy needs to go through the convert-to-git
      conversion (including the clean filter), which defeats the whole
      point of the optimization.  The optimization has been disabled when
      the conversion is necessary.
      
      * jk/diff-do-not-reuse-wtf-needs-cleaning:
        diff: do not reuse worktree files that need "clean" conversion
      cee6c5b4
    • J
      Merge branch 'pm/build-persistent-https-with-recent-go' into maint · d1d9c3cc
      Junio C Hamano 提交于
      The build procedure for "git persistent-https" helper (in contrib/)
      has been updated so that it can be built with more recent versions
      of Go.
      
      * pm/build-persistent-https-with-recent-go:
        contrib/persistent-https: use Git version for build label
        contrib/persistent-https: update ldflags syntax for Go 1.7+
      d1d9c3cc
    • J
      Merge branch 'da/subtree-2.9-regression' into maint · 366d2d5f
      Junio C Hamano 提交于
      "git merge" in Git v2.9 was taught to forbid merging an unrelated
      lines of history by default, but that is exactly the kind of thing
      the "--rejoin" mode of "git subtree" (in contrib/) wants to do.
      "git subtree" has been taught to use the "--allow-unrelated-histories"
      option to override the default.
      
      * da/subtree-2.9-regression:
        subtree: fix "git subtree split --rejoin"
        t7900-subtree.sh: fix quoting and broken && chains
      366d2d5f
    • J
      Merge branch 'os/no-verify-skips-commit-msg-too' into maint · d9d7ab3b
      Junio C Hamano 提交于
      "git commit --help" said "--no-verify" is only about skipping the
      pre-commit hook, and failed to say that it also skipped the
      commit-msg hook.
      
      * os/no-verify-skips-commit-msg-too:
        commit: describe that --no-verify skips the commit-msg hook in the help text
      d9d7ab3b
    • J
      Merge branch 'rs/rm-strbuf-optim' into maint · b7fb136b
      Junio C Hamano 提交于
      The use of strbuf in "git rm" to build filename to remove was a bit
      suboptimal, which has been fixed.
      
      * rs/rm-strbuf-optim:
        rm: reuse strbuf for all remove_dir_recursively() calls
      b7fb136b
    • J
      Merge branch 'jk/parse-options-concat' into maint · 60b84ba2
      Junio C Hamano 提交于
      Users of the parse_options_concat() API function need to allocate
      extra slots in advance and fill them with OPT_END() when they want
      to decide the set of supported options dynamically, which makes the
      code error-prone and hard to read.  This has been corrected by tweaking
      the API to allocate and return a new copy of "struct option" array.
      
      * jk/parse-options-concat:
        parse_options: allocate a new array when concatenating
      60b84ba2
    • J
      Merge branch 'ls/travis-enable-httpd-tests' into maint · dbc5276f
      Junio C Hamano 提交于
      Allow http daemon tests in Travis CI tests.
      
      * ls/travis-enable-httpd-tests:
        travis-ci: enable web server tests t55xx on Linux
      dbc5276f
    • J
      Merge branch 'ew/autoconf-pthread' into maint · f98a20c5
      Junio C Hamano 提交于
      Existing autoconf generated test for the need to link with pthread
      library did not check all the functions from pthread libraries;
      recent FreeBSD has some functions in libc but not others, and we
      mistakenly thought linking with libc is enough when it is not.
      
      * ew/autoconf-pthread:
        configure.ac: stronger test for pthread linkage
      f98a20c5
    • J
      Merge branch 'rs/help-c-source-with-gitattributes' into maint · e223c2c7
      Junio C Hamano 提交于
      The .c/.h sources are marked as such in our .gitattributes file so
      that "git diff -W" and friends would work better.
      
      * rs/help-c-source-with-gitattributes:
        .gitattributes: set file type for C files
      e223c2c7
    • J
      Merge branch 'mm/status-suggest-merge-abort' into maint · 61efc5c2
      Junio C Hamano 提交于
      "git status" learned to suggest "merge --abort" during a conflicted
      merge, just like it already suggests "rebase --abort" during a
      conflicted rebase.
      
      * mm/status-suggest-merge-abort:
        status: suggest 'git merge --abort' when appropriate
      61efc5c2