1. 14 7月, 2015 1 次提交
    • M
      fast-import: do less work when given "from" matches current branch head · 0df32457
      Mike Hommey 提交于
      When building a fast-import stream, it's easy to forget the fact
      that for non-merge commits happening on top of the current branch
      head, there is no need for a "from" command. That is corroborated by
      the fact that at least git-p4, hg-fast-export and felipec's
      git-remote-hg all unconditionally use a "from" command.
      
      Unfortunately, giving a "from" command always resets the branch
      tree, forcing it to be re-read, and in many cases, the pack is also
      closed and reopened through gfi_unpack_entry.  Both are unnecessary
      overhead, and the latter is particularly slow at least on OSX.
      
      Avoid resetting the tree when it's unmodified, and avoid calling
      gfi_unpack_entry when the given mark points to the same commit as
      the current branch head.
      Signed-off-by: NMike Hommey <mh@glandium.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0df32457
  2. 26 6月, 2015 15 次提交
  3. 25 6月, 2015 24 次提交
    • C
      cvsimport: silence regex warning appearing in Perl 5.22. · 16272c7d
      Christian Neukirchen 提交于
      Since Perl 5.22, "A literal '{' should now be escaped in a pattern".
      Silence the recently added warning by using \{ instead.
      Signed-off-by: NChristian Neukirchen <chneukirchen@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      16272c7d
    • C
      Fix definition of ARRAY_SIZE for non-gcc builds · e2c6f7cd
      Charles Bailey 提交于
      The improved ARRAY_SIZE macro uses BARF_UNLESS_AN_ARRAY which expands
      to a valid check for recent gcc versions and to 0 for older gcc
      versions but is not defined on non-gcc builds.
      
      Non-gcc builds need this macro to expand to 0 as well. The current outer
      test (defined(__GNUC__) && (__GNUC__ >= 3)) is a strictly weaker
      condition than the inner test (GIT_GNUC_PREREQ(3, 1)) so we can omit the
      outer test and cause the BARF_UNLESS_AN_ARRAY macro to be defined
      correctly on non-gcc builds as well as gcc builds with older versions.
      Signed-off-by: NCharles Bailey <cbailey32@bloomberg.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e2c6f7cd
    • J
      Ninth batch for 2.5 · df97e5df
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      df97e5df
    • J
      Merge branch 'jk/stash-require-clean-index' · bfb539bb
      Junio C Hamano 提交于
      A hotfix for the topic already in 'master'.
      
      * jk/stash-require-clean-index:
        Revert "stash: require a clean index to apply"
      bfb539bb
    • J
      Merge branch 'pa/auto-gc-mac-osx' · 3072ec39
      Junio C Hamano 提交于
      Recent Mac OS X updates breaks the logic to detect that the machine
      is on the AC power in the sample pre-auto-gc script.
      
      * pa/auto-gc-mac-osx:
        hooks/pre-auto-gc: adjust power checking for newer OS X
      3072ec39
    • J
      Merge branch 'pt/t0302-needs-sanity' · b3689ce3
      Junio C Hamano 提交于
      * pt/t0302-needs-sanity:
        t0302: "unreadable" test needs SANITY prereq
      b3689ce3
    • J
      Merge branch 'ld/p4-changes-block-size' · b79bbed1
      Junio C Hamano 提交于
      More Perforce row number limit workaround for "git p4".
      
      * ld/p4-changes-block-size:
        git-p4: fixing --changes-block-size handling
        git-p4: add tests for non-numeric revision range
        git-p4: test with limited p4 server results
        git-p4: additional testing of --changes-block-size
      b79bbed1
    • J
      Merge branch 'fk/doc-format-patch-vn' · 61461791
      Junio C Hamano 提交于
      Docfix.
      
      * fk/doc-format-patch-vn:
        doc: format-patch: fix typo
      61461791
    • J
      Merge branch 'sg/commit-cleanup-scissors' · 07528be1
      Junio C Hamano 提交于
      "git commit --cleanup=scissors" was not careful enough to protect
      against getting fooled by a line that looked like scissors.
      
      * sg/commit-cleanup-scissors:
        commit: cope with scissors lines in commit message
      07528be1
    • J
      Merge branch 'jk/index-pack-reduce-recheck' · 712b351b
      Junio C Hamano 提交于
      Disable "have we lost a race with competing repack?" check while
      receiving a huge object transfer that runs index-pack.
      
      * jk/index-pack-reduce-recheck:
        index-pack: avoid excessive re-reading of pack directory
      712b351b
    • J
      Merge branch 'af/tcsh-completion-noclobber' · c595cb9c
      Junio C Hamano 提交于
      The tcsh completion writes a bash scriptlet but that would have
      failed for users with noclobber set.
      
      * af/tcsh-completion-noclobber:
        git-completion.tcsh: fix redirect with noclobber
      c595cb9c
    • J
      Merge branch 'mh/reporting-broken-refs-from-for-each-ref' · 9d71c5f4
      Junio C Hamano 提交于
      "git for-each-ref" reported "missing object" for 0{40} when it
      encounters a broken ref.  The lack of object whose name is 0{40} is
      not the problem; the ref being broken is.
      
      * mh/reporting-broken-refs-from-for-each-ref:
        read_loose_refs(): treat NULL_SHA1 loose references as broken
        read_loose_refs(): simplify function logic
        for-each-ref: report broken references correctly
        t6301: new tests of for-each-ref error handling
      9d71c5f4
    • J
      Merge branch 'sg/completion-commit-cleanup' · 54a17cdb
      Junio C Hamano 提交于
      * sg/completion-commit-cleanup:
        completion: teach 'scissors' mode to 'git commit --cleanup='
      54a17cdb
    • J
      Merge branch 'pt/am-abort-fix' · ce5e3383
      Junio C Hamano 提交于
      Various fixes around "git am" that applies a patch to a history
      that is not there yet.
      
      * pt/am-abort-fix:
        am --abort: keep unrelated commits on unborn branch
        am --abort: support aborting to unborn branch
        am --abort: revert changes introduced by failed 3way merge
        am --skip: support skipping while on unborn branch
        am -3: support 3way merge on unborn branch
        am --skip: revert changes introduced by failed 3way merge
      ce5e3383
    • J
      Merge branch 'nd/untracked-cache' · 6f59058e
      Junio C Hamano 提交于
      Hotfix for the 'untracked-cache' topic that is already in 'master'.
      
      * nd/untracked-cache:
        read-cache: fix untracked cache invalidation when split-index is used
      6f59058e
    • J
      Merge branch 'mh/fsck-reflog-entries' · 8f61ccf1
      Junio C Hamano 提交于
      "git fsck" used to ignore missing or invalid objects recorded in reflog.
      
      * mh/fsck-reflog-entries:
        fsck: report errors if reflog entries point at invalid objects
        fsck_handle_reflog_sha1(): new function
      8f61ccf1
    • J
      Merge branch 'js/sleep-without-select' · 510ab3f3
      Junio C Hamano 提交于
      Portability fix.
      
      * js/sleep-without-select:
        lockfile: wait using sleep_millisec() instead of select()
        lockfile: convert retry timeout computations to millisecond
        help.c: wrap wait-only poll() invocation in sleep_millisec()
        lockfile: replace random() by rand()
      510ab3f3
    • J
      Merge branch 'es/utf8-stupid-compiler-workaround' · 5d24b109
      Junio C Hamano 提交于
      A compilation workaround.
      
      * es/utf8-stupid-compiler-workaround:
        utf8: NO_ICONV: silence uninitialized variable warning
      5d24b109
    • J
      Merge branch 'rl/am-3way-config' · 4b64c8a1
      Junio C Hamano 提交于
      "git am" learned am.threeWay configuration variable.
      
      * rl/am-3way-config:
        git-am: add am.threeWay config variable
        t4150-am: refactor am -3 tests
        git-am.sh: fix initialization of the threeway variable
      4b64c8a1
    • J
      Merge branch 'jc/ll-merge-expose-path' · 49ac7358
      Junio C Hamano 提交于
      Traditionally, external low-level 3-way merge drivers are expected
      to produce their results based solely on the contents of the three
      variants given in temporary files named by %O, %A and %B on their
      command line.  Additionally allow them to look at the final path
      (given by %P).
      
      * jc/ll-merge-expose-path:
        ll-merge: pass the original path to external drivers
      49ac7358
    • J
      Merge branch 'es/osx-header-pollutes-mask-macro' · 6da9f888
      Junio C Hamano 提交于
      * es/osx-header-pollutes-mask-macro:
        ewah: use less generic macro name
        ewah/bitmap: silence warning about MASK macro redefinition
      6da9f888
    • J
      Merge branch 'es/configure-getdelim' · 3c84c38d
      Junio C Hamano 提交于
      Auto-detect availability of getdelim() that helps optimized version
      of strbuf_getwholeline().
      
      * es/configure-getdelim:
        configure: add getdelim() check
        config.mak.uname: Darwin: define HAVE_GETDELIM for modern OS X releases
      3c84c38d
    • J
      Merge branch 'pt/pull-optparse' · a1eaf865
      Junio C Hamano 提交于
      "git pull" has become more aware of the options meant for
      underlying "git fetch" and then learned to use parse-options
      parser.
      
      * pt/pull-optparse:
        pull: use git-rev-parse --parseopt for option parsing
        pull: handle git-fetch's options as well
      a1eaf865
    • J
      Merge branch 'qn/blame-show-email' · 20d16da5
      Junio C Hamano 提交于
      "git blame" learned blame.showEmail configuration variable.
      
      * qn/blame-show-email:
        blame: add blame.showEmail configuration
      20d16da5