1. 09 10月, 2020 3 次提交
  2. 06 10月, 2020 17 次提交
    • J
      Git 2.29-rc0 · d98273ba
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d98273ba
    • J
      Merge branch 'nl/credential-crlf' · 542b3c25
      Junio C Hamano 提交于
      Loosen the parser in the receiving end of the credential protocol
      to allow credential helper to terminate lines with CRLF line
      ending, as well as LF line ending.
      
      * nl/credential-crlf:
        credential: treat CR/LF as line endings in the credential protocol
      542b3c25
    • J
      Merge branch 'sn/fast-import-doc' · 67af9102
      Junio C Hamano 提交于
      Doc update.
      
      * sn/fast-import-doc:
        fast-import: fix typo in documentation
      67af9102
    • J
      Merge branch 'pb/submodule-doc-fix' · 9d19e177
      Junio C Hamano 提交于
      Doc update.
      
      * pb/submodule-doc-fix:
        gitsubmodules doc: invoke 'ls-files' with '--recurse-submodules'
      9d19e177
    • J
      Merge branch 'jk/format-auto-base-when-able' · 5f8c70a1
      Junio C Hamano 提交于
      "git format-patch" learns to take "whenAble" as a possible value
      for the format.useAutoBase configuration variable to become no-op
      when the  automatically computed base does not make sense.
      
      * jk/format-auto-base-when-able:
        format-patch: teach format.useAutoBase "whenAble" option
      5f8c70a1
    • J
      Merge branch 'jk/diff-cc-oidfind-fix' · 7da656f1
      Junio C Hamano 提交于
      "log -c --find-object=X" did not work well to find a merge that
      involves a change to an object X from only one parent.
      
      * jk/diff-cc-oidfind-fix:
        combine-diff: handle --find-object in multitree code path
      7da656f1
    • J
      Merge branch 'jk/refspecs-negative' · 8e3ec76a
      Junio C Hamano 提交于
      "git fetch" and "git push" support negative refspecs.
      
      * jk/refspecs-negative:
        refspec: add support for negative refspecs
      8e3ec76a
    • J
      Merge branch 'rs/archive-add-file' · f6b06b45
      Junio C Hamano 提交于
      "git archive" learns the "--add-file" option to include untracked
      files into a snapshot from a tree-ish.
      
      * rs/archive-add-file:
        Makefile: use git-archive --add-file
        archive: add --add-file
        archive: read short blobs in archive.c::write_archive_entry()
      f6b06b45
    • J
      Merge branch 'jt/keep-partial-clone-filter-upon-lazy-fetch' · e68f0a4e
      Junio C Hamano 提交于
      The lazy fetching done internally to make missing objects available
      in a partial clone incorrectly made permanent damage to the partial
      clone filter in the repository, which has been corrected.
      
      * jt/keep-partial-clone-filter-upon-lazy-fetch:
        fetch: do not override partial clone filter
        promisor-remote: remove unused variable
      e68f0a4e
    • J
      Merge branch 'td/submodule-update-quiet' · 300cd14e
      Junio C Hamano 提交于
      "git submodule update --quiet" did not squelch underlying "rebase"
      and "pull" commands.
      
      * td/submodule-update-quiet:
        submodule update: silence underlying merge/rebase with "--quiet"
      300cd14e
    • J
      Merge branch 'jk/unused' · 19dd352d
      Junio C Hamano 提交于
      Code cleanup.
      
      * jk/unused:
        dir.c: drop unused "untracked" from treat_path_fast()
        sequencer: handle ignore_footer when parsing trailers
        test-advise: check argument count with argc instead of argv
        sparse-checkout: fill in some options boilerplate
        sequencer: drop repository argument from run_git_commit()
        push: drop unused repo argument to do_push()
        assert PARSE_OPT_NONEG in parse-options callbacks
        env--helper: write to opt->value in parseopt helper
        drop unused argc parameters
        convert: drop unused crlf_action from check_global_conv_flags_eol()
      19dd352d
    • J
      Merge branch 'js/cmake-vs' · 8250ab0b
      Junio C Hamano 提交于
      Using the CMake support we added some time ago for real with Visual
      Studio build revealed there were lot of usability improvements
      possible, which have been carried out.
      
      * js/cmake-vs:
        hashmap_for_each_entry(): workaround MSVC's runtime check failure #3
        cmake (Windows): recommend using Visual Studio's built-in CMake support
        cmake (Windows): initialize vcpkg/build dependencies automatically
        cmake (Windows): complain when encountering an unknown compiler
        cmake (Windows): let the `.dll` files be found when running the tests
        cmake: quote the path accurately when editing `test-lib.sh`
        cmake: fall back to using `vcpkg`'s `msgfmt.exe` on Windows
        cmake: ensure that the `vcpkg` packages are found on Windows
        cmake: do find Git for Windows' shell interpreter
        cmake: ignore files generated by CMake as run in Visual Studio
      8250ab0b
    • J
      Merge branch 'ma/worktree-cleanups' · 07601b5b
      Junio C Hamano 提交于
      Code clean-up.
      
      * ma/worktree-cleanups:
        worktree: use skip_prefix to parse target
        worktree: rename copy-pasted variable
        worktree: update renamed variable in comment
        worktree: inline `worktree_ref()` into its only caller
        wt-status: introduce wt_status_state_free_buffers()
        wt-status: print to s->fp, not stdout
        wt-status: replace sha1 mentions with oid
      07601b5b
    • J
      Merge branch 'so/combine-diff-simplify' · 34415c76
      Junio C Hamano 提交于
      Code simplification.
      
      * so/combine-diff-simplify:
        diff: get rid of redundant 'dense' argument
      34415c76
    • J
      Merge branch 'js/default-branch-name-part-2' · 58138d3f
      Junio C Hamano 提交于
      Update the tests to drop word 'master' from them.
      
      * js/default-branch-name-part-2:
        t9902: avoid using the branch name `master`
        tests: avoid variations of the `master` branch name
        t3200: avoid variations of the `master` branch name
        fast-export: avoid using unnecessary language in a code comment
        t/test-terminal: avoid non-inclusive language
      58138d3f
    • J
      Merge branch 'pm/gitk-update' · 0cf28f6d
      Junio C Hamano 提交于
      "gitk" update.
      
      * pm/gitk-update:
        gitk: Resize panes correctly when reducing window size
        gitk: replace tabs with spaces
        gitk: fix the context menu not appearing in the presence of submodule diffs
        gitk: Un-hide selection in areas with non-default background color
        gitk: add diff lines background colors
        gitk: be prepared to be run in a bare repository
        gitk: Preserve window dimensions on exit when not using ttk themes
        gitk: don't highlight files after submodules as submodules
        gitk: fix branch name encoding error
        gitk: rename "commit summary" to "commit reference"
      0cf28f6d
    • J
      Merge branch 'ds/in-merge-bases-many-optim-bug' · c01b041e
      Junio C Hamano 提交于
      in_merge_bases_many(), a way to see if a commit is reachable from
      any commit in a set of commits, was totally broken when the
      commit-graph feature was in use, which has been corrected.
      
      * ds/in-merge-bases-many-optim-bug:
        commit-reach: fix in_merge_bases_many bug
      c01b041e
  3. 05 10月, 2020 17 次提交
    • S
      fast-import: fix typo in documentation · 3be01e5a
      Samanta Navarro 提交于
      Signed-off-by: NSamanta Navarro <ferivoz@riseup.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3be01e5a
    • P
      gitsubmodules doc: invoke 'ls-files' with '--recurse-submodules' · 7d15fdbe
      Philippe Blain 提交于
      `git ls-files` was never taught to respect the `submodule.recurse`
      configuration variable, and it is too late now to change that [1],
      but still the command is mentioned in 'gitsubmodules(7)' as if it
      does respect that config.
      
      Adjust the call in 'gitsubmodules(7)' by calling 'ls-files' with the
      '--recurse-submodules' option.
      
      While at it, uniformize the capitalization in that file, and use
      backticks instead of quotes for Git commands and configuration
      variables.
      
      [1] https://lore.kernel.org/git/pull.732.git.1599707259907.gitgitgadget@gmail.com/T/#uSigned-off-by: NPhilippe Blain <levraiphilippeblain@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      7d15fdbe
    • J
      Nineteenth batch · ab4691b6
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ab4691b6
    • J
      Merge branch 'mt/delta-base-cache-races' · 26b42b4d
      Junio C Hamano 提交于
      A race that leads to an access to a free'd data was corrected in
      the codepath that reads pack files.
      
      * mt/delta-base-cache-races:
        packfile: fix memory leak in add_delta_base_cache()
        packfile: fix race condition on unpack_entry()
      26b42b4d
    • J
      Merge branch 'jk/shortlog-group-by-trailer' · 2fa8aacc
      Junio C Hamano 提交于
      "git shortlog" has been taught to group commits by the contents of
      the trailer lines, like "Reviewed-by:", "Coauthored-by:", etc.
      
      * jk/shortlog-group-by-trailer:
        shortlog: allow multiple groups to be specified
        shortlog: parse trailer idents
        shortlog: rename parse_stdin_ident()
        shortlog: de-duplicate trailer values
        shortlog: match commit trailers with --group
        trailer: add interface for iterating over commit trailers
        shortlog: add grouping option
        shortlog: change "author" variables to "ident"
      2fa8aacc
    • J
      Merge branch 'jc/fmt-merge-msg-suppress-destination' · ea1f6118
      Junio C Hamano 提交于
      Docfix.
      
      * jc/fmt-merge-msg-suppress-destination:
        config/fmt-merge-msg.txt: drop space in quote
      ea1f6118
    • J
      Merge branch 'tb/upload-pack-filters' · d1b75045
      Junio C Hamano 提交于
      Hotfix.
      
      * tb/upload-pack-filters:
        config/uploadpack.txt: fix typo in `--filter=tree:<n>`
      d1b75045
    • J
      Merge branch 'jc/sequencer-stopped-sha-simplify' · 84cdeed1
      Junio C Hamano 提交于
      Code simplification.
      
      * jc/sequencer-stopped-sha-simplify:
        sequencer: stop abbreviating stopped-sha file
      84cdeed1
    • J
      Merge branch 'au/complete-restore-s' · 741f1f81
      Junio C Hamano 提交于
      The command line completion (in contrib/) learned that "git restore
      -s <TAB>" is often followed by a refname.
      
      * au/complete-restore-s:
        completion: complete refs after 'git restore -s'
        completion: use "prev" variable instead of introducing "prevword"
      741f1f81
    • J
      Merge branch 'al/ref-filter-merged-and-no-merged' · 03b0198e
      Junio C Hamano 提交于
      Hotfix.
      
      * al/ref-filter-merged-and-no-merged:
        ref-filter: plug memory leak in reach_filter()
      03b0198e
    • J
      Merge branch 'eg/mailinfo-doc-scissors' · 9839cce4
      Junio C Hamano 提交于
      The explanation of the "scissors line" has been clarified.
      
      * eg/mailinfo-doc-scissors:
        Doc: show example scissors line
      9839cce4
    • J
      Merge branch 'mr/bisect-in-c-2' · f4cc68cb
      Junio C Hamano 提交于
      Rewrite of the "git bisect" script in C continues.
      
      * mr/bisect-in-c-2:
        bisect--helper: reimplement `bisect_next` and `bisect_auto_next` shell functions in C
        bisect: call 'clear_commit_marks_all()' in 'bisect_next_all()'
        bisect--helper: reimplement `bisect_autostart` shell function in C
        bisect--helper: introduce new `write_in_file()` function
        bisect--helper: use '-res' in 'cmd_bisect__helper' return
        bisect--helper: BUG() in cmd_*() on invalid subcommand
      f4cc68cb
    • J
      Merge branch 'cc/bisect-start-fix' · 03a01824
      Junio C Hamano 提交于
      "git bisect start X Y", when X and Y are not valid committish
      object names, should take X and Y as pathspec, but didn't.
      
      * cc/bisect-start-fix:
        bisect: don't use invalid oid as rev when starting
      03a01824
    • J
      Merge branch 'jc/blame-ignore-fix' · 230ff3e9
      Junio C Hamano 提交于
      "git blame --ignore-rev/--ignore-revs-file" failed to validate
      their input are valid revision, and failed to take into account
      that the user may want to give an annotated tag instead of a
      commit, which has been corrected.
      
      * jc/blame-ignore-fix:
        blame: validate and peel the object names on the ignore list
        t8013: minimum preparatory clean-up
      230ff3e9
    • J
      Merge branch 'jk/drop-unaligned-loads' · 86cca370
      Junio C Hamano 提交于
      Compilation fix around type punning.
      
      * jk/drop-unaligned-loads:
        Revert "fast-export: use local array to store anonymized oid"
        bswap.h: drop unaligned loads
      86cca370
    • J
      Merge branch 'js/no-builtins-on-disk-option' · 94de88c9
      Junio C Hamano 提交于
      The installation procedure learned to optionally omit "git-foo"
      executable files for each 'foo' built-in subcommand, which are only
      required by old timers that still rely on the age old promise that
      prepending "git --exec-path" output to PATH early in their script
      will keep the "git-foo" calls they wrote working.
      
      The old attempt to remove these executables from the disk failed in
      the 1.6 era; it may be worth attempting again, but I think it is
      worth to keep this topic separate from such a policy change to help
      it graduate early.
      
      * js/no-builtins-on-disk-option:
        ci: stop linking built-ins to the dashed versions
        Optionally skip linking/copying the built-ins
        msvc: copy the correct `.pdb` files in the Makefile target `install`
      94de88c9
    • J
      Merge branch 'ab/mediawiki-fixes' · 5a25615d
      Junio C Hamano 提交于
      Modernization and fixes to MediaWiki remote backend.
      
      * ab/mediawiki-fixes:
        remote-mediawiki: use "sh" to eliminate unquoted commands
        remote-mediawiki: annotate unquoted uses of run_git()
        remote-mediawiki: convert to quoted run_git() invocation
        remote-mediawiki: provide a list form of run_git()
        remote-mediawiki tests: annotate failing tests
        remote-mediawiki: fix duplicate revisions being imported
        remote-mediawiki tests: use CLI installer
        remote-mediawiki tests: use inline PerlIO for readability
        remote-mediawiki tests: replace deprecated Perl construct
        remote-mediawiki tests: use a more idiomatic dispatch table
        remote-mediawiki tests: use "$dir/" instead of "$dir."
        remote-mediawiki tests: change `[]` to `test`
        remote-mediawiki tests: use test_cmp in tests
        remote-mediawiki tests: use a 10 character password
        remote-mediawiki tests: use the login/password variables
        remote-mediawiki doc: don't hardcode Debian PHP versions
        remote-mediawiki doc: link to MediaWiki's current version
        remote-mediawiki doc: correct link to GitHub project
      5a25615d
  4. 04 10月, 2020 2 次提交
    • N
      credential: treat CR/LF as line endings in the credential protocol · 356c4732
      Nikita Leonov 提交于
      This fix makes using Git credentials more friendly to Windows users: it
      allows a credential helper to communicate using CR/LF line endings ("DOS
      line endings" commonly found on Windows) instead of LF-only line endings
      ("Unix line endings").
      
      Note that this changes the behavior a bit: if a credential helper
      produces, say, a password with a trailing Carriage Return character,
      that will now be culled even when the rest of the lines end only in Line
      Feed characters, indicating that the Carriage Return was not meant to be
      part of the line ending.
      
      In practice, it seems _very_ unlikely that something like this happens.
      Passwords usually need to consist of non-control characters, URLs need
      to have special characters URL-encoded, and user names, well, are names.
      
      However, it _does_ help on Windows, where CR/LF line endings are common:
      as unrecognized commands are simply ignored by the credential machinery,
      even a command like `quit\r` (which is clearly intended to abort) would
      simply be ignored (silently) by Git.
      
      So let's change the credential machinery to accept both CR/LF and LF
      line endings.
      
      While we do this for the credential helper protocol, we do _not_ adjust
      `git credential-cache--daemon` (which won't work on Windows, anyway,
      because it requires Unix sockets) nor `git credential-store` (which
      writes the file `~/.git-credentials` which we consider an implementation
      detail that should be opaque to the user, read: we do expect users _not_
      to edit this file manually).
      Signed-off-by: NNikita Leonov <nykyta.leonov@gmail.com>
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      356c4732
    • J
      Merge remote-tracking branch 'paulus/master' into pm/gitk-update · e2b9cb1c
      Junio C Hamano 提交于
      * paulus/master:
        gitk: Resize panes correctly when reducing window size
        gitk: replace tabs with spaces
        gitk: fix the context menu not appearing in the presence of submodule diffs
        gitk: Un-hide selection in areas with non-default background color
        gitk: add diff lines background colors
        gitk: be prepared to be run in a bare repository
        gitk: Preserve window dimensions on exit when not using ttk themes
        gitk: don't highlight files after submodules as submodules
        gitk: fix branch name encoding error
        gitk: rename "commit summary" to "commit reference"
      e2b9cb1c
  5. 03 10月, 2020 1 次提交
    • P
      gitk: Resize panes correctly when reducing window size · 6cd80496
      Paul Mackerras 提交于
      The resizeclistpanes and resizecdetpanes procedures attempt to keep
      the horizontal proportions of the panes of the gitk window
      approximately constant when the gitk window is resized.  However, if
      the size is reduced enough that an existing sash position would go
      outside the window, Tk moves the sash to the left to keep it inside
      the window (without moving other sash positions to keep the
      proportions).  This happens before these resize procedures get
      control, and so they work with incorrect proportions.
      
      To fix this, we record the sash positions we set previously and use
      those previously-set sash positions rather than the current sash
      positions when computing the proportions.
      Signed-off-by: NPaul Mackerras <paulus@ozlabs.org>
      6cd80496