summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* diffcore_rename(): use a stable sortJohannes Schindelin2019-10-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | During Git's rename detection, the file names are sorted. At the moment, this job is performed by `qsort()`. As that function is not guaranteed to implement a stable sort algorithm, this can lead to inconsistent and/or surprising behavior: a rename might be detected differently depending on the platform where Git was run. The `qsort()` in MS Visual C's runtime does _not_ implement a stable sort algorithm, and it even leads to an inconsistency leading to a test failure in t3030.35 "merge-recursive remembers the names of all base trees": a different code path than on Linux is taken in the rename detection of an ambiguous rename between either `e` to `a` or `a~Temporary merge branch 2_0` to `a` during a recursive merge, unexpectedly resulting in a clean merge. Let's use the stable sort provided by `git_stable_qsort()` to avoid this inconsistency. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Move git_sort(), a stable sort, into into libgit.aJohannes Schindelin2019-10-024-15/+13
| | | | | | | | | | | | | | | | | | | The `qsort()` function is not guaranteed to be stable, i.e. it does not promise to maintain the order of items it is told to consider equal. In contrast, the `git_sort()` function we carry in `compat/qsort.c` _is_ stable, by virtue of implementing a merge sort algorithm. In preparation for using a stable sort in Git's rename detection, move the stable sort into `libgit.a` so that it is compiled in unconditionally, and rename it to `git_stable_qsort()`. Note: this also makes the hack obsolete that was introduced in fe21c6b285d (mingw: reencode environment variables on the fly (UTF-16 <-> UTF-8), 2018-10-30), where we included `compat/qsort.c` directly in `compat/mingw.c` to use the stable sort. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Git 2.23v2.23.0Junio C Hamano2019-08-161-1/+1
| | | | Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Merge tag 'l10n-2.23.0-rnd2' of git://github.com/git-l10n/git-poJunio C Hamano2019-08-1611-36251/+46987
|\ | | | | | | l10n-2.23.0-rnd2
| * l10n: zh_CN: for git v2.23.0 l10n round 1~2Jiang Xin2019-08-161-2910/+3413
| | | | | | | | | | | | Translate 128 new messages (4674t0f0u) for git 2.23.0. Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
| * l10n: de.po: Update German translationMatthias Ruester2019-08-121-2910/+3533
| | | | | | | | | | | | Signed-off-by: Matthias Rüster <matthias.ruester@gmail.com> Reviewed-by: Ralf Thielow <ralf.thielow@gmail.com> Reviewed-by: Phillip Szelat <phillip.szelat@gmail.com>
| * Merge branch 'master' of https://github.com/vnwildman/gitJiang Xin2019-08-121-585/+595
| |\ | | | | | | | | | | | | * 'master' of https://github.com/vnwildman/git: l10n: vi(4674t): Updated translation for Vietnamese
| | * l10n: vi(4674t): Updated translation for VietnameseTran Ngoc Quan2019-08-111-585/+595
| | | | | | | | | | | | Signed-off-by: Tran Ngoc Quan <vnwildman@gmail.com>
| * | Merge branch 'update-italian-translation' of github.com:AlessandroMenti/git-poJiang Xin2019-08-121-522/+531
| |\ \ | | | | | | | | | | | | | | | | * 'update-italian-translation' of github.com:AlessandroMenti/git-po: l10n: it.po: update the Italian localization for v2.23.0 round 2
| | * | l10n: it.po: update the Italian localization for v2.23.0 round 2Alessandro Menti2019-08-111-522/+531
| | |/ | | | | | | | | | Signed-off-by: Alessandro Menti <alessandro.menti@alessandromenti.it>
| * | Merge branch 'next' of https://github.com/ChrisADR/git-poJiang Xin2019-08-121-3030/+3598
| |\ \ | | | | | | | | | | | | | | | | * 'next' of https://github.com/ChrisADR/git-po: l10n: es: 2.23.0 round 2
| | * | l10n: es: 2.23.0 round 2Christopher Diaz Riveros2019-08-101-3030/+3598
| | |/ | | | | | | | | | Signed-off-by: Christopher Diaz Riveros <chrisadr@gentoo.org>
| * | l10n: fr v2.23.0 round 2Jean-Noël Avila2019-08-101-2904/+3429
| |/ | | | | | | Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
| * l10n: git.pot: v2.23.0 round 2 (4 new, 6 removed)Jiang Xin2019-08-101-477/+461
| | | | | | | | | | | | Generate po/git.pot from v2.23.0-rc2 for git v2.23.0 l10n round 2. Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
| * Merge tag 'v2.23.0-rc2' of git://git.kernel.org/pub/scm/git/gitJiang Xin2019-08-1059-396/+1041
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Git 2.23-rc2 * tag 'v2.23.0-rc2' of git://git.kernel.org/pub/scm/git/git: (63 commits) Git 2.23-rc2 t0000: reword comments for "local" test t: decrease nesting in test_oid_to_path sha1-file: release strbuf after use test-dir-iterator: use path argument directly dir-iterator: release strbuf after use commit-graph: release strbufs after use l10n: reformat some localized strings for v2.23.0 merge-recursive: avoid directory rename detection in recursive case commit-graph: fix bug around octopus merges restore: fix typo in docs doc: typo: s/can not/cannot/ and s/is does/does/ Git 2.23-rc1 log: really flip the --mailmap default RelNotes/2.23.0: fix a few typos and other minor issues RelNotes/2.21.1: typofix log: flip the --mailmap default unconditionally config: work around bug with includeif:onbranch and early config A few more last-minute fixes repack: simplify handling of auto-bitmaps and .keep files ...
| * | l10n: bg.po: Updated Bulgarian translation (4674t)Alexander Shopov2019-08-101-2937/+3481
| | | | | | | | | | | | Signed-off-by: Alexander Shopov <ash@kambanaria.org>
| * | l10n: vi.po (4676t): Updated Vietnamese translationTran Ngoc Quan2019-08-061-3017/+3618
| | | | | | | | | | | | Signed-off-by: Tran Ngoc Quan <vnwildman@gmail.com>
| * | Merge branch 'master' of https://github.com/Softcatala/git-poJiang Xin2019-08-031-4517/+6933
| |\ \ | | | | | | | | | | | | | | | | * 'master' of https://github.com/Softcatala/git-po: l10n: Update Catalan translation
| | * | l10n: Update Catalan translationJordi Mas2019-08-031-4517/+6933
| | | | | | | | | | | | | | | | Signed-off-by: Jordi Mas <jmas@softcatala.org>
| * | | Merge branch 'update-italian-translation' of github.com:AlessandroMenti/git-poJiang Xin2019-08-031-3117/+3723
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * 'update-italian-translation' of github.com:AlessandroMenti/git-po: l10n: it.po: update the Italian translation for v2.23.0
| | * | | l10n: it.po: update the Italian translation for v2.23.0Alessandro Menti2019-08-011-3117/+3723
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | Update the Italian translation for Git v2.23.0 (l10n round 1), as well as adding some minor localization fixes. Signed-off-by: Alessandro Menti <alessandro.menti@alessandromenti.it>
| * | | l10n: sv.po: Update Swedish translation (4676t0f0u)Peter Krefting2019-07-311-2979/+3586
| |/ / | | | | | | | | | Signed-off-by: Peter Krefting <peter@softwolves.pp.se>
| * | l10n: git.pot: v2.23.0 round 1 (130 new, 35 removed)Jiang Xin2019-07-301-2829/+3311
| | | | | | | | | | | | | | | | | | Generate po/git.pot from v2.23.0-rc0 for git v2.23.0 l10n round 1. Signed-off-by: Jiang Xin <worldhello.net@gmail.com>
| * | Merge tag 'v2.23.0-rc0' of git://git.kernel.org/pub/scm/git/gitJiang Xin2019-07-30400-3656/+14772
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Git 2.23-rc0 * tag 'v2.23.0-rc0' of git://git.kernel.org/pub/scm/git/git: (420 commits) Git 2.23-rc0 Merge fixes made on the 'master' front Flush fixes up to the third batch post 2.22.0 The seventh batch git: mark cmd_rebase as requiring a worktree rebase: fix white-space xdiff: clamp function context indices in post-image grep: print the pcre2_jit_on value t6200: use test_commit_bulk travis-ci: build with GCC 4.8 as well The sixth batch clean: show an error message when the path is too long CodingGuidelines: spell out post-C89 rules README: fix rendering of text in angle brackets rm: resolving by removal is not a warning-worthy event transport-helper: avoid var decl in for () loop control stash: fix handling removed files with --keep-index mingw: support spawning programs containing spaces in their names gpg-interface: do not scan past the end of buffer tests: defang pager tests by explicitly disabling the log.mailmap warning ...
| * | | l10n: de.po: Fix typo in German translationPhilipp Weißmann2019-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix translation error of "complete => "vollständig" instead of "unvollständig" Currently: Documentation states that --unshallow can NOT be used on INcomplete projects. This is wrong; Correct would be: --unshallow can NOT be used on complete projects. This change fixes that error in the German translation. Signed-off-by: Philipp Weißmann <mail@philipp-weissmann.de> Reviewed-by: Matthias Rüster <matthias.ruester@gmail.com>
| * | | l10n: it.po: remove an extra spaceCarmine Zaccagnino2019-06-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove an extra space between the dashes and the start of the "abort" option. Signed-off-by: Carmine Zaccagnino <carmine@carminezacc.com> Signed-off-by: Alessandro Menti <alessandro.menti@alessandromenti.it>
| * | | l10n: it.po: update the Italian translationAlessandro Menti2019-06-251-775/+1100
| | | | | | | | | | | | | | | | Signed-off-by: Alessandro Menti <alessandro.menti@alessandromenti.it>
| * | | l10n: ru.po: update Russian translationDimitriy Ryazantcev2019-06-211-4362/+7296
| | | | | | | | | | | | | | | | Signed-off-by: Dimitriy Ryazantcev <dimitriy.ryazantcev@gmail.com>
| * | | Merge branch 'master' of https://github.com/Softcatala/git-poJiang Xin2019-06-081-18/+17
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * 'master' of https://github.com/Softcatala/git-po: l10n: Update Catalan translation
| | * | | l10n: Update Catalan translationJordi Mas2019-06-081-18/+17
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Jordi Mas <jmas@softcatala.org>
* | | | | Sync with Git 2.22.1Junio C Hamano2019-08-112-0/+4
|\ \ \ \ \
| * | | | | Git 2.22.1v2.22.1Junio C Hamano2019-08-112-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Junio C Hamano <gitster@pobox.com>
| * | | | | .mailmap: update email address of Philip OakleyPhilip Oakley2019-08-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | My IEE 'home for life' email service is being withdrawn on 30 Sept 2019. Replace with my new email domain. I also have a secondary (backup) 'home for life' through <philipoakley@dunelm.org.uk>. Signed-off-by: Philip Oakley <philipoakley@iee.email> Signed-off-by: Philip Oakley <philipoakley@iee.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
| * | | | | Merge branch 'cb/xdiff-no-system-includes-in-dot-c' into maintJunio C Hamano2019-08-093-8/+0
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compilation fix. * cb/xdiff-no-system-includes-in-dot-c: xdiff: remove duplicate headers from xpatience.c xdiff: remove duplicate headers from xhistogram.c xdiff: drop system includes in xutils.c
| * \ \ \ \ \ Merge branch 'jk/no-system-includes-in-dot-c' into maintJunio C Hamano2019-08-093-3/+0
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compilation fix. * jk/no-system-includes-in-dot-c: wt-status.h: drop stdio.h include verify-tag: drop signal.h include
| * \ \ \ \ \ \ Merge branch 'sg/fsck-config-in-doc' into maintJunio C Hamano2019-08-091-0/+5
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doc update. * sg/fsck-config-in-doc: Documentation/git-fsck.txt: include fsck.* config variables
| * \ \ \ \ \ \ \ Merge branch 'jk/xdiff-clamp-funcname-context-index' into maintJunio C Hamano2019-08-092-2/+24
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The internal diff machinery can be made to read out of bounds while looking for --funcion-context line in a corner case, which has been corrected. * jk/xdiff-clamp-funcname-context-index: xdiff: clamp function context indices in post-image
* | | | | | | | | | doc: fix repeated wordsMark Rushakoff2019-08-119-9/+9
| |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Inspired by 21416f0a07 ("restore: fix typo in docs", 2019-08-03), I ran "git grep -E '(\b[a-zA-Z]+) \1\b' -- Documentation/" to find other cases where words were duplicated, e.g. "the the", and in most cases removed one of the repeated words. There were many false positives by this grep command, including deliberate repeated words like "really really" or valid uses of "that that" which I left alone, of course. I also did not correct any of the legitimate, accidentally repeated words in old RelNotes. Signed-off-by: Mark Rushakoff <mark.rushakoff@gmail.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* | | | | | | | | Git 2.23-rc2v2.23.0-rc2Junio C Hamano2019-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Junio C Hamano <gitster@pobox.com>
* | | | | | | | | Merge branch 'bc/hash-independent-tests-part-4'Junio C Hamano2019-08-092-9/+8
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test fix. * bc/hash-independent-tests-part-4: t0000: reword comments for "local" test t: decrease nesting in test_oid_to_path
| * | | | | | | | | t0000: reword comments for "local" testJeff King2019-08-081-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 01d3a526ad (t0000: check whether the shell supports the "local" keyword, 2017-10-26) added a test to gather data on whether people run the test suite with shells that don't support "local". After almost two years, nobody has complained, and several other uses have cropped up in test-lib-functions.sh. Let's declare it acceptable to use. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
| * | | | | | | | | t: decrease nesting in test_oid_to_pathJonathan Nieder2019-08-081-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | t1410.3 ("corrupt and checks") fails when run using dash versions before 0.5.8, with a cryptic message: mv: cannot stat '.git/objects//e84adb2704cbd49549e52169b4043871e13432': No such file or directory The function generating that path: test_oid_to_path () { echo "${1%${1#??}}/${1#??}" } which is supposed to produce a result like 12/3456789.... But a dash bug[*] causes it to instead expand to /3456789... The stream of symbols that makes up this function is hard for humans to follow, too. The complexity mostly comes from the repeated use of the expression ${1#??} for the basename of the loose object. Use a variable instead --- nowadays, the dialect of shell used by Git permits local variables, so this is cheap. An alternative way to work around [*] is to remove the double-quotes around test_oid_to_path's return value. That makes the expression easier for dash to read, but harder for humans. Let's prefer the rephrasing that's helpful for humans, too. Noticed by building on Ubuntu trusty, which uses dash 0.5.7. [*] Fixed by v0.5.8~13 ("[EXPAND] Propagate EXP_QPAT in subevalvar, 2013-08-23). Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* | | | | | | | | | Merge branch 'rs/plug-strbuf-reak-in-read-alt-refs'Junio C Hamano2019-08-091-0/+1
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Leakfix. * rs/plug-strbuf-reak-in-read-alt-refs: sha1-file: release strbuf after use
| * | | | | | | | | | sha1-file: release strbuf after useRené Scharfe2019-08-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* | | | | | | | | | | Merge branch 'mt/dir-iterator-updates'Junio C Hamano2019-08-092-4/+4
|\ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Leakfix. * mt/dir-iterator-updates: test-dir-iterator: use path argument directly dir-iterator: release strbuf after use
| * | | | | | | | | | | test-dir-iterator: use path argument directlyRené Scharfe2019-08-071-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid allocating and leaking a strbuf for holding a verbatim copy of the path argument and pass the latter directly to dir_iterator_begin() instead. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
| * | | | | | | | | | | dir-iterator: release strbuf after useRené Scharfe2019-08-071-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* | | | | | | | | | | | Merge branch 'ds/commit-graph-incremental'Junio C Hamano2019-08-091-5/+7
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Leakfix. * ds/commit-graph-incremental: commit-graph: release strbufs after use
| * | | | | | | | | | | | commit-graph: release strbufs after useRené Scharfe2019-08-071-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: René Scharfe <l.s.r@web.de> Acked-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* | | | | | | | | | | | | Merge branch 'ja/l10n-fixes'Junio C Hamano2019-08-082-5/+12
|\ \ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A few messages have been updated to help localization better. * ja/l10n-fixes: l10n: reformat some localized strings for v2.23.0