summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-11-20Git 2.43v2.43.0Junio C Hamano
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-20Merge tag 'l10n-2.43.0-rnd2' of https://github.com/git-l10n/git-poJunio C Hamano
l10n-2.43.0-rnd2 * tag 'l10n-2.43.0-rnd2' of https://github.com/git-l10n/git-po: l10n: zh-TW: Git 2.43.0-rc1 l10n: Update German translation l10n: bg.po: Updated Bulgarian translation (5579t) l10n: zh_CN: for git 2.43.0-rc1 l10n: Update Catalan translation l10n: po-id for 2.43 (round 1) l10n: fr: v2.43.0 rnd 2 l10n: update uk localization for v2.43 l10n: sv.po: Update Swedish translation (5579t) l10n: tr: v2.43.0
2023-11-20Merge branch 'vd/glossary-dereference-peel'Junio C Hamano
"To dereference" and "to peel" were sometimes used in in-code comments and documentation but without description in the glossary. * vd/glossary-dereference-peel: glossary: add definitions for dereference & peel
2023-11-20Merge branch 'tz/send-email-helpfix'Junio C Hamano
Typoes in "git send-email -h" have been corrected. * tz/send-email-helpfix: send-email: remove stray characters from usage
2023-11-20Merge branch 'l10n/zh-TW/2023-11-19' of github.com:l10n-tw/git-poJiang Xin
* 'l10n/zh-TW/2023-11-19' of github.com:l10n-tw/git-po: l10n: zh-TW: Git 2.43.0-rc1
2023-11-19l10n: zh-TW: Git 2.43.0-rc1Yi-Jyun Pan
Signed-off-by: Yi-Jyun Pan <pan93412@gmail.com>
2023-11-19Merge branch 'master' of github.com:alshopov/git-poJiang Xin
* 'master' of github.com:alshopov/git-po: l10n: bg.po: Updated Bulgarian translation (5579t)
2023-11-18l10n: Update German translationRalf Thielow
Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
2023-11-18l10n: bg.po: Updated Bulgarian translation (5579t)Alexander Shopov
Signed-off-by: Alexander Shopov <ash@kambanaria.org>
2023-11-18l10n: zh_CN: for git 2.43.0-rc1Teng Long
Signed-off-by: Teng Long <dyroneteng@gmail.com> Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
2023-11-18Merge branch '2.43-uk-update' of github.com:arkid15rJiang Xin
* '2.43-uk-update' of github.com:arkid15r/git-ukrainian-l10n: l10n: update uk localization for v2.43
2023-11-18Merge branch 'catalan' of github.com:Softcatala/git-poJiang Xin
* 'catalan' of github.com:Softcatala/git-po: l10n: Update Catalan translation
2023-11-18Merge branch 'tr-l10n' of github.com:bitigchi/git-poJiang Xin
* 'tr-l10n' of github.com:bitigchi/git-po: l10n: tr: v2.43.0
2023-11-18Merge branch 'fr_v2.43.0' of github.com:jnavila/gitJiang Xin
* 'fr_v2.43.0' of github.com:jnavila/git: l10n: fr: v2.43.0 rnd 2
2023-11-18Merge branch 'po-id' of github.com:bagasme/git-poJiang Xin
* 'po-id' of github.com:bagasme/git-po: l10n: po-id for 2.43 (round 1)
2023-11-18Merge branch 'master' of github.com:nafmo/git-l10n-svJiang Xin
* 'master' of github.com:nafmo/git-l10n-sv: l10n: sv.po: Update Swedish translation (5579t)
2023-11-16send-email: remove stray characters from usageTodd Zullinger
A few stray single quotes crept into the usage string in a2ce608244 (send-email docs: add format-patch options, 2021-10-25). Remove them. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-14Git 2.43-rc2v2.43.0-rc2Junio C Hamano
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-14glossary: add definitions for dereference & peelVictoria Dye
Add 'gitglossary' definitions for "dereference" (as it used for both symrefs and objects) and "peel". These terms are used in options and documentation throughout Git, but they are not clearly defined anywhere and the behavior they refer to depends heavily on context. Provide explicit definitions to clarify existing documentation to users and help contributors to use the most appropriate terminology possible in their additions to Git. Update other definitions in the glossary that use the term "dereference" to link to 'def_dereference'. Signed-off-by: Victoria Dye <vdye@github.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-13l10n: Update Catalan translationJordi Mas
Signed-off-by: Jordi Mas <jmas@softcatala.org>
2023-11-12l10n: po-id for 2.43 (round 1)Bagas Sanjaya
Update following components: * builtin/gc.c * builtin/interpret-trailers.c * builtin/merge-file.c * builtin/show-ref.c * builtin/update-index.c * chunk-format.c * parse-options.c * scalar.c While at it, drop unused strings. Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
2023-11-12RelNotes: minor wording fixes in 2.43.0 release notesElijah Newren
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-11l10n: fr: v2.43.0 rnd 2Jean-Noël Avila
Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
2023-11-10l10n: update uk localization for v2.43Arkadii Yakovets
Co-authored-by: Kate Golovanova <kate@kgthreads.com> Signed-off-by: Arkadii Yakovets <ark@cho.red> Signed-off-by: Kate Golovanova <kate@kgthreads.com>
2023-11-09l10n: sv.po: Update Swedish translation (5579t)Peter Krefting
Signed-off-by: Peter Krefting <peter@softwolves.pp.se>
2023-11-09l10n: tr: v2.43.0Emir SARI
Signed-off-by: Emir SARI <emir_sari@icloud.com>
2023-11-08Git 2.43-rc1v2.43.0-rc1Junio C Hamano
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-08Merge branch 'tb/rev-list-unpacked-fix'Junio C Hamano
"git rev-list --unpacked --objects" failed to exclude packed non-commit objects, which has been corrected. * tb/rev-list-unpacked-fix: pack-bitmap: drop --unpacked non-commit objects from results list-objects: drop --unpacked non-commit objects from results
2023-11-08Merge branch 'ps/leakfixes'Junio C Hamano
Leakfix. * ps/leakfixes: setup: fix leaking repository format setup: refactor `upgrade_repository_format()` to have common exit shallow: fix memory leak when registering shallow roots test-bloom: stop setting up Git directory twice
2023-11-08Prepare for -rc1Junio C Hamano
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-08Merge branch 'jc/test-i18ngrep'Junio C Hamano
Another step to deprecate test_i18ngrep. * jc/test-i18ngrep: tests: teach callers of test_i18ngrep to use test_grep test framework: further deprecate test_i18ngrep
2023-11-08Merge branch 'la/strvec-header-fix'Junio C Hamano
Code clean-up. * la/strvec-header-fix: strvec: drop unnecessary include of hex.h
2023-11-08Merge branch 'bc/merge-file-object-input'Junio C Hamano
"git merge-file" learns a mode to read three contents to be merged from blob objects. * bc/merge-file-object-input: merge-file: add an option to process object IDs git-merge-file doc: drop "-file" from argument placeholders
2023-11-08Merge branch 'kn/rev-list-missing-fix'Junio C Hamano
"git rev-list --missing" did not work for missing commit objects, which has been corrected. * kn/rev-list-missing-fix: rev-list: add commit object support in `--missing` option rev-list: move `show_commit()` to the bottom revision: rename bit to `do_not_die_on_missing_objects`
2023-11-08Merge branch 'an/clang-format-typofix'Junio C Hamano
Typofix. * an/clang-format-typofix: clang-format: fix typo in comment
2023-11-08Merge branch 'tb/format-pack-doc-update'Junio C Hamano
Doc update. * tb/format-pack-doc-update: Documentation/gitformat-pack.txt: fix incorrect MIDX documentation Documentation/gitformat-pack.txt: fix typo
2023-11-08Merge branch 'ps/show-ref'Junio C Hamano
Teach "git show-ref" a mode to check the existence of a ref. * ps/show-ref: t: use git-show-ref(1) to check for ref existence builtin/show-ref: add new mode to check for reference existence builtin/show-ref: explicitly spell out different modes in synopsis builtin/show-ref: ensure mutual exclusiveness of subcommands builtin/show-ref: refactor options for patterns subcommand builtin/show-ref: stop using global vars for `show_one()` builtin/show-ref: stop using global variable to count matches builtin/show-ref: refactor `--exclude-existing` options builtin/show-ref: fix dead code when passing patterns builtin/show-ref: fix leaking string buffer builtin/show-ref: split up different subcommands builtin/show-ref: convert pattern to a local variable
2023-11-08Merge branch 'ps/do-not-trust-commit-graph-blindly-for-existence'Junio C Hamano
The codepath to traverse the commit-graph learned to notice that a commit is missing (e.g., corrupt repository lost an object), even though it knows something about the commit (like its parents) from what is in commit-graph. * ps/do-not-trust-commit-graph-blindly-for-existence: commit: detect commits that exist in commit-graph but not in the ODB commit-graph: introduce envvar to disable commit existence checks
2023-11-08Merge branch 'js/ci-use-macos-13'Junio C Hamano
Replace macos-12 used at GitHub CI with macos-13. * js/ci-use-macos-13: ci: upgrade to using macos-13
2023-11-08Merge branch 'jk/chunk-bounds'Junio C Hamano
Test portability fix. * jk/chunk-bounds: t: avoid perl's pack/unpack "Q" specifier
2023-11-08Merge branch 'jk/tree-name-and-depth-limit'Junio C Hamano
Further limit tree depth max to avoid Windows build running out of the stack space. * jk/tree-name-and-depth-limit: max_tree_depth: lower it for MSVC to avoid stack overflows
2023-11-07pack-bitmap: drop --unpacked non-commit objects from resultsTaylor Blau
When performing revision queries with `--objects` and `--use-bitmap-index`, the output may incorrectly contain objects which are packed, even when the `--unpacked` option is given. This affects traversals, but also other querying operations, like `--count`, `--disk-usage`, etc. Like in the previous commit, the fix is to exclude those objects from the result set before they are shown to the user (or, in this case, before the bitmap containing the result of the traversal is enumerated and its objects listed). This is performed by a new function in pack-bitmap.c, called `filter_packed_objects_from_bitmap()`. Note that we do not have to inspect individual bits in the result bitmap, since we know that the first N (where N is the number of objects in the bitmap's pack/MIDX) bits correspond to objects which packed by definition. In other words, for an object to have a bitmap position (not in the extended index), it must appear in either the bitmap's pack or one of the packs in its MIDX. This presents an appealing optimization to us, which is that we can simply memset() the corresponding number of `eword_t`'s to zero, provided that we handle any objects which spill into the next word (but don't occupy all 64 bits of the word itself). We only have to handle objects in the bitmap's extended index. These objects may (or may not) appear in one or more pack(s). Since these objects are known to not appear in either the bitmap's MIDX or pack, they may be stored as loose, appear in other pack(s), or both. Before returning a bitmap containing the result of the traversal back to the caller, drop any bits from the extended index which appear in one or more packs. This implements the correct behavior for rev-list operations which use the bitmap index to compute their result. Co-authored-by: Jeff King <peff@peff.net> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-07list-objects: drop --unpacked non-commit objects from resultsTaylor Blau
In git-rev-list(1), we describe the `--unpacked` option as: Only useful with `--objects`; print the object IDs that are not in packs. This is true of commits, which we discard via get_commit_action(), but not of the objects they reach. So if we ask for an --objects traversal with --unpacked, we may get arbitrarily many objects which are indeed packed. I am nearly certain this behavior dates back to the introduction of `--unpacked` via 12d2a18780 ("git rev-list --unpacked" shows only unpacked commits, 2005-07-03), but I couldn't get that revision of Git to compile for me. At least as early as v2.0.0 this has been subtly broken: $ git.compile --version git version 2.0.0 $ git.compile rev-list --objects --all --unpacked 72791fe96c93f9ec5c311b8bc966ab349b3b5bbe 05713d991c18bbeef7e154f99660005311b5004d v1.0 153ed8b7719c6f5a68ce7ffc43133e95a6ac0fdb 8e4020bb5a8d8c873b25de15933e75cc0fc275df one 9200b628cf9dc883a85a7abc8d6e6730baee589c two 3e6b46e1b7e3b91acce99f6a823104c28aae0b58 unpacked.t There, only the first, third, and sixth entries are loose, with the remaining set of objects belonging to at least one pack. The implications for this are relatively benign: bare 'git repack' invocations which invoke pack-objects with --unpacked are impacted, and at worst we'll store a few extra objects that should have been excluded. Arguably changing this behavior is a backwards-incompatible change, since it alters the set of objects emitted from rev-list queries with `--objects` and `--unpacked`. But I argue that this change is still sensible, since the existing implementation deviates from clearly-written documentation. The fix here is straightforward: avoid showing any non-commit objects which are contained in packs by discarding them within list-objects.c, before they are shown to the user. Note that similar treatment for `list-objects.c::show_commit()` is not needed, since that case is already handled by `revision.c::get_commit_action()`. Co-authored-by: Jeff King <peff@peff.net> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-07RelNotes: improve wording of credential helper notesTodd Zullinger
Offer a slightly more verbose description of the issue fixed by 7144dee3ec (credential/libsecret: erase matching creds only, 2023-07-26) and cb626f8e5c (credential/wincred: erase matching creds only, 2023-07-26). Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-07RelNotes: minor typo fixes in 2.43.0 draftTodd Zullinger
Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2023-11-07A bit more before -rc1Junio C Hamano
2023-11-07Merge branch 'rc/trace-upload-pack'Junio C Hamano
Trace2 update. * rc/trace-upload-pack: upload-pack: add tracing for fetches
2023-11-07Merge branch 'es/bugreport-no-extra-arg'Junio C Hamano
"git bugreport" learned to complain when it received a command line argument that it will not use. * es/bugreport-no-extra-arg: bugreport: reject positional arguments t0091-bugreport: stop using i18ngrep
2023-11-07Merge branch 'js/my-first-contribution-update'Junio C Hamano
Documentation update. * js/my-first-contribution-update: Include gettext.h in MyFirstContribution tutorial
2023-11-07Merge branch 'ms/send-email-validate-fix'Junio C Hamano
"git send-email" did not have certain pieces of data computed yet when it tried to validate the outging messages and its recipient addresses, which has been sorted out. * ms/send-email-validate-fix: send-email: move validation code below process_address_list