1. 20 7月, 2016 9 次提交
    • J
      Merge branch 'jk/common-main' · d4c6375f
      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()
      d4c6375f
    • J
      Merge branch 'ak/lazy-prereq-mktemp' · df9da64a
      Junio C Hamano 提交于
      A test that unconditionally used "mktemp" learned that the command
      is not necessarily available everywhere.
      
      * ak/lazy-prereq-mktemp:
        t7610: test for mktemp before test execution
      df9da64a
    • J
      Merge branch 'nd/icase' · a883c31a
      Junio C Hamano 提交于
      "git grep -i" has been taught to fold case in non-ascii locales
      correctly.
      
      * nd/icase:
        grep.c: reuse "icase" variable
        diffcore-pickaxe: support case insensitive match on non-ascii
        diffcore-pickaxe: Add regcomp_or_die()
        grep/pcre: support utf-8
        gettext: add is_utf8_locale()
        grep/pcre: prepare locale-dependent tables for icase matching
        grep: rewrite an if/else condition to avoid duplicate expression
        grep/icase: avoid kwsset when -F is specified
        grep/icase: avoid kwsset on literal non-ascii strings
        test-regex: expose full regcomp() to the command line
        test-regex: isolate the bug test code
        grep: break down an "if" stmt in preparation for next changes
      a883c31a
    • J
      Merge branch 'bc/cocci' · a63d31b4
      Junio C Hamano 提交于
      Conversion from unsigned char sha1[20] to struct object_id
      continues.
      
      * bc/cocci:
        diff: convert prep_temp_blob() to struct object_id
        merge-recursive: convert merge_recursive_generic() to object_id
        merge-recursive: convert leaf functions to use struct object_id
        merge-recursive: convert struct merge_file_info to object_id
        merge-recursive: convert struct stage_data to use object_id
        diff: rename struct diff_filespec's sha1_valid member
        diff: convert struct diff_filespec to struct object_id
        coccinelle: apply object_id Coccinelle transformations
        coccinelle: convert hashcpy() with null_sha1 to hashclr()
        contrib/coccinelle: add basic Coccinelle transforms
        hex: add oid_to_hex_r()
      a63d31b4
    • J
      Merge branch 'js/log-to-diffopt-file' · 63641fb0
      Junio C Hamano 提交于
      The commands in the "log/diff" family have had an FILE* pointer in the
      data structure they pass around for a long time, but some codepaths
      used to always write to the standard output.  As a preparatory step
      to make "git format-patch" available to the internal callers, these
      codepaths have been updated to consistently write into that FILE*
      instead.
      
      * js/log-to-diffopt-file:
        mingw: fix the shortlog --output=<file> test
        diff: do not color output when --color=auto and --output=<file> is given
        t4211: ensure that log respects --output=<file>
        shortlog: respect the --output=<file> setting
        format-patch: use stdout directly
        format-patch: avoid freopen()
        format-patch: explicitly switch off color when writing to files
        shortlog: support outputting to streams other than stdout
        graph: respect the diffopt.file setting
        line-log: respect diffopt's configured output file stream
        log-tree: respect diffopt's configured output file stream
        log: prepare log/log-tree to reuse the diffopt.close_file attribute
      63641fb0
    • J
      Merge branch 'sb/submodule-parallel-fetch' · 7725bebe
      Junio C Hamano 提交于
      Fix recently introduced codepaths that are involved in parallel
      submodule operations, which gave up on reading too early, and
      could have wasted CPU while attempting to write under a corner
      case condition.
      
      * sb/submodule-parallel-fetch:
        hoist out handle_nonblock function for xread and xwrite
        xwrite: poll on non-blocking FDs
        xread: retry after poll on EAGAIN/EWOULDBLOCK
      7725bebe
    • J
      Merge branch 'lf/recv-sideband-cleanup' · e0e56cbf
      Junio C Hamano 提交于
      Code simplification.
      
      * lf/recv-sideband-cleanup:
        sideband.c: small optimization of strbuf usage
        sideband.c: refactor recv_sideband()
      e0e56cbf
    • J
      Merge branch 'dk/blame-move-no-reason-for-1-line-context' · 7418a6b1
      Junio C Hamano 提交于
      "git blame -M" missed a single line that was moved within the file.
      
      * dk/blame-move-no-reason-for-1-line-context:
        blame: require 0 context lines while finding moved lines with -M
      7418a6b1
    • J
      Merge branch 'nd/connect-ssh-command-config' · dc21164e
      Junio C Hamano 提交于
      A new configuration variable core.sshCommand has been added to
      specify what value for GIT_SSH_COMMAND to use per repository.
      
      * nd/connect-ssh-command-config:
        connect: read $GIT_SSH_COMMAND from config file
      dc21164e
  2. 16 7月, 2016 5 次提交
  3. 15 7月, 2016 2 次提交
    • J
      Merge branch 'jk/upload-pack-hook' · 75676c8c
      Junio C Hamano 提交于
      A hot-fix to make a test working in mingw again.
      
      * jk/upload-pack-hook:
        mingw: fix regression in t1308-config-set
      75676c8c
    • J
      mingw: fix regression in t1308-config-set · b738396c
      Johannes Schindelin 提交于
      When we tried to fix in 58461bdf (t1308: do not get fooled by symbolic
      links to the source tree, 2016-06-02) an obscure case where the user
      cd's into Git's source code via a symbolic link, a regression was
      introduced that affects all test runs on Windows.
      
      The original patch introducing the test case in question was careful to
      use `$(pwd)` instead of `$PWD`.
      
      This was done to account for the fact that Git's test suite uses shell
      scripting even on Windows, where the shell's Unix-y paths are
      incompatible with the main Git executable's idea of paths: it only
      accepts Windows paths.
      
      It is an awkward but necessary thing, then, to use `$(pwd)` (which gives
      us a Windows path) when interacting with the Git executable and `$PWD`
      (which gives the shell's idea of the current working directory in Unix-y
      form) for shell scripts, including the test suite itself.
      
      Obviously this broke the use case of the Git maintainer when changing
      the working directory into Git's source code directory via a symlink,
      i.e. when `$(pwd)` does not agree with `$PWD`.
      
      However, we must not fix that use case at the expense of regressing
      another use case.
      
      Let's special-case Windows here, even if it is ugly, for lack of a more
      elegant solution.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b738396c
  4. 14 7月, 2016 12 次提交
    • J
      Fifth batch of topics for 2.10 · 79ed43c2
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      79ed43c2
    • J
      Merge branch 'jk/big-and-future-archive-tar' · 7a23f736
      Junio C Hamano 提交于
      "git archive" learned to handle files that are larger than 8GB and
      commits far in the future than expressible by the traditional US-TAR
      format.
      
      * jk/big-and-future-archive-tar:
        archive-tar: drop return value
        archive-tar: write extended headers for far-future mtime
        archive-tar: write extended headers for file sizes >= 8GB
        t5000: test tar files that overflow ustar headers
        t9300: factor out portable "head -c" replacement
      7a23f736
    • J
      Merge branch 'nd/ita-cleanup' · 42bd6681
      Junio C Hamano 提交于
      Git does not know what the contents in the index should be for a
      path added with "git add -N" yet, so "git grep --cached" should not
      show hits (or show lack of hits, with -L) in such a path, but that
      logic does not apply to "git grep", i.e. searching in the working
      tree files.  But we did so by mistake, which has been corrected.
      
      * nd/ita-cleanup:
        grep: fix grepping for "intent to add" files
        t7810-grep.sh: fix a whitespace inconsistency
        t7810-grep.sh: fix duplicated test name
      42bd6681
    • J
      Merge branch 'ps/rebase-i-auto-unstash-upon-abort' · 5eb1e9f1
      Junio C Hamano 提交于
      "git rebase -i --autostash" did not restore the auto-stashed change
      when the operation was aborted.
      
      * ps/rebase-i-auto-unstash-upon-abort:
        rebase -i: restore autostash on abort
      5eb1e9f1
    • J
      Merge branch 'js/t3404-grammo-fix' · 6c35952a
      Junio C Hamano 提交于
      Grammofix.
      
      * js/t3404-grammo-fix:
        t3404: fix a grammo (commands are ran -> commands are run)
      6c35952a
    • J
      Merge branch 'js/sign-empty-commit-fix' · c5109266
      Junio C Hamano 提交于
      "git commit --amend --allow-empty-message -S" for a commit without
      any message body could have misidentified where the header of the
      commit object ends.
      
      * js/sign-empty-commit-fix:
        commit -S: avoid invalid pointer with empty message
      c5109266
    • J
      Merge branch 'mm/doc-tt' · ce18123c
      Junio C Hamano 提交于
      More mark-up updates to typeset strings that are expected to
      literally typed by the end user in fixed-width font.
      
      * mm/doc-tt:
        doc: typeset HEAD and variants as literal
        CodingGuidelines: formatting HEAD in documentation
        doc: typeset long options with argument as literal
        doc: typeset '--' as literal
        doc: typeset long command-line options as literal
        doc: typeset short command-line options as literal
        Documentation/git-mv.txt: fix whitespace indentation
      ce18123c
    • J
      Merge branch 'dg/subtree-rebase-test' · fc8a3a60
      Junio C Hamano 提交于
      Add a test to specify the desired behaviour that currently is not
      available in "git rebase -Xsubtree=...".
      
      * dg/subtree-rebase-test:
        contrib/subtree: Add a test for subtree rebase that loses commits
      fc8a3a60
    • J
      Merge branch 'nd/doc-new-command' · 7aa46d2b
      Junio C Hamano 提交于
      Typofix in a doc.
      
      * nd/doc-new-command:
        new-command.txt: correct the command description file
      7aa46d2b
    • J
      Merge branch 'ew/gc-auto-pack-limit-fix' · 97865e83
      Junio C Hamano 提交于
      "gc.autoPackLimit" when set to 1 should not trigger a repacking
      when there is only one pack, but the code counted poorly and did
      so.
      
      * ew/gc-auto-pack-limit-fix:
        gc: fix off-by-one error with gc.autoPackLimit
      97865e83
    • J
      Merge branch 'ah/unpack-trees-advice-messages' · 67166a8d
      Junio C Hamano 提交于
      Grammofix.
      
      * ah/unpack-trees-advice-messages:
        unpack-trees: fix English grammar in do-this-before-that messages
      67166a8d
    • J
      Merge branch 'va/i18n-even-more' · 2703572b
      Junio C Hamano 提交于
      More markings of messages for i18n, with updates to various tests
      to pass GETTEXT_POISON tests.
      
      One patch from the original submission dropped due to conflicts
      with jk/upload-pack-hook, which is still in flux.
      
      * va/i18n-even-more: (38 commits)
        t5541: become resilient to GETTEXT_POISON
        i18n: branch: mark comment when editing branch description for translation
        i18n: unmark die messages for translation
        i18n: submodule: escape shell variables inside eval_gettext
        i18n: submodule: join strings marked for translation
        i18n: init-db: join message pieces
        i18n: remote: allow translations to reorder message
        i18n: remote: mark URL fallback text for translation
        i18n: standardise messages
        i18n: sequencer: add period to error message
        i18n: merge: change command option help to lowercase
        i18n: merge: mark messages for translation
        i18n: notes: mark options for translation
        i18n: notes: mark strings for translation
        i18n: transport-helper.c: change N_() call to _()
        i18n: bisect: mark strings for translation
        t5523: use test_i18ngrep for negation
        t4153: fix negated test_i18ngrep call
        t9003: become resilient to GETTEXT_POISON
        tests: unpack-trees: update to use test_i18n* functions
        ...
      2703572b
  5. 12 7月, 2016 12 次提交