1. 30 6月, 2018 1 次提交
    • J
      Makefile: fix the "built from commit" code · 5cf8e064
      Johannes Schindelin 提交于
      In ed32b788 (version --build-options: report commit, too, if
      possible, 2017-12-15), we introduced code to let `git version
      --build-options` report the current commit from which the binaries were
      built, if any.
      
      To prevent erroneous commits from being reported (e.g. when unpacking
      Git's source code from a .tar.gz file into a subdirectory of a different
      Git project, as e.g. git_osx_installer does), we painstakingly set
      GIT_CEILING_DIRECTORIES when trying to determine the current commit.
      
      Except that we got the quoting wrong, and that variable therefore does
      not have the desired effect.
      
      The issue is that the $(shell) is resolved before the output is stuffed
      into the command-line with -DGIT_BUILT_FROM_COMMIT, and therefore is
      *not* inside quotes. And thus backslashing the quotes is wrong, as the
      quote gets literally inserted into the CEILING_DIRECTORIES variable.
      
      Let's fix that quoting, and while at it, also suppress the unhelpful
      message
      
      fatal: not a git repository (or any of the parent directories): .git
      
      that gets printed to stderr if no current commit could be determined,
      and might scare the occasional developer who simply tries to build Git
      from scratch.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Helped-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5cf8e064
  2. 15 12月, 2017 3 次提交
  3. 14 12月, 2017 14 次提交
    • J
      RelNotes: the ninth batch · d9a3764a
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d9a3764a
    • J
      Merge branch 'js/hashmap-update-sample' · d9195982
      Junio C Hamano 提交于
      Code comment update.
      
      * js/hashmap-update-sample:
        hashmap: adjust documentation to reflect reality
      d9195982
    • J
      Merge branch 'en/remove-stripspace' · 37cba004
      Junio C Hamano 提交于
      An internal function that was left for backward compatibility has
      been removed, as there is no remaining callers.
      
      * en/remove-stripspace:
        strbuf: remove unused stripspace function alias
      37cba004
    • J
      Merge branch 'jk/no-optional-locks' · e6bf6afe
      Junio C Hamano 提交于
      Doc update for a feature available in Git v2.14 and upwards.
      
      * jk/no-optional-locks:
        git-status.txt: mention --no-optional-locks
      e6bf6afe
    • J
      Merge branch 'ds/for-each-file-in-obj-micro-optim' · 97e1f857
      Junio C Hamano 提交于
      The code to iterate over loose object files got optimized.
      
      * ds/for-each-file-in-obj-micro-optim:
        sha1_file: use strbuf_add() instead of strbuf_addf()
      97e1f857
    • J
      Merge branch 'jk/progress-delay-fix' · 36ddee94
      Junio C Hamano 提交于
      A regression in the progress eye-candy was fixed.
      
      * jk/progress-delay-fix:
        progress: drop delay-threshold code
        progress: set default delay threshold to 100%, not 0%
      36ddee94
    • J
      Merge branch 'ks/doc-checkout-previous' · 70656652
      Junio C Hamano 提交于
      @{-N} in "git checkout @{-N}" may refer to a detached HEAD state,
      but the documentation was not clear about it, which has been fixed.
      
      * ks/doc-checkout-previous:
        Doc/checkout: checking out using @{-N} can lead to detached state
      70656652
    • J
      Merge branch 'fk/sendmail-from-path' · 577051bc
      Junio C Hamano 提交于
      "git send-email" tries to see if the sendmail program is available
      in /usr/lib and /usr/sbin; extend the list of locations to be
      checked to also include directories on $PATH.
      
      * fk/sendmail-from-path:
        git-send-email: honor $PATH for sendmail binary
      577051bc
    • J
      Merge branch 'tg/t-readme-updates' · d22512e0
      Junio C Hamano 提交于
      Developer doc updates.
      
      * tg/t-readme-updates:
        t/README: document test_cmp_rev
        t/README: remove mention of adding copyright notices
      d22512e0
    • J
      Merge branch 'pc/submodule-helper' · 41a05ee3
      Junio C Hamano 提交于
      A message fix.
      
      * pc/submodule-helper:
        submodule--helper.c: i18n: add a missing space in message
      41a05ee3
    • J
      Merge branch 'jc/receive-pack-hook-doc' · e49ac110
      Junio C Hamano 提交于
      Doc update.
      
      * jc/receive-pack-hook-doc:
        hooks doc: clarify when receive-pack invokes its hooks
      e49ac110
    • J
      Merge branch 'ab/pcre2-grep' · b3f04e5b
      Junio C Hamano 提交于
      "git grep" compiled with libpcre2 sometimes triggered a segfault,
      which is being fixed.
      
      * ab/pcre2-grep:
        grep: fix segfault under -P + PCRE2 <=10.30 + (*NO_JIT)
        test-lib: add LIBPCRE1 & LIBPCRE2 prerequisites
      b3f04e5b
    • J
      Merge branch 'ra/decorate-limit-refs' · 6c3daa23
      Junio C Hamano 提交于
      The tagnames "git log --decorate" uses to annotate the commits can
      now be limited to subset of available refs with the two additional
      options, --decorate-refs[-exclude]=<pattern>.
      
      * ra/decorate-limit-refs:
        log: add option to choose which refs to decorate
      6c3daa23
    • J
      Merge branch 'bc/hash-algo' · 721cc431
      Junio C Hamano 提交于
      An infrastructure to define what hash function is used in Git is
      introduced, and an effort to plumb that throughout various
      codepaths has been started.
      
      * bc/hash-algo:
        repository: fix a sparse 'using integer as NULL pointer' warning
        Switch empty tree and blob lookups to use hash abstraction
        Integrate hash algorithm support with repo setup
        Add structure representing hash algorithm
        setup: expose enumerated repo info
      721cc431
  4. 07 12月, 2017 22 次提交
    • J
      RelNotes: the eighth batch · 95ec6b1b
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      95ec6b1b
    • J
      Sync with maint · 3b136a71
      Junio C Hamano 提交于
      3b136a71
    • J
      Merge branch 'jn/ssh-wrappers' · ef470364
      Junio C Hamano 提交于
      The ssh-variant 'simple' introduced earlier broke existing
      installations by not passing --port/-4/-6 and not diagnosing an
      attempt to pass these as an error.  Instead, default to
      automatically detect how compatible the GIT_SSH/GIT_SSH_COMMAND is
      to OpenSSH convention and then error out an invocation to make it
      easier to diagnose connection errors.
      
      * jn/ssh-wrappers:
        connect: correct style of C-style comment
        ssh: 'simple' variant does not support --port
        ssh: 'simple' variant does not support -4/-6
        ssh: 'auto' variant to select between 'ssh' and 'simple'
        connect: split ssh option computation to its own function
        connect: split ssh command line options into separate function
        connect: split git:// setup into a separate function
        connect: move no_fork fallback to git_tcp_connect
        ssh test: make copy_ssh_wrapper_as clean up after itself
      ef470364
    • J
      Merge branch 'bw/protocol-v1' · 4c6dad00
      Junio C Hamano 提交于
      A new mechanism to upgrade the wire protocol in place is proposed
      and demonstrated that it works with the older versions of Git
      without harming them.
      
      * bw/protocol-v1:
        Documentation: document Extra Parameters
        ssh: introduce a 'simple' ssh variant
        i5700: add interop test for protocol transition
        http: tell server that the client understands v1
        connect: tell server that the client understands v1
        connect: teach client to recognize v1 server response
        upload-pack, receive-pack: introduce protocol version 1
        daemon: recognize hidden request arguments
        protocol: introduce protocol extension mechanisms
        pkt-line: add packet_write function
        connect: in ref advertisement, shallows are last
      4c6dad00
    • J
      Merge branch 'sp/doc-info-attributes' · f65ab574
      Junio C Hamano 提交于
      Doc update.
      
      * sp/doc-info-attributes:
        doc: Mention info/attributes in gitrepository-layout
      f65ab574
    • J
      Merge branch 'ph/stash-save-m-option-fix' · 714485c7
      Junio C Hamano 提交于
      In addition to "git stash -m message", the command learned to
      accept "git stash -mmessage" form.
      
      * ph/stash-save-m-option-fix:
        stash: learn to parse -m/--message like commit does
      714485c7
    • J
      Merge branch 'jk/fewer-pack-rescan' · 79bafd23
      Junio C Hamano 提交于
      Internaly we use 0{40} as a placeholder object name to signal the
      codepath that there is no such object (e.g. the fast-forward check
      while "git fetch" stores a new remote-tracking ref says "we know
      there is no 'old' thing pointed at by the ref, as we are creating
      it anew" by passing 0{40} for the 'old' side), and expect that a
      codepath to locate an in-core object to return NULL as a sign that
      the object does not exist.  A look-up for an object that does not
      exist however is quite costly with a repository with large number
      of packfiles.  This access pattern has been optimized.
      
      * jk/fewer-pack-rescan:
        sha1_file: fast-path null sha1 as a missing object
        everything_local: use "quick" object existence check
        p5551: add a script to test fetch pack-dir rescans
        t/perf/lib-pack: use fast-import checkpoint to create packs
        p5550: factor out nonsense-pack creation
      79bafd23
    • J
      Merge branch 'tg/deprecate-stash-save' · 4ca10aa8
      Junio C Hamano 提交于
      Doc update.
      
      * tg/deprecate-stash-save:
        doc: prefer 'stash push' over 'stash save'
      4ca10aa8
    • J
      Merge branch 'rd/doc-notes-prune-fix' · 5b5710ef
      Junio C Hamano 提交于
      Doc update.
      
      * rd/doc-notes-prune-fix:
        notes: correct 'git notes prune' options to '[-n] [-v]'
      5b5710ef
    • J
      Merge branch 'rd/man-reflog-add-n' · 24065b82
      Junio C Hamano 提交于
      Doc update.
      
      * rd/man-reflog-add-n:
        doc: add missing "-n" (dry-run) option to reflog man page
      24065b82
    • J
      Merge branch 'rd/man-prune-progress' · c3d2d34f
      Junio C Hamano 提交于
      Doc update.
      
      * rd/man-prune-progress:
        prune: add "--progress" to man page and usage msg
      c3d2d34f
    • J
      Merge branch 'jt/submodule-tests-cleanup' · e8b96bd0
      Junio C Hamano 提交于
      Further test clean-up.
      
      * jt/submodule-tests-cleanup:
        Tests: clean up submodule recursive helpers
      e8b96bd0
    • J
      Merge branch 'jn/reproducible-build' · 3fea5c59
      Junio C Hamano 提交于
      The build procedure has been taught to avoid some unnecessary
      instability in the build products.
      
      * jn/reproducible-build:
        generate-cmdlist: avoid non-deterministic output
        git-gui: sort entries in optimized tclIndex
      3fea5c59
    • J
      Merge branch 'cc/git-packet-pm' · b16488eb
      Junio C Hamano 提交于
      Code clean-up.
      
      * cc/git-packet-pm:
        Git/Packet.pm: use 'if' instead of 'unless'
        Git/Packet: clarify that packet_required_key_val_read allows EOF
      b16488eb
    • J
      Merge branch 'ac/complete-pull-autostash' · 00bcc350
      Junio C Hamano 提交于
      The shell completion (in contrib/) learned that "git pull" can take
      the "--autostash" option.
      
      * ac/complete-pull-autostash:
        completion: add --autostash and --no-autostash to pull
      00bcc350
    • J
      Merge branch 'hm/config-parse-expiry-date' · 6cddb736
      Junio C Hamano 提交于
      "git config --expiry-date gc.reflogexpire" can read "2.weeks" from
      the configuration and report it as a timestamp, just like "--int"
      would read "1k" and report 1024, to help consumption by scripts.
      
      * hm/config-parse-expiry-date:
        config: add --expiry-date
      6cddb736
    • J
      Merge branch 'tz/branch-doc-remove-set-upstream' · 0186e9eb
      Junio C Hamano 提交于
      "git branch --set-upstream" has been deprecated and (sort of)
      removed, as "--set-upstream-to" is the preferred one these days.
      The documentation still had "--set-upstream" listed on its
      synopsys section, which has been corrected.
      
      * tz/branch-doc-remove-set-upstream:
        branch doc: remove --set-upstream from synopsis
      0186e9eb
    • J
      Merge branch 'cc/perf-run-config' · 7102541a
      Junio C Hamano 提交于
      * cc/perf-run-config:
        perf: store subsection results in "test-results/$GIT_PERF_SUBSECTION/"
        perf/run: show name of rev being built
        perf/run: add run_subsection()
        perf/run: update get_var_from_env_or_config() for subsections
        perf/run: add get_subsections()
        perf/run: add calls to get_var_from_env_or_config()
        perf/run: add GIT_PERF_DIRS_OR_REVS
        perf/run: add get_var_from_env_or_config()
        perf/run: add '--config' option to the 'run' script
      7102541a
    • J
      Merge branch 'sb/submodule-recursive-checkout-detach-head' · 0b75572a
      Junio C Hamano 提交于
      "git checkout --recursive" may overwrite and rewind the history of
      the branch that happens to be checked out in submodule
      repositories, which might not be desirable.  Detach the HEAD but
      still allow the recursive checkout to succeed in such a case.
      
      * sb/submodule-recursive-checkout-detach-head:
        Documentation/checkout: clarify submodule HEADs to be detached
        recursive submodules: detach HEAD from new state
      0b75572a
    • J
      Prepare for 2.15.2 · 3013dff8
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3013dff8
    • J
      Merge branch 'jc/merge-base-fork-point-doc' into maint · 03d4bc1e
      Junio C Hamano 提交于
      Clarify and enhance documentation for "merge-base --fork-point", as
      it was clear what it computed but not why/what for.
      
      * jc/merge-base-fork-point-doc:
        merge-base --fork-point doc: clarify the example and failure modes
      03d4bc1e
    • J
      Merge branch 'tz/redirect-fix' into maint · ce732090
      Junio C Hamano 提交于
      A few scripts (both in production and tests) incorrectly redirected
      their error output.  These have been corrected.
      
      * tz/redirect-fix:
        rebase: fix stderr redirect in apply_autostash()
        t/lib-gpg: fix gpgconf stderr redirect to /dev/null
      ce732090