{"thread":{"id":"51054","subject":"What's cooking in git.git (May 2019, #01; Thu, 9)","startedAt":"2019-05-08T17:33:53Z","lastAt":"2019-06-21T20:08:25Z","messageCount":27,"participants":["Junio C Hamano","Denton Liu","Elijah Newren","Phillip Wood","Duy Nguyen","Johannes Schindelin","Johannes Sixt","Eric Sunshine","Ævar Arnfjörð Bjarmason"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"375172","messageId":"xmqqlfzgg8s3.fsf@gitster-ct.c.googlers.com","threadId":"51054","inReplyTo":null,"subject":"What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2019-05-08T17:23:24Z","receivedAt":"2019-05-08T17:33:53Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Here are the topics that have been cooking.  Commits prefixed with\n'-' are only in 'pu' (proposed updates) while commits prefixed with\n'+' are in 'next'.  The ones marked with '.' do not appear in any of\nthe integration branches, but I am still holding onto them.\n\nThe 8th batch of topics, which Hopefully is the final one before\n-rc0, have been pushed out to 'master'.  The \"no-extern\" topic is\nnow in 'next', with its merge conflict with many other topics, is\nstill slowing me down when it is moved earlier in the merge order.\nI expect it to need only one more topic shuffling before merged to\n'master', so I hope I'd survive.\n\nYou can find the changes described here in the integration branches\nof the repositories listed at\n\n    http://git-blame.blogspot.com/p/git-public-repositories.html\n\n--------------------------------------------------\n[Graduated to \"master\"]\n\n* cc/aix-has-fileno-as-a-macro (2019-04-25) 1 commit\n  (merged to 'next' on 2019-04-25 at f1d6464f98)\n + Makefile: use fileno macro work around on AIX\n (this branch is used by cc/access-on-aix-workaround.)\n\n AIX shared the same build issues with other BSDs around fileno(fp),\n which has been corrected.\n\n\n* cc/replace-graft-peel-tags (2019-04-15) 4 commits\n  (merged to 'next' on 2019-04-25 at f8d0db27ba)\n + replace: peel tag when passing a tag first to --graft\n + replace: peel tag when passing a tag as parent to --graft\n + t6050: redirect expected error output to a file\n + t6050: use test_line_count instead of wc -l\n\n When given a tag that points at a commit-ish, \"git replace --graft\"\n failed to peel the tag before writing a replace ref, which did not\n make sense because the old graft mechanism the feature wants to\n mimick only allowed to replace one commit object with another.\n This has been fixed.\n\n\n* dl/merge-cleanup-scissors-fix (2019-04-19) 10 commits\n  (merged to 'next' on 2019-04-25 at 2014eef6b1)\n + cherry-pick/revert: add scissors line on merge conflict\n + sequencer.c: save and restore cleanup mode\n + merge: add scissors line on merge conflict\n + merge: cleanup messages like commit\n + parse-options.h: extract common --cleanup option\n + commit: extract cleanup_mode functions to sequencer\n + t7502: clean up style\n + t7604: clean up style\n + t3507: clean up style\n + t7600: clean up style\n (this branch uses pw/sequencer-cleanup-with-signoff-x-fix.)\n\n The list of conflicted paths shown in the editor while concluding a\n conflicted merge was shown above the scissors line when the\n clean-up mode is set to \"scissors\", even though it was commented\n out just like the list of updated paths and other information to\n help the user explain the merge better.\n\n\n* dl/warn-tagging-a-tag (2019-04-12) 2 commits\n  (merged to 'next' on 2019-04-25 at 8b966d7fe8)\n + tag: advise on nested tags\n + tag: fix formatting\n\n \"git tag\" learned to give an advice suggesting it might be a\n mistake when creating an annotated or signed tag that points at\n another tag.\n\n\n* dr/ref-filter-push-track-fix (2019-04-18) 1 commit\n  (merged to 'next' on 2019-04-25 at 07db067adc)\n + ref-filter: use correct branch for %(push:track)\n\n %(push:track) token used in the --format option to \"git\n for-each-ref\" and friends was not showing the right branch, which\n has been fixed.\n\n\n* en/merge-directory-renames (2019-04-08) 15 commits\n  (merged to 'next' on 2019-04-25 at fd5b4f57b4)\n + merge-recursive: switch directory rename detection default\n + merge-recursive: give callers of handle_content_merge() access to contents\n + merge-recursive: track information associated with directory renames\n + t6043: fix copied test description to match its purpose\n + merge-recursive: switch from (oid,mode) pairs to a diff_filespec\n + merge-recursive: cleanup handle_rename_* function signatures\n + merge-recursive: track branch where rename occurred in rename struct\n + merge-recursive: remove ren[12]_other fields from rename_conflict_info\n + merge-recursive: shrink rename_conflict_info\n + merge-recursive: move some struct declarations together\n + merge-recursive: use 'ci' for rename_conflict_info variable name\n + merge-recursive: rename locals 'o' and 'a' to 'obuf' and 'abuf'\n + merge-recursive: rename diff_filespec 'one' to 'o'\n + merge-recursive: rename merge_options argument from 'o' to 'opt'\n + Use 'unsigned short' for mode, like diff_filespec does\n\n \"git merge-recursive\" backend recently learned a new heuristics to\n infer file movement based on how other files in the same directory\n moved.  As this is inherently less robust heuristics than the one\n based on the content similarity of the file itself (rather than\n based on what its neighbours are doing), it sometimes gives an\n outcome unexpected by the end users.  This has been toned down to\n leave the renamed paths in higher/conflicted stages in the index so\n that the user can examine and confirm the result.\n\n\n* jk/pack-objects-reports-num-objects-to-trace2 (2019-04-12) 1 commit\n  (merged to 'next' on 2019-04-25 at e79464c054)\n + pack-objects: write objects packed to trace2\n\n The \"git pack-objects\" command learned to report the number of\n objects it packed via the trace2 mechanism.\n\n\n* jk/prune-optim (2019-04-19) 1 commit\n  (merged to 'next' on 2019-04-25 at c50353b27f)\n + t5304: add a test for pruning with bitmaps\n\n A follow-up test for an earlier \"git prune\" improvements.\n\n\n* jk/untracked-cache-more-fixes (2019-04-19) 3 commits\n  (merged to 'next' on 2019-04-25 at a6037ddd54)\n + untracked-cache: simplify parsing by dropping \"len\"\n + untracked-cache: simplify parsing by dropping \"next\"\n + untracked-cache: be defensive about missing NULs in index\n\n Code clean-up.\n\n\n* js/misc-doc-fixes (2019-04-19) 8 commits\n  (merged to 'next' on 2019-04-25 at 6898f709d0)\n + Turn `git serve` into a test helper\n + test-tool: handle the `-C <directory>` option just like `git`\n + check-docs: do not bother checking for legacy scripts' documentation\n + docs: exclude documentation for commands that have been excluded\n + check-docs: allow command-list.txt to contain excluded commands\n + help -a: do not list commands that are excluded from the build\n + Makefile: drop the NO_INSTALL variable\n + remote-testgit: move it into the support directory for t5801\n\n \"make check-docs\", \"git help -a\", etc. did not account for cases\n where a particular build may deliberately omit some subcommands,\n which has been corrected.\n\n\n* js/trace2-to-directory (2019-03-22) 1 commit\n  (merged to 'next' on 2019-04-25 at 53adf71c41)\n + trace2: write to directory targets\n\n The trace2 tracing facility learned to auto-generate a filename\n when told to log to a directory.\n\n\n* jt/clone-server-option (2019-04-18) 2 commits\n  (merged to 'next' on 2019-04-25 at 21f07cc85d)\n + clone: send server options when using protocol v2\n + transport: die if server options are unsupported\n\n \"git clone\" learned a new --server-option option when talking over\n the protocol version 2.\n\n\n* jt/submodule-repo-is-with-worktree (2019-04-21) 1 commit\n  (merged to 'next' on 2019-04-25 at da2c6d684d)\n + worktree: update is_bare heuristics\n\n The logic to tell if a Git repository has a working tree protects\n \"git branch -D\" from removing the branch that is currently checked\n out by mistake.  The implementation of this logic was broken for\n repositories with unusual name, which unfortunately is the norm for\n submodules these days.  This has been fixed.\n\n\n* km/empty-repo-is-still-a-repo (2019-04-10) 3 commits\n  (merged to 'next' on 2019-04-25 at bb3d4406a5)\n + add: error appropriately on repository with no commits\n + dir: do not traverse repositories with no commits\n + submodule: refuse to add repository with no commits\n\n Running \"git add\" on a repository created inside the current\n repository is an explicit indication that the user wants to add it\n as a submodule, but when the HEAD of the inner repository is on an\n unborn branch, it cannot be added as a submodule.  Worse, the files\n in its working tree can be added as if they are a part of the outer\n repository, which is not what the user wants.  These problems are\n being addressed.\n\n\n* nd/sha1-name-c-wo-the-repository (2019-04-16) 34 commits\n  (merged to 'next' on 2019-04-25 at d826918329)\n + sha1-name.c: remove the_repo from get_oid_mb()\n + sha1-name.c: remove the_repo from other get_oid_*\n + sha1-name.c: remove the_repo from maybe_die_on_misspelt_object_name\n + submodule-config.c: use repo_get_oid for reading .gitmodules\n + sha1-name.c: add repo_get_oid()\n + sha1-name.c: remove the_repo from get_oid_with_context_1()\n + sha1-name.c: remove the_repo from resolve_relative_path()\n + sha1-name.c: remove the_repo from diagnose_invalid_index_path()\n + sha1-name.c: remove the_repo from handle_one_ref()\n + sha1-name.c: remove the_repo from get_oid_1()\n + sha1-name.c: remove the_repo from get_oid_basic()\n + sha1-name.c: remove the_repo from get_describe_name()\n + sha1-name.c: remove the_repo from get_oid_oneline()\n + sha1-name.c: add repo_interpret_branch_name()\n + sha1-name.c: remove the_repo from interpret_branch_mark()\n + sha1-name.c: remove the_repo from interpret_nth_prior_checkout()\n + sha1-name.c: remove the_repo from get_short_oid()\n + sha1-name.c: add repo_for_each_abbrev()\n + sha1-name.c: store and use repo in struct disambiguate_state\n + sha1-name.c: add repo_find_unique_abbrev_r()\n + sha1-name.c: remove the_repo from find_abbrev_len_packed()\n + sha1-name.c: remove the_repo from sort_ambiguous()\n + commit.c: add repo_get_commit_tree()\n + commit.cocci: refactor code, avoid double rewrite\n + refs.c: remove the_repo from read_ref_at()\n + refs.c: add repo_dwim_log()\n + refs.c: add repo_dwim_ref()\n + refs.c: remove the_repo from expand_ref()\n + refs.c: remove the_repo from substitute_branch_name()\n + refs.c: add refs_shorten_unambiguous_ref()\n + refs.c: add refs_ref_exists()\n + packfile.c: add repo_approximate_object_count()\n + builtin rebase: use oideq()\n + builtin rebase: use FREE_AND_NULL\n\n Further code clean-up to allow the lowest level of name-to-object\n mapping layer to work with a passed-in repository other than the\n default one.\n\n\n* pw/sequencer-cleanup-with-signoff-x-fix (2019-04-18) 1 commit\n  (merged to 'next' on 2019-04-25 at cc587fb2b9)\n + sequencer: fix cleanup with --signoff and -x\n (this branch is used by dl/merge-cleanup-scissors-fix.)\n\n \"git cherry-pick\" run with the \"-x\" or the \"--signoff\" option used\n to (and more importantly, ought to) clean up the commit log message\n with the --cleanup=space option by default, but this has been\n broken since late 2017.  This has been fixed.\n\n\n* ss/msvc-path-utils-fix (2019-04-09) 1 commit\n  (merged to 'next' on 2019-04-25 at ee2850da18)\n + MSVC: include compat/win32/path-utils.h for MSVC, too, for real_path()\n\n An earlier update for MinGW and Cygwin accidentally broke MSVC build,\n which has been fixed.\n\n\n* tb/unexpected (2019-04-10) 7 commits\n  (merged to 'next' on 2019-04-25 at c49927fca0)\n + rev-list: detect broken root trees\n + rev-list: let traversal die when --missing is not in use\n + get_commit_tree(): return NULL for broken tree\n + list-objects.c: handle unexpected non-tree entries\n + list-objects.c: handle unexpected non-blob entries\n + t: introduce tests for unexpected object types\n + t: move 'hex2oct' into test-lib-functions.sh\n\n Code tightening against a \"wrong\" object appearing where an object\n of a different type is expected, instead of blindly assuming that\n the connection between objects are correctly made.\n\n\n* tz/git-svn-doc-markup-fix (2019-04-10) 1 commit\n  (merged to 'next' on 2019-04-25 at 3efaa6285c)\n + Documentation/git-svn: improve asciidoctor compatibility\n\n Doc formatting fix.\n\n\n* vk/autoconf-gettext (2019-04-19) 1 commit\n  (merged to 'next' on 2019-04-25 at 918870cbc2)\n + autoconf: #include <libintl.h> when checking for gettext()\n\n The autoconf generated configure script failed to use the right\n gettext() implementations from -libintl by ignoring useless stub\n implementations shipped in some C library, which has been\n corrected.\n\n--------------------------------------------------\n[New Topics]\n\n* ab/perf-installed-fix (2019-05-08) 6 commits\n - perf-lib.sh: forbid the use of GIT_TEST_INSTALLED\n - perf tests: add \"bindir\" prefix to git tree test results\n - perf-lib.sh: remove GIT_TEST_INSTALLED from perf-lib.sh\n - perf-lib.sh: make \"./run <revisions>\" use the correct gits\n - perf aggregate: remove GIT_TEST_INSTALLED from --codespeed\n - perf README: correct docs for 3c8f12c96c regression\n\n Performance test framework has been broken and measured the version\n of Git that happens to be on $PATH, not the specified one to\n measure, for a while, which has been corrected.\n\n Will merge to 'next'.\n cf. <20190507105434.9600-1-avarab@gmail.com>\n\n\n* an/ignore-doc-update (2019-05-08) 1 commit\n - gitignore.txt: make slash-rules more readable\n\n The description about slashes in gitignore patterns (used to\n indicate things like \"anchored to this level only\" and \"only\n matches directories\") has been revamped.\n\n Almost there.\n cf. <20190507104507.18735-1-admin@in-ici.net>\n\n\n* bl/t4253-exit-code-from-format-patch (2019-05-07) 1 commit\n - t4253-am-keep-cr-dos: avoid using pipes\n\n Avoid patterns to pipe output from a git command to feed another\n command in tests.\n\n Will merge to 'next'.\n\n\n* cm/notes-comment-fix (2019-05-07) 1 commit\n - notes: correct documentation of format_display_notes()\n\n A stale in-code comment has been updated.\n\n Will merge to 'next'.\n\n\n* dl/branch-from-3dot-merge-base (2019-05-07) 2 commits\n - branch: make create_branch accept a merge base rev\n - t2018: cleanup in current test\n\n \"git branch new A...B\" and \"git checkout -b new A...B\" have been\n taught that in their contexts, the notation A...B means \"the merge\n base between these two commits\", just like \"git checkout A...B\"\n detaches HEAD at that commit.\n\n Will merge to 'next'.\n cf. <cover.1556366347.git.liu.denton@gmail.com>\n\n\n* ds/cvsexportcommit-force-text (2019-05-07) 1 commit\n - cvsexportcommit: force crlf translation\n\n \"git cvsexportcommit\" running on msys did not expect cvsnt showed\n \"cvs status\" output with CRLF line endings.\n\n Will merge to 'next'.\n\n\n* en/fast-export-encoding (2019-05-07) 5 commits\n - fast-export: do automatic reencoding of commit messages only if requested\n - fast-export: differentiate between explicitly utf-8 and implicitly utf-8\n - fast-export: avoid stripping encoding header if we cannot reencode\n - fast-import: support 'encoding' commit header\n - t9350: fix encoding test to actually test reencoding\n\n The \"git fast-export/import\" pair has been taught to handle commits\n with log messages in encoding other than UTF-8 better.\n\n Will merge to 'next'.\n\n\n* jh/trace2 (2019-04-26) 1 commit\n  (merged to 'next' on 2019-05-09 at e1bba8aeac)\n + trace2: fix incorrect function pointer check\n\n An embarrassing bugfix.\n\n Will merge to 'master'.\n\n\n* jk/apache-lsan (2019-05-08) 1 commit\n - t/lib-httpd: pass LSAN_OPTIONS through apache\n\n Allow tests that involve httpd to be run under leak sanitizer, just\n like we can already do so under address sanitizer.\n\n Will merge to 'next'.\n\n\n* jk/cocci-batch (2019-05-08) 2 commits\n - coccicheck: make batch size of 0 mean \"unlimited\"\n - coccicheck: optionally batch spatch invocations\n\n Optionally \"make coccicheck\" can feed multiple source files to\n spatch, gaining performance while spending more memory.\n\n Will merge to 'next'.\n\n\n* js/commit-graph-parse-leakfix (2019-05-07) 1 commit\n - commit-graph: fix memory leak\n\n Leakfix.\n\n Will merge to 'next'.\n\n\n* js/fsmonitor-refresh-after-discarding-index (2019-05-08) 2 commits\n - fsmonitor: force a refresh after the index was discarded\n - fsmonitor: demonstrate that it is not refreshed after discard_index()\n\n The fsmonitor interface got out of sync after the in-core index\n file gets discarded, which has been corrected.\n\n Will merge to 'next'.\n\n\n* js/t5580-unc-alternate-test (2019-05-07) 1 commit\n - t5580: verify that alternates can be UNC paths\n\n An additional test for MinGW\n\n Will merge to 'next'.\n\n\n* js/t6500-use-windows-pid-on-mingw (2019-05-08) 1 commit\n - t6500(mingw): use the Windows PID of the shell\n\n Future-proof a test against an update to MSYS2 runtime v3.x series.\n\n Will merge to 'next'.\n cf. <pull.185.git.gitgitgadget@gmail.com>\n It might be helpful in the longer term to encapsulate the code that\n uses /proc/$$/winpid into a helper function and use it anywhere $$\n is referenced, but let's defer it until we see such a callsite that\n would be helped by such a move.\n\n\n* mh/http-fread-api-fix (2019-05-08) 1 commit\n - Make fread/fwrite-like functions in http.c more like fread/fwrite.\n\n A pair of private functions in http.c that had names similar to\n fread/fwrite did not return the number of elements, which was found\n to be confusing.\n\n Will merge to 'next'.\n\n\n* nd/merge-quit (2019-05-07) 2 commits\n - merge: add --quit\n - merge: remove drop_save() in favor of remove_merge_branch_state()\n\n \"git merge\" learned \"--quit\" option that cleans up the in-progress\n merge while leaving the working tree and the index still in a mess.\n\n Hmph, why is this a good idea?\n\n\n* nd/parse-options-aliases (2019-05-07) 1 commit\n - parse-options: don't emit \"ambiguous option\" for aliases\n\n Attempt to use an abbreviated option in \"git clone --recurs\" is\n responded by a request to disambiguate between --recursive and\n --recurse-submodules, which is bad because these two are synonyms.\n The parse-options API has been extended to define such synonyms\n more easily and not produce an unnecessary failure.\n\n Will merge to 'next'.\n\n\n* pw/rebase-abort-clean-rewritten (2019-05-08) 1 commit\n - rebase --abort: cleanup refs/rewritten\n (this branch uses pw/rebase-i-internal.)\n\n \"git rebase --abort\" used to leave refs/rewritten/ when concluding\n \"git rebase -r\", which has been corrected.\n\n Will merge to 'next'.\n\n\n* sg/ci-libsvn-perl (2019-05-07) 1 commit\n - ci: install 'libsvn-perl' instead of 'git-svn'\n\n To run tests for Git SVN, our scripts for CI used to install the\n git-svn package (in the hope that it would bring in the right\n dependencies).  This has been updated to install the more direct\n dependency, namely, libsvn-perl.\n\n Will merge to 'next'.\n\n\n* tt/no-ipv6-fallback-for-winxp (2019-05-07) 1 commit\n - mingw: remove obsolete IPv6-related code\n\n Code cleanup.\n\n Will merge to 'next'.\n\n\n* jc/send-email-transferencoding-fix (2019-05-08) 2 commits\n - send-email: honor transferencoding config option again\n - send-email: update the mechanism to set default configuration values\n\n Since \"git send-email\" learned to take 'auto' as the value for the\n transfer-encoding, it by mistake stopped honoring the values given\n to the configuration variables sendemail.transferencoding and/or\n sendemail.<ident>.transferencoding.  Attempt to correct this.\n\n cf. <20190508105607.178244-1-gitster@pobox.com> (v2)\n\n--------------------------------------------------\n[Stalled]\n\n* jn/unknown-index-extensions (2018-11-21) 2 commits\n - index: offer advice for unknown index extensions\n - index: do not warn about unrecognized extensions\n\n A bit too alarming warning given when unknown index extensions\n exist is getting revamped.\n\n Expecting a reroll.\n\n\n* jc/format-patch-delay-message-id (2019-04-05) 1 commit\n - format-patch: move message-id and related headers to the end\n\n The location \"git format-patch --thread\" adds the Message-Id:\n header in the series of header fields has been moved down, which\n may help working around a suspected bug in GMail MSA, reported at\n <CAHk-=whP1stFZNAaJiMi5eZ9rj0MRt20Y_yHVczZPH+O01d+sA@mail.gmail.com>\n\n Waiting for feedback to see if it truly helps.\n Needs tests.\n\n\n* jt/fetch-cdn-offload (2019-03-12) 9 commits\n - SQUASH???\n - upload-pack: send part of packfile response as uri\n - fetch-pack: support more than one pack lockfile\n - upload-pack: refactor reading of pack-objects out\n - Documentation: add Packfile URIs design doc\n - Documentation: order protocol v2 sections\n - http-fetch: support fetching packfiles by URL\n - http: improve documentation of http_pack_request\n - http: use --stdin when getting dumb HTTP pack\n\n WIP for allowing a response to \"git fetch\" to instruct the bulk of\n the pack contents to be instead taken from elsewhere (aka CDN).\n\n Still being discussed.\n\n\n* js/add-i-coalesce-after-editing-hunk (2018-08-28) 1 commit\n - add -p: coalesce hunks before testing applicability\n\n Applicability check after a patch is edited in a \"git add -i/p\"\n session has been improved.\n\n Will hold.\n cf. <e5b2900a-0558-d3bf-8ea1-d526b078bbc2@talktalk.net>\n\n\n* js/protocol-advertise-multi (2018-12-28) 1 commit\n - protocol: advertise multiple supported versions\n\n The transport layer has been updated so that the protocol version\n used can be negotiated between the parties, by the initiator\n listing the protocol versions it is willing to talk, and the other\n side choosing from one of them.\n\n Expecting a reroll.\n cf. <CANq=j3u-zdb_FvNJGPCmygNMScseav63GhVvBX3NcVS4f7TejA@mail.gmail.com>\n\n\n* mk/use-size-t-in-zlib (2018-10-15) 1 commit\n - zlib.c: use size_t for size\n\n The wrapper to call into zlib followed our long tradition to use\n \"unsigned long\" for sizes of regions in memory, which have been\n updated to use \"size_t\".\n\n\n* dl/remote-save-to-push (2018-12-11) 1 commit\n - remote: add --save-to-push option to git remote set-url\n\n \"git remote set-url\" learned a new option that moves existing value\n of the URL field to pushURL field of the remote before replacing\n the URL field with a new value.\n\n Anybody who wants to champion this topic?\n I am personally not yet quite convinced if this is worth pursuing.\n\n--------------------------------------------------\n[Cooking]\n\n* nb/branch-show-other-worktrees-head (2019-05-07) 3 commits\n - branch: add worktree info on verbose output\n - branch: update output to include worktree info\n - ref-filter: add worktreepath atom\n\n \"git branch --list\" learned to show branches that are checked out\n in other worktrees connected to the same repository prefixed with\n '+', similar to the way the currently checked out branch is shown\n with '*' in front.\n\n\n* jc/make-dedup-ls-files-output (2019-04-22) 1 commit\n  (merged to 'next' on 2019-05-09 at e3d5825003)\n + Makefile: dedup list of files obtained from ls-files\n\n A \"ls-files\" that emulates \"find\" to enumerate files in the working\n tree resulted in duplicated Makefile rules that caused the build to\n issue an unnecessary warning during a trial build after merge\n conflicts are resolved in working tree *.h files but before the\n resolved results are added to the index.  This has been corrected.\n\n Will merge to 'master'.\n A not-so-low hanging fruit to teach ls-files to dedup either optionally\n or always has also been discussed, which probably is a good idea,\n to prevent mistakes similar to the bug this topic fixes in the future.\n\n\n* jk/ls-files-doc-markup-fix (2019-04-23) 1 commit\n  (merged to 'next' on 2019-05-09 at a68fe0ae72)\n + doc/ls-files: put nested list for \"-t\" option into block\n\n Docfix.\n\n Will merge to 'master'.\n\n\n* jk/p5302-avoid-collision-check-cost (2019-04-23) 1 commit\n  (merged to 'next' on 2019-05-09 at 8dc92cad96)\n + p5302: create the repo in each index-pack test\n\n Fix index-pack perf test so that the repeated invocations always\n run in an empty repository, which emulates the initial clone\n situation better.\n\n Will merge to 'master'.\n\n\n* dl/rev-tilde-doc-clarify (2019-05-08) 4 commits\n  (merged to 'next' on 2019-05-09 at 6efd564b11)\n + revisions.txt: remove ambibuity between <rev>:<path> and :<path>\n + revisions.txt: mention <rev>~ form\n + revisions.txt: mark optional rev arguments with []\n + revisions.txt: change \"rev\" to \"<rev>\"\n\n Docfix.\n\n Will merge to 'master'.\n\n\n* en/unicode-in-refnames (2019-04-26) 1 commit\n - Honor core.precomposeUnicode in more places\n\n The names of the refs stored as filesystem entities may become\n different from what the end-user expects, just like files in the\n working tree gets \"renamed\", on a filesystem like HFS+.  Work it\n around by paying attemption to the core.precomposeUnicode\n configuration.\n\n Looked sensible.  Ready for next?\n\n\n* jk/perf-aggregate-wo-libjson (2019-04-24) 1 commit\n  (merged to 'next' on 2019-05-09 at e697c1993b)\n + t/perf: depend on perl JSON only when using --codespeed\n\n The script to aggregate perf result unconditionally depended on\n libjson-perl even though it did not have to, which has been\n corrected.\n\n Will merge to 'master'.\n\n\n* cc/access-on-aix-workaround (2019-04-25) 1 commit\n  (merged to 'next' on 2019-05-09 at 79b25b1954)\n + git-compat-util: work around for access(X_OK) under root\n\n Workaround for standard-compliant but less-than-useful behaviour of\n access(2) for the root user.\n\n Will merge to 'master'.\n\n\n* dl/difftool-mergetool (2019-04-25) 6 commits\n - difftool: fallback on merge.guitool\n - difftool: make --gui, --tool and --extcmd mutually exclusive\n - mergetool: fallback to tool when guitool unavailable\n - mergetool: use get_merge_tool function\n - t7610: add mergetool --gui tests\n - t7610: unsuppress output\n\n Update \"git difftool\" and \"git mergetool\" so that the combinations\n of {diff,merge}.{tool,guitool} configuration variables serve as\n fallback settings of each other in a sensible order.\n\n Will merge to 'next'.\n\n\n* ds/midx-expire-repack (2019-04-25) 11 commits\n - t5319-multi-pack-index.sh: test batch size zero\n - midx: add test that 'expire' respects .keep files\n - multi-pack-index: test expire while adding packs\n - midx: implement midx_repack()\n - multi-pack-index: prepare 'repack' subcommand\n - multi-pack-index: implement 'expire' subcommand\n - midx: refactor permutation logic and pack sorting\n - midx: simplify computation of pack name lengths\n - multi-pack-index: prepare for 'expire' subcommand\n - Docs: rearrange subcommands for multi-pack-index\n - repack: refactor pack deletion for future use\n\n \"git multi-pack-index expire/repack\" are new subcommands that\n consult midx file and are used to drop unused pack files and\n coalesce small pack files that are still in use.\n\n Ready for next?\n cf. <20190424151428.170316-1-dstolee@microsoft.com> (v5)\n\n\n* es/first-contrib-tutorial (2019-05-08) 2 commits\n - documentation: add anchors to MyFirstContribution\n - documentation: add tutorial for first contribution\n\n A new tutorial targetting specifically aspiring git-core\n developers.\n\n I think we are almost there.\n cf. <20190507213040.151799-1-emilyshaffer@google.com> (v5)\n\n\n* pw/clean-sequencer-state-upon-final-commit (2019-04-17) 2 commits\n  (merged to 'next' on 2019-05-09 at cf6cce8ca7)\n + fix cherry-pick/revert status after commit\n + commit/reset: try to clean up sequencer state\n\n \"git chery-pick\" (and \"revert\" that shares the same runtime engine)\n that deals with multiple commits got confused when the final step\n gets stopped with a conflict and the user concluded the sequence\n with \"git commit\".  Attempt to fix it by cleaning up the state\n files used by these commands in such a situation.\n\n Will merge to 'master'.\n\n\n* dl/no-extern-in-func-decl (2019-05-05) 3 commits\n  (merged to 'next' on 2019-05-09 at d165ac4cee)\n + *.[ch]: manually align parameter lists\n + *.[ch]: remove extern from function declarations using sed\n + *.[ch]: remove extern from function declarations using spatch\n\n Mechanically and systematically drop \"extern\" from function\n declarlation.\n\n Will merge to 'master'.\n\n\n* js/partial-clone-connectivity-check (2019-05-05) 2 commits\n - t/perf: add perf script for partial clones\n  (merged to 'next' on 2019-04-25 at ebd8b4bffd)\n + clone: do faster object check for partial clones\n\n During an initial \"git clone --depth=...\" partial clone, it is\n pointless to spend cycles for a large portion of the connectivity\n check that enumerates and skips promisor objects (which by\n definition is all objects fetched from the other side).  This has\n been optimized out.\n\n Will merge to 'next' and then to 'master'.\n\n\n* cc/multi-promisor (2019-04-15) 17 commits\n - Move core_partial_clone_filter_default to promisor-remote.c\n - Move repository_format_partial_clone to promisor-remote.c\n - Remove fetch-object.{c,h} in favor of promisor-remote.{c,h}\n - remote: add promisor and partial clone config to the doc\n - partial-clone: add multiple remotes in the doc\n - t0410: test fetching from many promisor remotes\n - builtin/fetch: remove unique promisor remote limitation\n - promisor-remote: parse remote.*.partialclonefilter\n - diff: use promisor-remote.h instead of fetch-object.h\n - Use promisor_remote_get_direct() and has_promisor_remote()\n - promisor-remote: use repository_format_partial_clone\n - promisor-remote: add promisor_remote_reinit()\n - promisor-remote: implement promisor_remote_get_direct()\n - Add initial support for many promisor remotes\n - fetch-object: make functions return an error code\n - t0410: remove pipes after git commands\n - Merge branch 'jt/batch-fetch-blobs-in-diff' into cc/multi-promisor\n\n Teach the lazy clone machinery that there can be more than one\n promisor remote and consult them in order when downloading missing\n objects on demand.\n\n Needs review.\n\n\n* nd/switch-and-restore (2019-05-07) 43 commits\n - Declare both git-switch and git-restore experimental\n - help: move git-diff and git-reset to different groups\n - doc: promote \"git restore\"\n - user-manual.txt: prefer 'merge --abort' over 'reset --hard'\n - completion: support restore\n - t: add tests for restore\n - restore: support --patch\n - restore: replace --force with --ignore-unmerged\n - restore: default to --source=HEAD when only --staged is specified\n - restore: reject invalid combinations with --staged\n - restore: add --worktree and --staged\n - checkout: factor out worktree checkout code\n - restore: disable overlay mode by default\n - restore: make pathspec mandatory\n - restore: take tree-ish from --source option instead\n - checkout: split part of it to new command 'restore'\n - doc: promote \"git switch\"\n - completion: support switch\n - t: add tests for switch\n - switch: make --orphan switch to an empty tree\n - switch: reject if some operation is in progress\n - switch: no worktree status unless real branch switch happens\n - switch: implicit dwim, use --no-guess to disable it\n - switch: add short option for --detach\n - switch: only allow explicit detached HEAD\n - switch: reject \"do nothing\" case\n - switch: stop accepting pathspec\n - switch: remove -l\n - switch: add --discard-changes\n - switch: better names for -b and -B\n - checkout: split part of it to new command 'switch'\n - checkout: split options[] array in three pieces\n - checkout: move 'confict_style' and 'dwim_..' to checkout_opts\n - checkout: make \"opts\" in cmd_checkout() a pointer\n - checkout: factor out some code in parse_branchname_arg()\n - checkout: keep most #include sorted\n - checkout: inform the user when removing branch state\n - checkout: advice how to get out of detached HEAD mode\n - t: rename t2014-switch.sh to t2014-checkout-switch.sh\n - git-checkout.txt: fix monospace typeset\n - doc: document --overwrite-ignore\n - git-checkout.txt: fix one syntax line\n - git-checkout.txt: spell out --no-option\n\n Two new commands \"git switch\" and \"git restore\" are introduced to\n split \"checking out a branch to work on advancing its history\" and\n \"checking out paths out of the index and/or a tree-ish to work on\n advancing the current history\" out of the single \"git checkout\"\n command.\n\n The \"switch\" part seems more or less ready for testing.  Perhaps\n we should split this back into two topics and merge it to 'next'.\n cf. <20190329103919.15642-1-pclouds@gmail.com> (switch v6)\n cf. <20190425094600.15673-1-pclouds@gmail.com> (restore v3)\n\n\n* ew/repack-with-bitmaps-by-default (2019-03-18) 3 commits\n  (merged to 'next' on 2019-05-09 at 4f8e8b01c8)\n + pack-objects: default to writing bitmap hash-cache\n + t5310: correctly remove bitmaps for jgit test\n + repack: enable bitmaps by default on bare repos\n\n The connectivity bitmaps are created by default in bare\n repositories now; also the pathname hash-cache is created by\n default to avoid making crappy deltas when repacking.\n\n Will merge to 'master'.\n cf. <87a7g2iuem.fsf@evledraar.gmail.com>\n\n\n* jc/format-patch-noclobber (2019-02-22) 1 commit\n - format-patch: --no-clobber refrains from overwriting output files\n\n \"git format-patch\" used to overwrite an existing patch/cover-letter\n file.  A new \"--no-clobber\" option stops it.\n\n Undecided but inclined to discard.\n\n\n* am/p4-branches-excludes (2019-04-02) 8 commits\n - git-p4: respect excluded paths when detecting branches\n - git-p4: add failing test for \"git-p4: respect excluded paths when detecting branches\"\n - git-p4: don't exclude other files with same prefix\n - git-p4: add failing test for \"don't exclude other files with same prefix\"\n - git-p4: don't groom exclude path list on every commit\n - git-p4: match branches case insensitively if configured\n - git-p4: add failing test for \"git-p4: match branches case insensitively if configured\"\n - git-p4: detect/prevent infinite loop in gitCommitByP4Change()\n\n \"git p4\" update.\n\n Is this ready for 'next'?\n\n\n* dl/rebase-i-keep-base (2019-04-25) 6 commits\n - rebase: teach rebase --keep-base\n - rebase: fast-forward --fork-point in more cases\n - rebase: fast-forward --onto in more cases\n - rebase: refactor can_fast_forward into goto tower\n - t3432: test rebase fast-forward behavior\n - t3431: add rebase --fork-point tests\n\n \"git rebase --keep-base <upstream>\" tries to find the original base\n of the topic being rebased and rebase on top of that same base,\n which is useful when running the \"git rebase -i\" (and its limited\n variant \"git rebase -x\").\n\n The command also has learned to fast-forward in more cases where it\n can instead of replaying to recreate identical commits.\n\n On hold.\n cf. <20190508001252.15752-1-avarab@gmail.com>\n cf. <xmqqa7fxionx.fsf@gitster-ct.c.googlers.com>\n\n\n* jh/trace2-sid-fix (2019-05-07) 11 commits\n - trace2: fixup access problem on /etc/gitconfig in read_very_early_config\n  (merged to 'next' on 2019-04-25 at a5c08f1226)\n + trace2: update docs to describe system/global config settings\n + trace2: make SIDs more unique\n + trace2: clarify UTC datetime formatting\n + trace2: report peak memory usage of the process\n + trace2: use system/global config for default trace2 settings\n + config: add read_very_early_config()\n + trace2: find exec-dir before trace2 initialization\n + trace2: add absolute elapsed time to start event\n + trace2: refactor setting process starting time\n + config: initialize opts structure in repo_read_config()\n\n Polishing of the new trace2 facility continues.  The system-level\n configuration can specify site-wide trace2 settings, which can be\n overridden with per-user configuration and environment variables.\n\n Will merge to 'next' and then to 'master'.\n cf. <pull.169.v4.git.gitgitgadget@gmail.com> (v4)\n\n\n* pw/rebase-i-internal (2019-04-19) 13 commits\n  (merged to 'next' on 2019-05-09 at 1206aa6865)\n + rebase -i: run without forking rebase--interactive\n + rebase: use a common action enum\n + rebase -i: use struct rebase_options in do_interactive_rebase()\n + rebase -i: use struct rebase_options to parse args\n + rebase -i: use struct object_id for squash_onto\n + rebase -i: use struct commit when parsing options\n + rebase -i: remove duplication\n + rebase -i: combine rebase--interactive.c with rebase.c\n + rebase: use OPT_RERERE_AUTOUPDATE()\n + rebase: rename write_basic_state()\n + rebase: don't translate trace strings\n + sequencer: always discard index after checkout\n + Merge branch 'ag/sequencer-reduce-rewriting-todo' into pw/rebase-i-internal\n (this branch is used by pw/rebase-abort-clean-rewritten.)\n\n The internal implementation of \"git rebase -i\" has been updated to\n avoid forking a separate \"rebase--interactive\" process.\n\n Will merge to 'master'.\n\n\n* nd/worktree-name-sanitization (2019-03-20) 2 commits\n - SQUASH???\n - worktree add: sanitize worktree names\n\n In recent versions of Git, per-worktree refs are exposed in\n refs/worktrees/<wtname>/ hierarchy, which means that worktree names\n must be a valid refname component.  The code now sanitizes the names\n given to worktrees, to make sure these refs are well-formed.\n\n I am inclined to squash the fix at the tip in and merge the result\n to 'next'.  Opinions?\n\n\n* ds/commit-graph-format-v2 (2019-05-08) 6 commits\n - commit-graph: remove Future Work section\n - commit-graph: implement file format version 2\n - commit-graph: add --version=<n> option\n - commit-graph: create new version parameter\n - commit-graph: collapse parameters into flags\n - commit-graph: return with errors during write\n\n Introduce version 2 of the commit-graph format to correct\n deficiency in the initial version.\n\n Still actively discussed.\n cf. <pull.112.v3.git.gitgitgadget@gmail.com> (v3)\n\n\n* br/blame-ignore (2019-04-14) 6 commits\n - blame: use a fingerprint heuristic to match ignored lines\n - blame: optionally track line fingerprints during fill_blame_origin()\n - blame: add config options to handle output for ignored lines\n - blame: add the ability to ignore commits and their changes\n - blame: use a helper function in blame_chunk()\n - Move init_skiplist() outside of fsck\n\n \"git blame\" learned to \"ignore\" commits in the history, whose\n effects (as well as their presence) get ignored.\n\n Expecting a reroll.\n cf. <20190410162409.117264-1-brho@google.com> (v6)\n cf. <a742dd62-c84e-1f85-0663-4a3aa4d14989@google.com>\n cf. <3db6bad3-e7a5-af1d-3fe2-321bd17db2c6@google.com>\n\n--------------------------------------------------\n[Discarded]\n\n* nd/precious (2019-04-09) 1 commit\n - Introduce \"precious\" file concept\n\n \"git clean\" learned to pay attention to the 'precious' attributes\n and keep untracked paths with the attribute instead of removing\n when the \"--keep-precious\" is given.\n\n Retracted.\n cf. <CACsJy8AEZ-Lz6zgEsuNukvphB9TTa9FAC1gK05fhnie2xtfc9w@mail.gmail.com>\n\n I am not sure what aspect of this longer-term \"precious\" vision,\n which gets taught to various commands and use cases individually\n and incrementally, Ævar finds problematic, which I understand is\n the reason of redtraction.\n\n\n* nd/config-move-to (2019-01-14) 7 commits\n . config.h: fix hdr-check warnings\n . config: add --move-to\n . config: factor out set_config_source_file()\n . config: use OPT_FILENAME()\n . config.c: add repo_config_set_worktree_gently()\n . worktree.c: add get_worktree_config()\n . config.c: avoid git_path() in do_git_config_sequence()\n\n Dropped.\n cf. <CACsJy8DcaxBLCa2vK=MfoxkaHS0gDmdUsmamyqE2yOaoG_Esog@mail.gmail.com>\n\n\n* dm/some-stdio-functions-are-macro-on-freebsd (2019-02-01) 1 commit\n . http: cast result to FILE *\n\n Variants of BSD define fileno(fh) as a macro, breaking a program\n that passes a \"void *\" to it.\n\n Can be safely discarded.\n cf. <CACsJy8BcyD199L4qGv6-TP-8HD+GS+ZDNN5jspkh5uVaWekkoQ@mail.gmail.com>\n\n\n* hs/send-email-transferencoding-fix (2019-04-10) 1 commit\n . send-email: honor transferencoding config option again\n\n Since \"git send-email\" learned to take 'auto' as the value for the\n transfer-encoding, it by mistake stopped honoring the values given\n to the configuration variables sendemail.transferencoding and/or\n sendemail.<ident>.transferencoding.  Attempt to correct this.\n\n Not quite.\n cf. <xmqq8swi34h5.fsf@gitster-ct.c.googlers.com>\n Replaced by jc/send-email-transferencoding-fix\n"},{"id":"375173","messageId":"20190508174817.GB23712@archbookpro.localdomain","threadId":"51054","inReplyTo":"xmqqlfzgg8s3.fsf@gitster-ct.c.googlers.com","subject":"Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Denton Liu","fromEmail":"liu.denton@gmail.com","sentAt":"2019-05-08T17:48:17Z","receivedAt":"2019-05-08T17:50:21Z","isPatch":false,"sender":{"key":"liu.denton@gmail.com","avatar":"https://avatars.githubusercontent.com/u/9620836?v=4"},"body":"Hi Junio,\n\nOn Thu, May 09, 2019 at 02:23:24AM +0900, Junio C Hamano wrote:\n> Here are the topics that have been cooking.  Commits prefixed with\n> '-' are only in 'pu' (proposed updates) while commits prefixed with\n> '+' are in 'next'.  The ones marked with '.' do not appear in any of\n> the integration branches, but I am still holding onto them.\n> \n> The 8th batch of topics, which Hopefully is the final one before\n> -rc0, have been pushed out to 'master'.  The \"no-extern\" topic is\n> now in 'next', with its merge conflict with many other topics, is\n> still slowing me down when it is moved earlier in the merge order.\n> I expect it to need only one more topic shuffling before merged to\n> 'master', so I hope I'd survive.\n\nThanks for taking on the hard work for this!\n\n> \n> You can find the changes described here in the integration branches\n> of the repositories listed at\n> \n>     http://git-blame.blogspot.com/p/git-public-repositories.html\n> \n\n[snip]\n\n> * dl/difftool-mergetool (2019-04-25) 6 commits\n>  - difftool: fallback on merge.guitool\n>  - difftool: make --gui, --tool and --extcmd mutually exclusive\n>  - mergetool: fallback to tool when guitool unavailable\n>  - mergetool: use get_merge_tool function\n>  - t7610: add mergetool --gui tests\n>  - t7610: unsuppress output\n> \n>  Update \"git difftool\" and \"git mergetool\" so that the combinations\n>  of {diff,merge}.{tool,guitool} configuration variables serve as\n>  fallback settings of each other in a sensible order.\n> \n>  Will merge to 'next'.\n\nA reroll of this was sent at\n<cover.1556518203.git.liu.denton@gmail.com> based on some comments that\nDavid Aguilar made.\n\nThanks,\n\nDenton\n"},{"id":"375175","messageId":"CABPp-BH5jjyQFXoksajA6dn307LvWM1m6kmtE5O4HXtgtZ6r5g@mail.gmail.com","threadId":"51054","inReplyTo":"xmqqlfzgg8s3.fsf@gitster-ct.c.googlers.com","subject":"Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Elijah Newren","fromEmail":"newren@gmail.com","sentAt":"2019-05-08T18:02:41Z","receivedAt":"2019-05-08T18:02:55Z","isPatch":false,"sender":{"key":"newren@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5455730?v=4"},"body":"On Wed, May 8, 2019 at 10:23 AM Junio C Hamano <gitster@pobox.com> wrote:\n\n> * en/unicode-in-refnames (2019-04-26) 1 commit\n>  - Honor core.precomposeUnicode in more places\n>\n>  The names of the refs stored as filesystem entities may become\n>  different from what the end-user expects, just like files in the\n>  working tree gets \"renamed\", on a filesystem like HFS+.  Work it\n>  around by paying attemption to the core.precomposeUnicode\n>  configuration.\n>\n>  Looked sensible.  Ready for next?\n\nI believe so.  en/unicode-in-refnames represents v2; the last \"What's\ncooking?\" email went out with v1 and I responded that a small commit\nmessage cleanup was needed as per Torsten's review, but that was the\nonly issue I was aware of.\n\nHowever, I think your summary of this topic still needs some minor\nwording/spelling corrections; here's your summary with my suggested\nrevisions:\n\nOn a filesystem like HFS+, the names of the refs stored as filesystem\nentities may become different from what the end-user expects, just\nlike files in the working tree get \"renamed\".  Work around the\nmismatch by paying attention to the core.precomposeUnicode\nconfiguration.\n"},{"id":"375223","messageId":"6726f99a-ec27-b72f-39d7-03eecb555197@gmail.com","threadId":"51054","inReplyTo":"xmqqlfzgg8s3.fsf@gitster-ct.c.googlers.com","subject":"Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Phillip Wood","fromEmail":"phillip.wood123@gmail.com","sentAt":"2019-05-09T13:24:47Z","receivedAt":"2019-05-09T13:24:53Z","isPatch":false,"sender":{"key":"phillip.wood@dunelm.org.uk","avatar":null},"body":"On 08/05/2019 18:23, Junio C Hamano wrote:\n> * pw/rebase-abort-clean-rewritten (2019-05-08) 1 commit\n>   - rebase --abort: cleanup refs/rewritten\n>   (this branch uses pw/rebase-i-internal.)\n> \n>   \"git rebase --abort\" used to leave refs/rewritten/ when concluding\n>   \"git rebase -r\", which has been corrected.\n> \n>   Will merge to 'next'.\n\nCan you hold off on this one please, I think we should clean up \nrefs/rewritten/ on --quit as well (I'm not sure I've convinced dscho \nabout that yet though [1])\n\nThanks\n\nPhillip\n\n[1] \nhttps://public-inbox.org/git/4d486504-7f64-95fb-b7eb-51d424f3e6cc@gmail.com/#t\n"},{"id":"375224","messageId":"CACsJy8Ar8rCOhkXv6QUfEiOLOepfU6KNr34K7qFaQiMcgQCmLQ@mail.gmail.com","threadId":"51054","inReplyTo":"xmqqlfzgg8s3.fsf@gitster-ct.c.googlers.com","subject":"Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2019-05-09T13:44:03Z","receivedAt":"2019-05-09T13:44:32Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Thu, May 9, 2019 at 12:23 AM Junio C Hamano <gitster@pobox.com> wrote:\n>\n> * nd/merge-quit (2019-05-07) 2 commits\n>  - merge: add --quit\n>  - merge: remove drop_save() in favor of remove_merge_branch_state()\n>\n>  \"git merge\" learned \"--quit\" option that cleans up the in-progress\n>  merge while leaving the working tree and the index still in a mess.\n>\n>  Hmph, why is this a good idea?\n\nThe first reason is consistency, besides bisect, all other in-progress\ncommands have both --abort and --quit.\n\nThe second is because it's an escape hatch suggestion in git-switch.\nAnd this goes back to the first reason because git-checkout will just\nlet you switch and do stuff. If you forget about the merge, at some\npoint continue the merge won't even make sense.\n\n> * nd/switch-and-restore (2019-05-07) 43 commits\n>  - Declare both git-switch and git-restore experimental\n>  - help: move git-diff and git-reset to different groups\n>  - doc: promote \"git restore\"\n>  - user-manual.txt: prefer 'merge --abort' over 'reset --hard'\n>  - completion: support restore\n>  - t: add tests for restore\n>  - restore: support --patch\n>  - restore: replace --force with --ignore-unmerged\n>  - restore: default to --source=HEAD when only --staged is specified\n>  - restore: reject invalid combinations with --staged\n>  - restore: add --worktree and --staged\n>  - checkout: factor out worktree checkout code\n>  - restore: disable overlay mode by default\n>  - restore: make pathspec mandatory\n>  - restore: take tree-ish from --source option instead\n>  - checkout: split part of it to new command 'restore'\n>  - doc: promote \"git switch\"\n>  - completion: support switch\n>  - t: add tests for switch\n>  - switch: make --orphan switch to an empty tree\n>  - switch: reject if some operation is in progress\n>  - switch: no worktree status unless real branch switch happens\n>  - switch: implicit dwim, use --no-guess to disable it\n>  - switch: add short option for --detach\n>  - switch: only allow explicit detached HEAD\n>  - switch: reject \"do nothing\" case\n>  - switch: stop accepting pathspec\n>  - switch: remove -l\n>  - switch: add --discard-changes\n>  - switch: better names for -b and -B\n>  - checkout: split part of it to new command 'switch'\n>  - checkout: split options[] array in three pieces\n>  - checkout: move 'confict_style' and 'dwim_..' to checkout_opts\n>  - checkout: make \"opts\" in cmd_checkout() a pointer\n>  - checkout: factor out some code in parse_branchname_arg()\n>  - checkout: keep most #include sorted\n>  - checkout: inform the user when removing branch state\n>  - checkout: advice how to get out of detached HEAD mode\n>  - t: rename t2014-switch.sh to t2014-checkout-switch.sh\n>  - git-checkout.txt: fix monospace typeset\n>  - doc: document --overwrite-ignore\n>  - git-checkout.txt: fix one syntax line\n>  - git-checkout.txt: spell out --no-option\n>\n>  Two new commands \"git switch\" and \"git restore\" are introduced to\n>  split \"checking out a branch to work on advancing its history\" and\n>  \"checking out paths out of the index and/or a tree-ish to work on\n>  advancing the current history\" out of the single \"git checkout\"\n>  command.\n>\n>  The \"switch\" part seems more or less ready for testing.  Perhaps\n>  we should split this back into two topics and merge it to 'next'.\n>  cf. <20190329103919.15642-1-pclouds@gmail.com> (switch v6)\n>  cf. <20190425094600.15673-1-pclouds@gmail.com> (restore v3)\n\nNo opinon here.\n\nI do have three small patches to refine git-switch. But I think we can\ndo it on top. Probably best that way anyway to keep the justification\nfor the changes in commit message.\n\ngit-restore works quite nicely for me, by my opinion in this area does\nnot count. Besides Emily's usability issue with shell wildcard\nexpansion, intent-to-add support is still not there. And Phillip might\nwant to change --discard-changes behavior. That's all that's left.\n-- \nDuy\n"},{"id":"375254","messageId":"nycvar.QRO.7.76.6.1905092243080.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"xmqqlfzgg8s3.fsf@gitster-ct.c.googlers.com","subject":"en/fast-export-encoding, was Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-05-09T20:45:54Z","receivedAt":"2019-05-09T20:46:18Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Junio & Elijah,\n\nOn Thu, 9 May 2019, Junio C Hamano wrote:\n\n> * en/fast-export-encoding (2019-05-07) 5 commits\n>  - fast-export: do automatic reencoding of commit messages only if requested\n>  - fast-export: differentiate between explicitly utf-8 and implicitly utf-8\n>  - fast-export: avoid stripping encoding header if we cannot reencode\n>  - fast-import: support 'encoding' commit header\n>  - t9350: fix encoding test to actually test reencoding\n>\n>  The \"git fast-export/import\" pair has been taught to handle commits\n>  with log messages in encoding other than UTF-8 better.\n\nThis breaks on Windows, see\nhttps://dev.azure.com/gitgitgadget/git/_build/results?buildId=8298&view=ms.vss-test-web.build-test-results-tab\n\nSadly, I ran out of time looking at it in detail.\n\nCiao,\nDscho\n"},{"id":"375255","messageId":"nycvar.QRO.7.76.6.1905092251200.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"xmqqlfzgg8s3.fsf@gitster-ct.c.googlers.com","subject":"nd/merge-quit, was Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-05-09T20:54:01Z","receivedAt":"2019-05-09T20:54:25Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Junio & Duy,\n\nOn Thu, 9 May 2019, Junio C Hamano wrote:\n\n> * nd/merge-quit (2019-05-07) 2 commits\n>  - merge: add --quit\n>  - merge: remove drop_save() in favor of remove_merge_branch_state()\n>\n>  \"git merge\" learned \"--quit\" option that cleans up the in-progress\n>  merge while leaving the working tree and the index still in a mess.\n>\n>  Hmph, why is this a good idea?\n\nIt also seems to work *only* on Linux. At least the tests break on macOS\nand on Windows:\n\nhttps://dev.azure.com/gitgitgadget/git/_build/results?buildId=8313&view=ms.vss-test-web.build-test-results-tab\n\nSadly, I ran out of time do look into this (I am pretty busy preparing Git\nfor Windows for v2.22.0-rc0).\n\nCiao,\nDscho\n"},{"id":"375276","messageId":"CABPp-BGfLrggLTmo+9LuLH_iGJoRNv7SHATw4XQCNx4Rk6wc7g@mail.gmail.com","threadId":"51054","inReplyTo":"nycvar.QRO.7.76.6.1905092243080.44@tvgsbejvaqbjf.bet","subject":"Re: en/fast-export-encoding, was Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Elijah Newren","fromEmail":"newren@gmail.com","sentAt":"2019-05-10T00:14:55Z","receivedAt":"2019-05-10T00:15:09Z","isPatch":false,"sender":{"key":"newren@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5455730?v=4"},"body":"Hi Johannes,\n\nOn Thu, May 9, 2019 at 1:46 PM Johannes Schindelin\n<Johannes.Schindelin@gmx.de> wrote:\n>\n> Hi Junio & Elijah,\n>\n> On Thu, 9 May 2019, Junio C Hamano wrote:\n>\n> > * en/fast-export-encoding (2019-05-07) 5 commits\n> >  - fast-export: do automatic reencoding of commit messages only if requested\n> >  - fast-export: differentiate between explicitly utf-8 and implicitly utf-8\n> >  - fast-export: avoid stripping encoding header if we cannot reencode\n> >  - fast-import: support 'encoding' commit header\n> >  - t9350: fix encoding test to actually test reencoding\n> >\n> >  The \"git fast-export/import\" pair has been taught to handle commits\n> >  with log messages in encoding other than UTF-8 better.\n>\n> This breaks on Windows, see\n> https://dev.azure.com/gitgitgadget/git/_build/results?buildId=8298&view=ms.vss-test-web.build-test-results-tab\n>\n> Sadly, I ran out of time looking at it in detail.\n\nThanks for the heads up, and for taking some time to check it out.\nThe error doesn't seem obvious from the log.  Does Azure Pipelines\nhave anything like CircleCI's \"Debug with SSH\" feature[1]?  (Where one\ncan click a \"Rerun job with SSH\", and it'll restart the pipeline but\nalso print out an ssh command someone can use to directly access the\nbox on which the test is running, in order to be able to investigate.)\n Failing that, assuming I can find a Windows system somewhere, is\nthere a list of steps for setting up a development environment and\nbuilding git on Windows?\n\nElijah\n\n[1] https://circleci.com/docs/2.0/ssh-access-jobs/\n"},{"id":"375280","messageId":"f8eb246f-a936-e9df-4bb4-068b86a62baf@kdbg.org","threadId":"51054","inReplyTo":"CABPp-BGfLrggLTmo+9LuLH_iGJoRNv7SHATw4XQCNx4Rk6wc7g@mail.gmail.com","subject":"Re: en/fast-export-encoding, was Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Johannes Sixt","fromEmail":"j6t@kdbg.org","sentAt":"2019-05-10T06:21:08Z","receivedAt":"2019-05-10T06:21:14Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Am 10.05.19 um 02:14 schrieb Elijah Newren:\n> Hi Johannes,\n> \n> On Thu, May 9, 2019 at 1:46 PM Johannes Schindelin\n> <Johannes.Schindelin@gmx.de> wrote:\n>>\n>> Hi Junio & Elijah,\n>>\n>> On Thu, 9 May 2019, Junio C Hamano wrote:\n>>\n>>> * en/fast-export-encoding (2019-05-07) 5 commits\n>>>  - fast-export: do automatic reencoding of commit messages only if requested\n>>>  - fast-export: differentiate between explicitly utf-8 and implicitly utf-8\n>>>  - fast-export: avoid stripping encoding header if we cannot reencode\n>>>  - fast-import: support 'encoding' commit header\n>>>  - t9350: fix encoding test to actually test reencoding\n>>>\n>>>  The \"git fast-export/import\" pair has been taught to handle commits\n>>>  with log messages in encoding other than UTF-8 better.\n>>\n>> This breaks on Windows, see\n>> https://dev.azure.com/gitgitgadget/git/_build/results?buildId=8298&view=ms.vss-test-web.build-test-results-tab\n>>\n>> Sadly, I ran out of time looking at it in detail.\n> \n> Thanks for the heads up, and for taking some time to check it out.\n> The error doesn't seem obvious from the log.  Does Azure Pipelines\n> have anything like CircleCI's \"Debug with SSH\" feature[1]?  (Where one\n> can click a \"Rerun job with SSH\", and it'll restart the pipeline but\n> also print out an ssh command someone can use to directly access the\n> box on which the test is running, in order to be able to investigate.)\n>  Failing that, assuming I can find a Windows system somewhere, is\n> there a list of steps for setting up a development environment and\n> building git on Windows?\n\nI'll just tell you why things go wrong here:\n\nIn these cases, a byte that is intended to be an ISO8859-something\ncharacters is passed via the command line. This cannot work as intended\non Windows, because the command line is not just a stream of bytes, but\na string of characters. On Windows (and presumably also on macOS), the\ncommand line bytes are interpreted as UTF-8. As such, the bytes undergo\nsome encoding conversions between UTF-8 and UTF-16LE. That cannot work\nwhen the bytes are not correct UTF-8 characters.\n\nTo make the tests pass you have to pass the ISO8859-something characters\nvia a file.\n\n-- Hannes\n"},{"id":"375284","messageId":"CACsJy8DTErpeoNHUkCieDafnjc3iwg6QKAp2VP-8tUNYh33tJA@mail.gmail.com","threadId":"51054","inReplyTo":"nycvar.QRO.7.76.6.1905092251200.44@tvgsbejvaqbjf.bet","subject":"Re: nd/merge-quit, was Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2019-05-10T09:42:28Z","receivedAt":"2019-05-10T09:42:56Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Fri, May 10, 2019 at 3:54 AM Johannes Schindelin\n<Johannes.Schindelin@gmx.de> wrote:\n>\n> Hi Junio & Duy,\n>\n> On Thu, 9 May 2019, Junio C Hamano wrote:\n>\n> > * nd/merge-quit (2019-05-07) 2 commits\n> >  - merge: add --quit\n> >  - merge: remove drop_save() in favor of remove_merge_branch_state()\n> >\n> >  \"git merge\" learned \"--quit\" option that cleans up the in-progress\n> >  merge while leaving the working tree and the index still in a mess.\n> >\n> >  Hmph, why is this a good idea?\n>\n> It also seems to work *only* on Linux. At least the tests break on macOS\n> and on Windows:\n>\n> https://dev.azure.com/gitgitgadget/git/_build/results?buildId=8313&view=ms.vss-test-web.build-test-results-tab\n\nSorry I have no idea what the problem is. That's basically the same as\nthe 'merge detects mod-256 conflicts (recursive)' test earlier but\nwith rerere enabled. It does not even look like some leftover rerere\nrecords accidentally fix the conflict.\n\nI tried with a case-insensitive filesytem (on linux) and with\n--valgrind, no problem found. Travis on pu seemed ok with t7600 on\nmac.\n\nOne difference I notice is the the failed test looks like it found the\nwrong merge base\n\nfound 1 common ancestor:\nc4c4222 commit 1\n\nwhile my tests have \"commit 0\" as the base. \"git log --graph\n--oneline\" indicates \"commit 1\" is the wrong base.\n\nSomething is wrong with the merge code (this has not even reached the\nnew --quit code). I could change the setup steps to be more stable,\nusing a simpler commit history, but this looks like something we\nshould find and fix.\n\n> Sadly, I ran out of time do look into this (I am pretty busy preparing Git\n> for Windows for v2.22.0-rc0).\n>\n> Ciao,\n> Dscho\n\n\n\n--\nDuy\n"},{"id":"375294","messageId":"nycvar.QRO.7.76.6.1905101549180.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"6726f99a-ec27-b72f-39d7-03eecb555197@gmail.com","subject":"Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-05-10T13:49:39Z","receivedAt":"2019-05-10T13:50:05Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Phillip,\n\nOn Thu, 9 May 2019, Phillip Wood wrote:\n\n> On 08/05/2019 18:23, Junio C Hamano wrote:\n> > * pw/rebase-abort-clean-rewritten (2019-05-08) 1 commit\n> >   - rebase --abort: cleanup refs/rewritten\n> >   (this branch uses pw/rebase-i-internal.)\n> >\n> >   \"git rebase --abort\" used to leave refs/rewritten/ when concluding\n> >   \"git rebase -r\", which has been corrected.\n> >\n> >   Will merge to 'next'.\n>\n> Can you hold off on this one please, I think we should clean up\n> refs/rewritten/ on --quit as well (I'm not sure I've convinced dscho about\n> that yet though [1])\n\nYou have convinced me ;-)\n\nThanks for your consideration,\nDscho\n\n> Thanks\n>\n> Phillip\n>\n> [1]\n> https://public-inbox.org/git/4d486504-7f64-95fb-b7eb-51d424f3e6cc@gmail.com/#t\n>\n>\n"},{"id":"375296","messageId":"nycvar.QRO.7.76.6.1905101551110.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"f8eb246f-a936-e9df-4bb4-068b86a62baf@kdbg.org","subject":"Re: en/fast-export-encoding, was Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-05-10T13:54:07Z","receivedAt":"2019-05-10T13:54:30Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Hannes & Elijah,\n\nOn Fri, 10 May 2019, Johannes Sixt wrote:\n\n> Am 10.05.19 um 02:14 schrieb Elijah Newren:\n> > Hi Johannes,\n> >\n> > On Thu, May 9, 2019 at 1:46 PM Johannes Schindelin\n> > <Johannes.Schindelin@gmx.de> wrote:\n> >>\n> >> Hi Junio & Elijah,\n> >>\n> >> On Thu, 9 May 2019, Junio C Hamano wrote:\n> >>\n> >>> * en/fast-export-encoding (2019-05-07) 5 commits\n> >>>  - fast-export: do automatic reencoding of commit messages only if requested\n> >>>  - fast-export: differentiate between explicitly utf-8 and implicitly utf-8\n> >>>  - fast-export: avoid stripping encoding header if we cannot reencode\n> >>>  - fast-import: support 'encoding' commit header\n> >>>  - t9350: fix encoding test to actually test reencoding\n> >>>\n> >>>  The \"git fast-export/import\" pair has been taught to handle commits\n> >>>  with log messages in encoding other than UTF-8 better.\n> >>\n> >> This breaks on Windows, see\n> >> https://dev.azure.com/gitgitgadget/git/_build/results?buildId=8298&view=ms.vss-test-web.build-test-results-tab\n> >>\n> >> Sadly, I ran out of time looking at it in detail.\n> >\n> > Thanks for the heads up, and for taking some time to check it out.\n> > The error doesn't seem obvious from the log.  Does Azure Pipelines\n> > have anything like CircleCI's \"Debug with SSH\" feature[1]?  (Where one\n> > can click a \"Rerun job with SSH\", and it'll restart the pipeline but\n> > also print out an ssh command someone can use to directly access the\n> > box on which the test is running, in order to be able to investigate.)\n> >  Failing that, assuming I can find a Windows system somewhere, is\n> > there a list of steps for setting up a development environment and\n> > building git on Windows?\n>\n> I'll just tell you why things go wrong here:\n>\n> In these cases, a byte that is intended to be an ISO8859-something\n> characters is passed via the command line. This cannot work as intended\n> on Windows, because the command line is not just a stream of bytes, but\n> a string of characters. On Windows (and presumably also on macOS), the\n> command line bytes are interpreted as UTF-8. As such, the bytes undergo\n> some encoding conversions between UTF-8 and UTF-16LE. That cannot work\n> when the bytes are not correct UTF-8 characters.\n>\n> To make the tests pass you have to pass the ISO8859-something characters\n> via a file.\n\nThanks for the explanation. Yes, we cannot rely on command-lines (or for\nthat matter, environment variables) being opaque byte sequences, as that\ndoes not work on Windows: byte sequences *always* have an encoding, and\nare pretty much always converted into UTF-16 before continuing.\n\nAs to Debug with SSH: this is not possible in Azure Pipelines. What I\nfrequently do is to edit azure-pipelines.yml (usually restricting to one\nparticular job, e.g. Windows build, and to one particular test script) and\nci/ and t/ heavily, to get tons of debug information, then open a PR on\nGitGitGadget to start a build.\n\nThat's how I investigated the macOS Mojave breakages, for example.\n\nCiao,\nDscho\n"},{"id":"375386","messageId":"68adf0b3-e643-42e2-acfd-804d16c2695c@gmail.com","threadId":"51054","inReplyTo":"nycvar.QRO.7.76.6.1905101549180.44@tvgsbejvaqbjf.bet","subject":"Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Phillip Wood","fromEmail":"phillip.wood123@gmail.com","sentAt":"2019-05-13T13:29:09Z","receivedAt":"2019-05-13T13:29:15Z","isPatch":false,"sender":{"key":"phillip.wood@dunelm.org.uk","avatar":null},"body":"Hi Dscho\n\nOn 10/05/2019 14:49, Johannes Schindelin wrote:\n> Hi Phillip,\n> \n> On Thu, 9 May 2019, Phillip Wood wrote:\n> \n>> On 08/05/2019 18:23, Junio C Hamano wrote:\n>>> * pw/rebase-abort-clean-rewritten (2019-05-08) 1 commit\n>>>    - rebase --abort: cleanup refs/rewritten\n>>>    (this branch uses pw/rebase-i-internal.)\n>>>\n>>>    \"git rebase --abort\" used to leave refs/rewritten/ when concluding\n>>>    \"git rebase -r\", which has been corrected.\n>>>\n>>>    Will merge to 'next'.\n>>\n>> Can you hold off on this one please, I think we should clean up\n>> refs/rewritten/ on --quit as well (I'm not sure I've convinced dscho about\n>> that yet though [1])\n> \n> You have convinced me ;-)\n\nThanks, I'll try and send a re-roll tomorrow\n\nBest Wishes\n\nPhillip\n\n> Thanks for your consideration,\n> Dscho\n> \n>> Thanks\n>>\n>> Phillip\n>>\n>> [1]\n>> https://public-inbox.org/git/4d486504-7f64-95fb-b7eb-51d424f3e6cc@gmail.com/#t\n>>\n>>\n"},{"id":"375388","messageId":"nycvar.QRO.7.76.6.1905131531000.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"CACsJy8DTErpeoNHUkCieDafnjc3iwg6QKAp2VP-8tUNYh33tJA@mail.gmail.com","subject":"Re: nd/merge-quit, was Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-05-13T14:02:27Z","receivedAt":"2019-05-13T14:02:50Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Duy,\n\nOn Fri, 10 May 2019, Duy Nguyen wrote:\n\n> On Fri, May 10, 2019 at 3:54 AM Johannes Schindelin\n> <Johannes.Schindelin@gmx.de> wrote:\n> >\n> > Hi Junio & Duy,\n> >\n> > On Thu, 9 May 2019, Junio C Hamano wrote:\n> >\n> > > * nd/merge-quit (2019-05-07) 2 commits\n> > >  - merge: add --quit\n> > >  - merge: remove drop_save() in favor of remove_merge_branch_state()\n> > >\n> > >  \"git merge\" learned \"--quit\" option that cleans up the in-progress\n> > >  merge while leaving the working tree and the index still in a mess.\n> > >\n> > >  Hmph, why is this a good idea?\n> >\n> > It also seems to work *only* on Linux. At least the tests break on macOS\n> > and on Windows:\n> >\n> > https://dev.azure.com/gitgitgadget/git/_build/results?buildId=8313&view=ms.vss-test-web.build-test-results-tab\n>\n> Sorry I have no idea what the problem is. That's basically the same as\n> the 'merge detects mod-256 conflicts (recursive)' test earlier but\n> with rerere enabled. It does not even look like some leftover rerere\n> records accidentally fix the conflict.\n>\n> I tried with a case-insensitive filesytem (on linux) and with\n> --valgrind, no problem found. Travis on pu seemed ok with t7600 on\n> mac.\n>\n> One difference I notice is the the failed test looks like it found the\n> wrong merge base\n>\n> found 1 common ancestor:\n> c4c4222 commit 1\n>\n> while my tests have \"commit 0\" as the base. \"git log --graph\n> --oneline\" indicates \"commit 1\" is the wrong base.\n>\n> Something is wrong with the merge code (this has not even reached the\n> new --quit code). I could change the setup steps to be more stable,\n> using a simpler commit history, but this looks like something we\n> should find and fix.\n\nYeah... someone should look at this... Someone. But who?\n\n:-)\n\nWell, since you seemed quite reluctant to figure out why your patches fail\nthe test suite, and since we're about to enter the -rc0 phase (where we\nall spend all of our time to hammer out the next version, right? Right?),\nI figured out I better look into it before nobody does.\n\nTurns out that the culprit is not even hard to figure out. All I had to do\nis to compare, carefully, the logs from the Azure Pipelines and from a\nlocal run in a local Ubuntu.\n\nIt has nothing to do with our merge code. There might be bugs, but this\nbreakage is safely in this here patch series: the test case you introduced\nrelies on side effects.\n\nNamely, when test cases 51 and 52 are skipped because of a missing GPG\nprerequisite [*1*], and those two are obviously required to run for the\n`git merge to fail in your test case, as you can very easily verify by\ndownloading the artifact containing the `trash directory.t7600-merge`\ndirectory and re-running the last steps on Linux (where the `git -c\nrerere.enabled=true merge master` *succeeds*).\n\nIn fact, you can very, very easily emulate the whole situation on your box\nby running:\n\n\tsh t7600-merge.sh -i -v -x --run=1-50,53-59\n\nAnd then you can fix your test case so that it does not need to rely on\ntest cases that may, or may not, have run previously.\n\nCiao,\nJohannes\n\nFootnote *1*: GNU Privacy Guard is not actually missing from Git for\nWindows' SDK, quite to the contrary. But it fails to start a gpg-agent due\nto the fact that we pass a `--homedir` that contains a colon, something\nthat is totally expected on Windows, and at the same something that GNU\nPrivacy Guard totally cannot handle.\n\n"},{"id":"375389","messageId":"nycvar.QRO.7.76.6.1905131605280.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"nycvar.QRO.7.76.6.1905131531000.44@tvgsbejvaqbjf.bet","subject":"Re: nd/merge-quit, was Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-05-13T14:06:08Z","receivedAt":"2019-05-13T14:06:32Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Mon, 13 May 2019, Johannes Schindelin wrote:\n\n> On Fri, 10 May 2019, Duy Nguyen wrote:\n>\n> > On Fri, May 10, 2019 at 3:54 AM Johannes Schindelin\n> > <Johannes.Schindelin@gmx.de> wrote:\n> > >\n> > > Hi Junio & Duy,\n> > >\n> > > On Thu, 9 May 2019, Junio C Hamano wrote:\n> > >\n> > > > * nd/merge-quit (2019-05-07) 2 commits\n> > > >  - merge: add --quit\n> > > >  - merge: remove drop_save() in favor of remove_merge_branch_state()\n> > > >\n> > > >  \"git merge\" learned \"--quit\" option that cleans up the in-progress\n> > > >  merge while leaving the working tree and the index still in a mess.\n> > > >\n> > > >  Hmph, why is this a good idea?\n> > >\n> > > It also seems to work *only* on Linux. At least the tests break on macOS\n> > > and on Windows:\n> > >\n> > > https://dev.azure.com/gitgitgadget/git/_build/results?buildId=8313&view=ms.vss-test-web.build-test-results-tab\n> >\n> > Sorry I have no idea what the problem is. That's basically the same as\n> > the 'merge detects mod-256 conflicts (recursive)' test earlier but\n> > with rerere enabled. It does not even look like some leftover rerere\n> > records accidentally fix the conflict.\n> >\n> > I tried with a case-insensitive filesytem (on linux) and with\n> > --valgrind, no problem found. Travis on pu seemed ok with t7600 on\n> > mac.\n> >\n> > One difference I notice is the the failed test looks like it found the\n> > wrong merge base\n> >\n> > found 1 common ancestor:\n> > c4c4222 commit 1\n> >\n> > while my tests have \"commit 0\" as the base. \"git log --graph\n> > --oneline\" indicates \"commit 1\" is the wrong base.\n> >\n> > Something is wrong with the merge code (this has not even reached the\n> > new --quit code). I could change the setup steps to be more stable,\n> > using a simpler commit history, but this looks like something we\n> > should find and fix.\n>\n> Yeah... someone should look at this... Someone. But who?\n>\n> :-)\n>\n> Well, since you seemed quite reluctant to figure out why your patches fail\n> the test suite, and since we're about to enter the -rc0 phase (where we\n> all spend all of our time to hammer out the next version, right? Right?),\n> I figured out I better look into it before nobody does.\n>\n> Turns out that the culprit is not even hard to figure out. All I had to do\n> is to compare, carefully, the logs from the Azure Pipelines and from a\n> local run in a local Ubuntu.\n>\n> It has nothing to do with our merge code. There might be bugs, but this\n> breakage is safely in this here patch series: the test case you introduced\n> relies on side effects.\n>\n> Namely, when test cases 51 and 52 are skipped because of a missing GPG\n> prerequisite [*1*], and those two are obviously required to run for the\n> `git merge to fail in your test case, as you can very easily verify by\n> downloading the artifact containing the `trash directory.t7600-merge`\n> directory and re-running the last steps on Linux (where the `git -c\n> rerere.enabled=true merge master` *succeeds*).\n\nI should have posted the link, as it may not be totally obvious where you\ncan download artifacts:\n\nhttps://dev.azure.com/mseng/AzureDevOps/_build/results?buildId=9464474&view=artifacts\n\nCiao,\nJohannes\n\n> In fact, you can very, very easily emulate the whole situation on your box\n> by running:\n>\n> \tsh t7600-merge.sh -i -v -x --run=1-50,53-59\n>\n> And then you can fix your test case so that it does not need to rely on\n> test cases that may, or may not, have run previously.\n>\n> Ciao,\n> Johannes\n>\n> Footnote *1*: GNU Privacy Guard is not actually missing from Git for\n> Windows' SDK, quite to the contrary. But it fails to start a gpg-agent due\n> to the fact that we pass a `--homedir` that contains a colon, something\n> that is totally expected on Windows, and at the same something that GNU\n> Privacy Guard totally cannot handle.\n>\n>\n"},{"id":"375390","messageId":"CAPig+cQghcdgN-qAF=b3NEgzBOXY2Ce9GWi95Q=JdPuTEnMPfQ@mail.gmail.com","threadId":"51054","inReplyTo":"nycvar.QRO.7.76.6.1905131605280.44@tvgsbejvaqbjf.bet","subject":"Re: nd/merge-quit, was Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Eric Sunshine","fromEmail":"sunshine@sunshineco.com","sentAt":"2019-05-13T14:20:25Z","receivedAt":"2019-05-13T14:20:40Z","isPatch":false,"sender":{"key":"sunshine@sunshineco.com","avatar":"https://avatars.githubusercontent.com/u/163641?v=4"},"body":"On Mon, May 13, 2019 at 10:06 AM Johannes Schindelin\n<Johannes.Schindelin@gmx.de> wrote:\n> I should have posted the link, as it may not be totally obvious where you\n> can download artifacts:\n>\n> https://dev.azure.com/mseng/AzureDevOps/_build/results?buildId=9464474&view=artifacts\n\nThis link leads to a Login page requiring some sort of Microsoft ID.\n"},{"id":"375391","messageId":"nycvar.QRO.7.76.6.1905131647160.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"CAPig+cQghcdgN-qAF=b3NEgzBOXY2Ce9GWi95Q=JdPuTEnMPfQ@mail.gmail.com","subject":"Re: nd/merge-quit, was Re: What's cooking in git.git (May 2019, #01; Thu, 9)","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-05-13T14:53:07Z","receivedAt":"2019-05-13T14:53:33Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Eric,\n\nOn Mon, 13 May 2019, Eric Sunshine wrote:\n\n> On Mon, May 13, 2019 at 10:06 AM Johannes Schindelin\n> <Johannes.Schindelin@gmx.de> wrote:\n> > I should have posted the link, as it may not be totally obvious where you\n> > can download artifacts:\n> >\n> > https://dev.azure.com/mseng/AzureDevOps/_build/results?buildId=9464474&view=artifacts\n>\n> This link leads to a Login page requiring some sort of Microsoft ID.\n\nAh, whoops, that is not the build that I was looking for (it is for an\ninternal fork of Git which I use extensively to test various things).\n\nAnd the public Azure Pipeline that actually publishes those artifacts only\nruns for the four integration branches.\n\nStill, you should be able to replicate my findings with the\n`failed-test-artifacts` artifact from\nhttps://dev.azure.com/git/git/_build/results?buildId=569&view=results\n\nCiao,\nDscho\n\n\n"},{"id":"375415","messageId":"20190513183242.10600-1-avarab@gmail.com","threadId":"51054","inReplyTo":"nycvar.QRO.7.76.6.1905131531000.44@tvgsbejvaqbjf.bet","subject":"[PATCH] tests: add a special setup where prerequisites fail","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2019-05-13T18:32:42Z","receivedAt":"2019-05-13T18:32:58Z","isPatch":true,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"As discussed in [1] there's a regression in the \"pu\" branch now\nbecause a new test implicitly assumed that a previous test guarded by\na prerequisite had been run. Add a \"GIT_TEST_FAIL_PREREQS\" special\ntest setup where we'll skip (nearly) all tests guarded by\nprerequisites, allowing us to easily emulate those platform where we\ndon't run these tests.\n\nAs noted in the documentation I'm adding I'm whitelisting the SYMLINKS\nprerequisite for now. A lot of tests started failing if we lied about\nnot supporting symlinks. It's also unlikely that we'll have a failing\ntest due to a hard dependency on symlinks without that being the\nobvious cause, so for now it's not worth the effort to make it work.\n\n1. https://public-inbox.org/git/nycvar.QRO.7.76.6.1905131531000.44@tvgsbejvaqbjf.bet/\n\nSigned-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n---\n\nOn Mon, May 13 2019, Johannes Schindelin wrote:\n\n> [...]\n> Namely, when test cases 51 and 52 are skipped because of a missing GPG\n> prerequisite [*1*], and those two are obviously required to run for the\n> `git merge to fail in your test case, as you can very easily verify by\n> downloading the artifact containing the `trash directory.t7600-merge`\n> directory and re-running the last steps on Linux (where the `git -c\n> rerere.enabled=true merge master` *succeeds*).\n>\n> In fact, you can very, very easily emulate the whole situation on your box\n> by running:\n>\n> \tsh t7600-merge.sh -i -v -x --run=1-50,53-59\n>\n> And then you can fix your test case so that it does not need to rely on\n> test cases that may, or may not, have run previously.\n\nI think it would be better to more pro-actively spot this sort of\nthing in the future, so here's a patch to do that. It passes on\n\"master\", but fails on \"pu\" due to the issue with the one test being\ndiscussed here.\n\n t/README                   |  9 +++++++++\n t/t0000-basic.sh           | 10 +++++-----\n t/t4202-log.sh             |  2 +-\n t/t7405-submodule-merge.sh |  2 +-\n t/t7810-grep.sh            |  6 +++---\n t/test-lib-functions.sh    | 20 ++++++++++++++++++++\n t/test-lib.sh              |  4 ++++\n 7 files changed, 43 insertions(+), 10 deletions(-)\n\ndiff --git a/t/README b/t/README\nindex 6404f33e19..9747971d58 100644\n--- a/t/README\n+++ b/t/README\n@@ -334,6 +334,15 @@ that cannot be easily covered by a few specific test cases. These\n could be enabled by running the test suite with correct GIT_TEST_\n environment set.\n \n+GIT_TEST_FAIL_PREREQS<non-empty?> fails all prerequisites. This is\n+useful for discovering issues with the tests where say a later test\n+implicitly depends on an optional earlier test.\n+\n+There's a \"FAIL_PREREQS\" prerequisite that can be used to test for\n+whether this mode is active, and e.g. skip some tests that are hard to\n+refactor to deal with it. The \"SYMLINKS\" prerequisite is currently\n+excluded as so much relies on it, but this might change in the future.\n+\n GIT_TEST_GETTEXT_POISON=<non-empty?> turns all strings marked for\n translation into gibberish if non-empty (think \"test -n\"). Used for\n spotting those tests that need to be marked with a C_LOCALE_OUTPUT\ndiff --git a/t/t0000-basic.sh b/t/t0000-basic.sh\nindex c03054c538..31de7e90f3 100755\n--- a/t/t0000-basic.sh\n+++ b/t/t0000-basic.sh\n@@ -726,7 +726,7 @@ donthaveit=yes\n test_expect_success DONTHAVEIT 'unmet prerequisite causes test to be skipped' '\n \tdonthaveit=no\n '\n-if test $haveit$donthaveit != yesyes\n+if test -z \"$GIT_TEST_FAIL_PREREQS\" -a $haveit$donthaveit != yesyes\n then\n \tsay \"bug in test framework: prerequisite tags do not work reliably\"\n \texit 1\n@@ -747,7 +747,7 @@ donthaveiteither=yes\n test_expect_success DONTHAVEIT,HAVEIT 'unmet prerequisites causes test to be skipped' '\n \tdonthaveiteither=no\n '\n-if test $haveit$donthaveit$donthaveiteither != yesyesyes\n+if test -z \"$GIT_TEST_FAIL_PREREQS\" -a $haveit$donthaveit$donthaveiteither != yesyesyes\n then\n \tsay \"bug in test framework: multiple prerequisite tags do not work reliably\"\n \texit 1\n@@ -763,7 +763,7 @@ test_expect_success !LAZY_TRUE 'missing lazy prereqs skip tests' '\n \tdonthavetrue=no\n '\n \n-if test \"$havetrue$donthavetrue\" != yesyes\n+if test -z \"$GIT_TEST_FAIL_PREREQS\" -a \"$havetrue$donthavetrue\" != yesyes\n then\n \tsay 'bug in test framework: lazy prerequisites do not work'\n \texit 1\n@@ -779,7 +779,7 @@ test_expect_success LAZY_FALSE 'missing negative lazy prereqs will skip' '\n \thavefalse=no\n '\n \n-if test \"$nothavefalse$havefalse\" != yesyes\n+if test -z \"$GIT_TEST_FAIL_PREREQS\" -a \"$nothavefalse$havefalse\" != yesyes\n then\n \tsay 'bug in test framework: negative lazy prerequisites do not work'\n \texit 1\n@@ -790,7 +790,7 @@ test_expect_success 'tests clean up after themselves' '\n \ttest_when_finished clean=yes\n '\n \n-if test $clean != yes\n+if test -z \"$GIT_TEST_FAIL_PREREQS\" -a $clean != yes\n then\n \tsay \"bug in test framework: basic cleanup command does not work reliably\"\n \texit 1\ndiff --git a/t/t4202-log.sh b/t/t4202-log.sh\nindex 819c24d10e..c20209324c 100755\n--- a/t/t4202-log.sh\n+++ b/t/t4202-log.sh\n@@ -352,7 +352,7 @@ test_expect_success 'log with grep.patternType configuration and command line' '\n \ttest_cmp expect actual\n '\n \n-test_expect_success 'log with various grep.patternType configurations & command-lines' '\n+test_expect_success !FAIL_PREREQS 'log with various grep.patternType configurations & command-lines' '\n \tgit init pattern-type &&\n \t(\n \t\tcd pattern-type &&\ndiff --git a/t/t7405-submodule-merge.sh b/t/t7405-submodule-merge.sh\nindex 7855bd8648..aa33978ed2 100755\n--- a/t/t7405-submodule-merge.sh\n+++ b/t/t7405-submodule-merge.sh\n@@ -417,7 +417,7 @@ test_expect_failure 'directory/submodule conflict; keep submodule clean' '\n \t)\n '\n \n-test_expect_failure 'directory/submodule conflict; should not treat submodule files as untracked or in the way' '\n+test_expect_failure !FAIL_PREREQS 'directory/submodule conflict; should not treat submodule files as untracked or in the way' '\n \ttest_when_finished \"git -C directory-submodule/path reset --hard\" &&\n \ttest_when_finished \"git -C directory-submodule reset --hard\" &&\n \t(\ndiff --git a/t/t7810-grep.sh b/t/t7810-grep.sh\nindex 2e1bb61b41..7d7b396c23 100755\n--- a/t/t7810-grep.sh\n+++ b/t/t7810-grep.sh\n@@ -412,7 +412,7 @@ do\n \t\ttest_cmp expected actual\n \t'\n \n-\ttest_expect_success !PCRE \"grep $L with grep.patterntype=perl errors without PCRE\" '\n+\ttest_expect_success !FAIL_PREREQS,!PCRE \"grep $L with grep.patterntype=perl errors without PCRE\" '\n \t\ttest_must_fail git -c grep.patterntype=perl grep \"foo.*bar\"\n \t'\n \n@@ -1234,7 +1234,7 @@ test_expect_success PCRE 'grep --perl-regexp pattern' '\n \ttest_cmp expected actual\n '\n \n-test_expect_success !PCRE 'grep --perl-regexp pattern errors without PCRE' '\n+test_expect_success !FAIL_PREREQS,!PCRE 'grep --perl-regexp pattern errors without PCRE' '\n \ttest_must_fail git grep --perl-regexp \"foo.*bar\"\n '\n \n@@ -1249,7 +1249,7 @@ test_expect_success LIBPCRE2 \"grep -P with (*NO_JIT) doesn't error out\" '\n \n '\n \n-test_expect_success !PCRE 'grep -P pattern errors without PCRE' '\n+test_expect_success !FAIL_PREREQS,!PCRE 'grep -P pattern errors without PCRE' '\n \ttest_must_fail git grep -P \"foo.*bar\"\n '\n \ndiff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh\nindex 8270de74be..0367cec5fd 100644\n--- a/t/test-lib-functions.sh\n+++ b/t/test-lib-functions.sh\n@@ -309,6 +309,26 @@ test_unset_prereq () {\n }\n \n test_set_prereq () {\n+\tif test -n \"$GIT_TEST_FAIL_PREREQS\"\n+\tthen\n+\t\tcase \"$1\" in\n+\t\t# The \"!\" case is handled below with\n+\t\t# test_unset_prereq()\n+\t\t!*)\n+\t\t\t;;\n+\t\t# (Temporary?) whitelist of things we can't easily\n+\t\t# pretend not to support\n+\t\tSYMLINKS)\n+\t\t\t;;\n+\t\t# Inspecting whether GIT_TEST_FAIL_PREREQS is on\n+\t\t# should be unaffected.\n+\t\tFAIL_PREREQS)\n+\t\t\t;;\n+\t\t*)\n+\t\t\treturn\n+\t\tesac\n+\tfi\n+\n \tcase \"$1\" in\n \t!*)\n \t\ttest_unset_prereq \"${1#!}\"\ndiff --git a/t/test-lib.sh b/t/test-lib.sh\nindex 908ddb9c46..6fabafebb3 100644\n--- a/t/test-lib.sh\n+++ b/t/test-lib.sh\n@@ -1607,3 +1607,7 @@ test_lazy_prereq SHA1 '\n test_lazy_prereq REBASE_P '\n \ttest -z \"$GIT_TEST_SKIP_REBASE_P\"\n '\n+\n+test_lazy_prereq FAIL_PREREQS '\n+\ttest -n \"$GIT_TEST_FAIL_PREREQS\"\n+'\n-- \n2.21.0.1020.gf2820cf01a\n\n"},{"id":"375476","messageId":"nycvar.QRO.7.76.6.1905140945220.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"20190513183242.10600-1-avarab@gmail.com","subject":"Re: [PATCH] tests: add a special setup where prerequisites fail","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-05-14T08:53:55Z","receivedAt":"2019-05-14T08:54:22Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Ævar,\n\nOn Mon, 13 May 2019, Ævar Arnfjörð Bjarmason wrote:\n\n> As discussed in [1] there's a regression in the \"pu\" branch now\n> because a new test implicitly assumed that a previous test guarded by\n> a prerequisite had been run. Add a \"GIT_TEST_FAIL_PREREQS\" special\n> test setup where we'll skip (nearly) all tests guarded by\n> prerequisites, allowing us to easily emulate those platform where we\n> don't run these tests.\n>\n> As noted in the documentation I'm adding I'm whitelisting the SYMLINKS\n> prerequisite for now. A lot of tests started failing if we lied about\n> not supporting symlinks. It's also unlikely that we'll have a failing\n> test due to a hard dependency on symlinks without that being the\n> obvious cause, so for now it's not worth the effort to make it work.\n\nI don't know... In Git for Windows, the SYMLINKS prereq is not met.\n\n(Side note: Windows 10 already supports symlinks for quite some time, even\nfor non-admin developers, but the fact that Git's test suite is\nimplemented in shell script bites us yet one more time: MSYS2 has a\ncompletely different idea what symlinks are. It uses the \"system file\" bit\nthat only exists on Windows, and if that is set, reads the beginning of\nthe file, and if that reads \"!<symlink>\" (interpreted as ASCII), then the\nrest of that system file is interpreted as the symlink target.)\n\nSo it makes me worry if you say that you had to exclude the SYMLINK\nprereq. Maybe all the dependent tests have different prereqs that just so\nhappen *also* not to be met on Windows?\n\n> 1. https://public-inbox.org/git/nycvar.QRO.7.76.6.1905131531000.44@tvgsbejvaqbjf.bet/\n>\n> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n> ---\n>\n> On Mon, May 13 2019, Johannes Schindelin wrote:\n>\n> > [...]\n> > Namely, when test cases 51 and 52 are skipped because of a missing GPG\n> > prerequisite [*1*], and those two are obviously required to run for the\n> > `git merge to fail in your test case, as you can very easily verify by\n> > downloading the artifact containing the `trash directory.t7600-merge`\n> > directory and re-running the last steps on Linux (where the `git -c\n> > rerere.enabled=true merge master` *succeeds*).\n> >\n> > In fact, you can very, very easily emulate the whole situation on your box\n> > by running:\n> >\n> > \tsh t7600-merge.sh -i -v -x --run=1-50,53-59\n> >\n> > And then you can fix your test case so that it does not need to rely on\n> > test cases that may, or may not, have run previously.\n>\n> I think it would be better to more pro-actively spot this sort of\n> thing in the future, so here's a patch to do that. It passes on\n> \"master\", but fails on \"pu\" due to the issue with the one test being\n> discussed here.\n\nIt does drive me nuts that the `--run=<N>` option exists (thank you,\nSlavica, for teaching me!) and is so poorly supported by our test suite.\n\nFor example, if t7600.59 fails, it would make a ton of sense to run\n\n\tsh t7600-merge.sh -i -v -x --run=59\n\nright?\n\nExcept that we frequently have at least one \"test case\" whose only purpose\nis to set things up.\n\nBut we never declare explicitly \"test case 59 requires test case 51 to run\nfirst\".\n\nWe do not even declare the test cases: we execute them immediately. So we\nwould not even be able to juggle them about, e.g. run them in reverse\n(which would otherwise be the easiest way to get rid of almost all side\neffects).\n\nI think in the long run, we'll have to drag Git's test suite into the 21st\ncentury (kicking and screaming, I'm sure), to have a more declarative\nstyle, with those features that one might know from Mocha, Jest, JUnit,\nxUnit.NET, etc.\n\nBack to your patch: it only catches prereq problems. But the `--run=59`\nthing would still not be addressed.\n\nWhat would you think about a mode where random test cases are skipped? It\nwould have to make sure to provide a way to recreate the problem, e.g.\ngiving a string that defines exactly which test cases were skipped.\n\nI am *sure* that tons of test scripts would fail with that, and we would\nprobably have to special-case the `setup` \"test cases\", and we would have\nto clean up quite a few scripts to *not* execute random stuff outside of\n`test_expect_*`...\n\n> diff --git a/t/README b/t/README\n> index 6404f33e19..9747971d58 100644\n> --- a/t/README\n> +++ b/t/README\n> @@ -334,6 +334,15 @@ that cannot be easily covered by a few specific test cases. These\n>  could be enabled by running the test suite with correct GIT_TEST_\n>  environment set.\n>\n> +GIT_TEST_FAIL_PREREQS<non-empty?> fails all prerequisites. This is\n\nDid you mean to insert `=` after `GIT_TEST_FAIL_PREREQS`?\n\n> diff --git a/t/t4202-log.sh b/t/t4202-log.sh\n> index 819c24d10e..c20209324c 100755\n> --- a/t/t4202-log.sh\n> +++ b/t/t4202-log.sh\n> @@ -352,7 +352,7 @@ test_expect_success 'log with grep.patternType configuration and command line' '\n>  \ttest_cmp expect actual\n>  '\n>\n> -test_expect_success 'log with various grep.patternType configurations & command-lines' '\n> +test_expect_success !FAIL_PREREQS 'log with various grep.patternType configurations & command-lines' '\n\nIs this an indication of a bug in this test case?\n\n>  \tgit init pattern-type &&\n>  \t(\n>  \t\tcd pattern-type &&\n> diff --git a/t/t7405-submodule-merge.sh b/t/t7405-submodule-merge.sh\n> index 7855bd8648..aa33978ed2 100755\n> --- a/t/t7405-submodule-merge.sh\n> +++ b/t/t7405-submodule-merge.sh\n> @@ -417,7 +417,7 @@ test_expect_failure 'directory/submodule conflict; keep submodule clean' '\n>  \t)\n>  '\n>\n> -test_expect_failure 'directory/submodule conflict; should not treat submodule files as untracked or in the way' '\n> +test_expect_failure !FAIL_PREREQS 'directory/submodule conflict; should not treat submodule files as untracked or in the way' '\n\nSame here?\n\n>  \ttest_when_finished \"git -C directory-submodule/path reset --hard\" &&\n>  \ttest_when_finished \"git -C directory-submodule reset --hard\" &&\n>  \t(\n> diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh\n> index 2e1bb61b41..7d7b396c23 100755\n> --- a/t/t7810-grep.sh\n> +++ b/t/t7810-grep.sh\n> @@ -412,7 +412,7 @@ do\n>  \t\ttest_cmp expected actual\n>  \t'\n>\n> -\ttest_expect_success !PCRE \"grep $L with grep.patterntype=perl errors without PCRE\" '\n> +\ttest_expect_success !FAIL_PREREQS,!PCRE \"grep $L with grep.patterntype=perl errors without PCRE\" '\n\nAnd here?\n\n>  \t\ttest_must_fail git -c grep.patterntype=perl grep \"foo.*bar\"\n>  \t'\n>\n> @@ -1234,7 +1234,7 @@ test_expect_success PCRE 'grep --perl-regexp pattern' '\n>  \ttest_cmp expected actual\n>  '\n>\n> -test_expect_success !PCRE 'grep --perl-regexp pattern errors without PCRE' '\n> +test_expect_success !FAIL_PREREQS,!PCRE 'grep --perl-regexp pattern errors without PCRE' '\n\nAnd here?\n\n>  \ttest_must_fail git grep --perl-regexp \"foo.*bar\"\n>  '\n>\n> @@ -1249,7 +1249,7 @@ test_expect_success LIBPCRE2 \"grep -P with (*NO_JIT) doesn't error out\" '\n>\n>  '\n>\n> -test_expect_success !PCRE 'grep -P pattern errors without PCRE' '\n> +test_expect_success !FAIL_PREREQS,!PCRE 'grep -P pattern errors without PCRE' '\n\nAnd here?\n\n>  \ttest_must_fail git grep -P \"foo.*bar\"\n>  '\n>\n> diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh\n> index 8270de74be..0367cec5fd 100644\n> --- a/t/test-lib-functions.sh\n> +++ b/t/test-lib-functions.sh\n> @@ -309,6 +309,26 @@ test_unset_prereq () {\n>  }\n>\n>  test_set_prereq () {\n> +\tif test -n \"$GIT_TEST_FAIL_PREREQS\"\n> +\tthen\n> +\t\tcase \"$1\" in\n> +\t\t# The \"!\" case is handled below with\n> +\t\t# test_unset_prereq()\n> +\t\t!*)\n> +\t\t\t;;\n> +\t\t# (Temporary?) whitelist of things we can't easily\n> +\t\t# pretend not to support\n> +\t\tSYMLINKS)\n> +\t\t\t;;\n> +\t\t# Inspecting whether GIT_TEST_FAIL_PREREQS is on\n> +\t\t# should be unaffected.\n> +\t\tFAIL_PREREQS)\n> +\t\t\t;;\n> +\t\t*)\n> +\t\t\treturn\n> +\t\tesac\n> +\tfi\n> +\n\nI would probably have done that on the reading side rather than the\nwriting side ;-)\n\nThanks for starting this!\nDscho\n\n>  \tcase \"$1\" in\n>  \t!*)\n>  \t\ttest_unset_prereq \"${1#!}\"\n> diff --git a/t/test-lib.sh b/t/test-lib.sh\n> index 908ddb9c46..6fabafebb3 100644\n> --- a/t/test-lib.sh\n> +++ b/t/test-lib.sh\n> @@ -1607,3 +1607,7 @@ test_lazy_prereq SHA1 '\n>  test_lazy_prereq REBASE_P '\n>  \ttest -z \"$GIT_TEST_SKIP_REBASE_P\"\n>  '\n> +\n> +test_lazy_prereq FAIL_PREREQS '\n> +\ttest -n \"$GIT_TEST_FAIL_PREREQS\"\n> +'\n> --\n> 2.21.0.1020.gf2820cf01a\n>\n>\n"},{"id":"375489","messageId":"87lfz9wexs.fsf@evledraar.gmail.com","threadId":"51054","inReplyTo":"nycvar.QRO.7.76.6.1905140945220.44@tvgsbejvaqbjf.bet","subject":"Re: [PATCH] tests: add a special setup where prerequisites fail","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2019-05-14T09:41:51Z","receivedAt":"2019-05-14T09:41:56Z","isPatch":true,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"\nOn Tue, May 14 2019, Johannes Schindelin wrote:\n\n> Hi Ævar,\n>\n> On Mon, 13 May 2019, Ævar Arnfjörð Bjarmason wrote:\n>\n>> As discussed in [1] there's a regression in the \"pu\" branch now\n>> because a new test implicitly assumed that a previous test guarded by\n>> a prerequisite had been run. Add a \"GIT_TEST_FAIL_PREREQS\" special\n>> test setup where we'll skip (nearly) all tests guarded by\n>> prerequisites, allowing us to easily emulate those platform where we\n>> don't run these tests.\n>>\n>> As noted in the documentation I'm adding I'm whitelisting the SYMLINKS\n>> prerequisite for now. A lot of tests started failing if we lied about\n>> not supporting symlinks. It's also unlikely that we'll have a failing\n>> test due to a hard dependency on symlinks without that being the\n>> obvious cause, so for now it's not worth the effort to make it work.\n>\n> I don't know... In Git for Windows, the SYMLINKS prereq is not met.\n>\n> (Side note: Windows 10 already supports symlinks for quite some time, even\n> for non-admin developers, but the fact that Git's test suite is\n> implemented in shell script bites us yet one more time: MSYS2 has a\n> completely different idea what symlinks are. It uses the \"system file\" bit\n> that only exists on Windows, and if that is set, reads the beginning of\n> the file, and if that reads \"!<symlink>\" (interpreted as ASCII), then the\n> rest of that system file is interpreted as the symlink target.)\n>\n> So it makes me worry if you say that you had to exclude the SYMLINK\n> prereq. Maybe all the dependent tests have different prereqs that just so\n> happen *also* not to be met on Windows?\n\nI should have clarified this. What I mean is that it leaves SYMLINK\nalone, i.e. what was breaking is that on Linux we don't deal with\npretending that we don't support symlinks, these tests should still work\njust fine on Windows (or anywhere SYMLINKS is genuinely false), since\nthere we actually back up our promise not to support them.\n\n>> 1. https://public-inbox.org/git/nycvar.QRO.7.76.6.1905131531000.44@tvgsbejvaqbjf.bet/\n>>\n>> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n>> ---\n>>\n>> On Mon, May 13 2019, Johannes Schindelin wrote:\n>>\n>> > [...]\n>> > Namely, when test cases 51 and 52 are skipped because of a missing GPG\n>> > prerequisite [*1*], and those two are obviously required to run for the\n>> > `git merge to fail in your test case, as you can very easily verify by\n>> > downloading the artifact containing the `trash directory.t7600-merge`\n>> > directory and re-running the last steps on Linux (where the `git -c\n>> > rerere.enabled=true merge master` *succeeds*).\n>> >\n>> > In fact, you can very, very easily emulate the whole situation on your box\n>> > by running:\n>> >\n>> > \tsh t7600-merge.sh -i -v -x --run=1-50,53-59\n>> >\n>> > And then you can fix your test case so that it does not need to rely on\n>> > test cases that may, or may not, have run previously.\n>>\n>> I think it would be better to more pro-actively spot this sort of\n>> thing in the future, so here's a patch to do that. It passes on\n>> \"master\", but fails on \"pu\" due to the issue with the one test being\n>> discussed here.\n>\n> It does drive me nuts that the `--run=<N>` option exists (thank you,\n> Slavica, for teaching me!) and is so poorly supported by our test suite.\n>\n> For example, if t7600.59 fails, it would make a ton of sense to run\n>\n> \tsh t7600-merge.sh -i -v -x --run=59\n>\n> right?\n>\n> Except that we frequently have at least one \"test case\" whose only purpose\n> is to set things up.\n>\n> But we never declare explicitly \"test case 59 requires test case 51 to run\n> first\".\n>\n> We do not even declare the test cases: we execute them immediately. So we\n> would not even be able to juggle them about, e.g. run them in reverse\n> (which would otherwise be the easiest way to get rid of almost all side\n> effects).\n>\n> I think in the long run, we'll have to drag Git's test suite into the 21st\n> century (kicking and screaming, I'm sure), to have a more declarative\n> style, with those features that one might know from Mocha, Jest, JUnit,\n> xUnit.NET, etc.\n>\n> Back to your patch: it only catches prereq problems. But the `--run=59`\n> thing would still not be addressed.\n\nYeah that would be a nice-to-have but unrelated thing (and a much bigger\ntask). We'd need to split up \"this is setup code\" v.s. \"this is a test\",\nor make each individual test declare its dependency graph, which could\nget quite verbose.\n\n> What would you think about a mode where random test cases are skipped? It\n> would have to make sure to provide a way to recreate the problem, e.g.\n> giving a string that defines exactly which test cases were skipped.\n>\n> I am *sure* that tons of test scripts would fail with that, and we would\n> probably have to special-case the `setup` \"test cases\", and we would have\n> to clean up quite a few scripts to *not* execute random stuff outside of\n> `test_expect_*`...\n\nI think it would be neat, but unrelated to and overkill for spotting the\npractical problem we have now, which is that we *know* we skip some of\nthis now on some platforms/setups due to prereqs.\n\n>> diff --git a/t/README b/t/README\n>> index 6404f33e19..9747971d58 100644\n>> --- a/t/README\n>> +++ b/t/README\n>> @@ -334,6 +334,15 @@ that cannot be easily covered by a few specific test cases. These\n>>  could be enabled by running the test suite with correct GIT_TEST_\n>>  environment set.\n>>\n>> +GIT_TEST_FAIL_PREREQS<non-empty?> fails all prerequisites. This is\n>\n> Did you mean to insert `=` after `GIT_TEST_FAIL_PREREQS`?\n\nYeah, will fix.\n\n>> diff --git a/t/t4202-log.sh b/t/t4202-log.sh\n>> index 819c24d10e..c20209324c 100755\n>> --- a/t/t4202-log.sh\n>> +++ b/t/t4202-log.sh\n>> @@ -352,7 +352,7 @@ test_expect_success 'log with grep.patternType configuration and command line' '\n>>  \ttest_cmp expect actual\n>>  '\n>>\n>> -test_expect_success 'log with various grep.patternType configurations & command-lines' '\n>> +test_expect_success !FAIL_PREREQS 'log with various grep.patternType configurations & command-lines' '\n>\n> Is this an indication of a bug in this test case?\n>\n>>  \tgit init pattern-type &&\n>>  \t(\n>>  \t\tcd pattern-type &&\n>> diff --git a/t/t7405-submodule-merge.sh b/t/t7405-submodule-merge.sh\n>> index 7855bd8648..aa33978ed2 100755\n>> --- a/t/t7405-submodule-merge.sh\n>> +++ b/t/t7405-submodule-merge.sh\n>> @@ -417,7 +417,7 @@ test_expect_failure 'directory/submodule conflict; keep submodule clean' '\n>>  \t)\n>>  '\n>>\n>> -test_expect_failure 'directory/submodule conflict; should not treat submodule files as untracked or in the way' '\n>> +test_expect_failure !FAIL_PREREQS 'directory/submodule conflict; should not treat submodule files as untracked or in the way' '\n>\n> Same here?\n>\n>>  \ttest_when_finished \"git -C directory-submodule/path reset --hard\" &&\n>>  \ttest_when_finished \"git -C directory-submodule reset --hard\" &&\n>>  \t(\n>> diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh\n>> index 2e1bb61b41..7d7b396c23 100755\n>> --- a/t/t7810-grep.sh\n>> +++ b/t/t7810-grep.sh\n>> @@ -412,7 +412,7 @@ do\n>>  \t\ttest_cmp expected actual\n>>  \t'\n>>\n>> -\ttest_expect_success !PCRE \"grep $L with grep.patterntype=perl errors without PCRE\" '\n>> +\ttest_expect_success !FAIL_PREREQS,!PCRE \"grep $L with grep.patterntype=perl errors without PCRE\" '\n>\n> And here?\n>\n>>  \t\ttest_must_fail git -c grep.patterntype=perl grep \"foo.*bar\"\n>>  \t'\n>>\n>> @@ -1234,7 +1234,7 @@ test_expect_success PCRE 'grep --perl-regexp pattern' '\n>>  \ttest_cmp expected actual\n>>  '\n>>\n>> -test_expect_success !PCRE 'grep --perl-regexp pattern errors without PCRE' '\n>> +test_expect_success !FAIL_PREREQS,!PCRE 'grep --perl-regexp pattern errors without PCRE' '\n>\n> And here?\n>\n>>  \ttest_must_fail git grep --perl-regexp \"foo.*bar\"\n>>  '\n>>\n>> @@ -1249,7 +1249,7 @@ test_expect_success LIBPCRE2 \"grep -P with (*NO_JIT) doesn't error out\" '\n>>\n>>  '\n>>\n>> -test_expect_success !PCRE 'grep -P pattern errors without PCRE' '\n>> +test_expect_success !FAIL_PREREQS,!PCRE 'grep -P pattern errors without PCRE' '\n>\n> And here?\n\nTo all of the above: Not a bug, I guess it could be refactored as an\nunrelated fix, but it's tests of the form \"without this prereq we should\ndie\", so of course if I lie about not having it where I *do* have it it\nwon't die.\n\n>>  \ttest_must_fail git grep -P \"foo.*bar\"\n>>  '\n>>\n>> diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh\n>> index 8270de74be..0367cec5fd 100644\n>> --- a/t/test-lib-functions.sh\n>> +++ b/t/test-lib-functions.sh\n>> @@ -309,6 +309,26 @@ test_unset_prereq () {\n>>  }\n>>\n>>  test_set_prereq () {\n>> +\tif test -n \"$GIT_TEST_FAIL_PREREQS\"\n>> +\tthen\n>> +\t\tcase \"$1\" in\n>> +\t\t# The \"!\" case is handled below with\n>> +\t\t# test_unset_prereq()\n>> +\t\t!*)\n>> +\t\t\t;;\n>> +\t\t# (Temporary?) whitelist of things we can't easily\n>> +\t\t# pretend not to support\n>> +\t\tSYMLINKS)\n>> +\t\t\t;;\n>> +\t\t# Inspecting whether GIT_TEST_FAIL_PREREQS is on\n>> +\t\t# should be unaffected.\n>> +\t\tFAIL_PREREQS)\n>> +\t\t\t;;\n>> +\t\t*)\n>> +\t\t\treturn\n>> +\t\tesac\n>> +\tfi\n>> +\n>\n> I would probably have done that on the reading side rather than the\n> writing side ;-)\n\nI started out by doing that (I'll note so in the v2 commit message), but\nfound it much harier, in that function we need to deal with the lazy\nprereqs v.s. non-lazy, so I'd need to change multiple branches of that\nor refactor it, all that stuff calls test_set_prereq() after it\ndiscovers what the prereq is, so doing it here is much easier &\nstraightforward.\n\n>>  \tcase \"$1\" in\n>>  \t!*)\n>>  \t\ttest_unset_prereq \"${1#!}\"\n>> diff --git a/t/test-lib.sh b/t/test-lib.sh\n>> index 908ddb9c46..6fabafebb3 100644\n>> --- a/t/test-lib.sh\n>> +++ b/t/test-lib.sh\n>> @@ -1607,3 +1607,7 @@ test_lazy_prereq SHA1 '\n>>  test_lazy_prereq REBASE_P '\n>>  \ttest -z \"$GIT_TEST_SKIP_REBASE_P\"\n>>  '\n>> +\n>> +test_lazy_prereq FAIL_PREREQS '\n>> +\ttest -n \"$GIT_TEST_FAIL_PREREQS\"\n>> +'\n>> --\n>> 2.21.0.1020.gf2820cf01a\n>>\n>>\n"},{"id":"375527","messageId":"nycvar.QRO.7.76.6.1905141434040.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"87lfz9wexs.fsf@evledraar.gmail.com","subject":"Re: [PATCH] tests: add a special setup where prerequisites fail","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-05-14T12:37:29Z","receivedAt":"2019-05-14T12:37:53Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Ævar,\n\nOn Tue, 14 May 2019, Ævar Arnfjörð Bjarmason wrote:\n\n> On Tue, May 14 2019, Johannes Schindelin wrote:\n>\n> > What would you think about a mode where random test cases are skipped?\n> > It would have to make sure to provide a way to recreate the problem,\n> > e.g. giving a string that defines exactly which test cases were\n> > skipped.\n> >\n> > I am *sure* that tons of test scripts would fail with that, and we\n> > would probably have to special-case the `setup` \"test cases\", and we\n> > would have to clean up quite a few scripts to *not* execute random\n> > stuff outside of `test_expect_*`...\n>\n> I think it would be neat, but unrelated to and overkill for spotting the\n> practical problem we have now, which is that we *know* we skip some of\n> this now on some platforms/setups due to prereqs.\n\nI understand, but I am still worried that this is a lot of work for an\nincomplete fix.\n\nFor example, the t7600-merge.sh test script that set off this conversation\nhas two prereqs that are unmet on Windows: GPG and EXECKEEPSPID. On Azure\nPipelines' macOS agents, it is only GPG that is unmet. So switching off\nall prereqs would not help macOS with e.g. a bug where the GPG test cases\nare skipped but the EXECKEEPSPID test case is not.\n\nCiao,\nDscho\n"},{"id":"375534","messageId":"87ef51w3yd.fsf@evledraar.gmail.com","threadId":"51054","inReplyTo":"nycvar.QRO.7.76.6.1905141434040.44@tvgsbejvaqbjf.bet","subject":"Re: [PATCH] tests: add a special setup where prerequisites fail","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2019-05-14T13:39:06Z","receivedAt":"2019-05-14T13:39:10Z","isPatch":true,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"\nOn Tue, May 14 2019, Johannes Schindelin wrote:\n\n> Hi Ævar,\n>\n> On Tue, 14 May 2019, Ævar Arnfjörð Bjarmason wrote:\n>\n>> On Tue, May 14 2019, Johannes Schindelin wrote:\n>>\n>> > What would you think about a mode where random test cases are skipped?\n>> > It would have to make sure to provide a way to recreate the problem,\n>> > e.g. giving a string that defines exactly which test cases were\n>> > skipped.\n>> >\n>> > I am *sure* that tons of test scripts would fail with that, and we\n>> > would probably have to special-case the `setup` \"test cases\", and we\n>> > would have to clean up quite a few scripts to *not* execute random\n>> > stuff outside of `test_expect_*`...\n>>\n>> I think it would be neat, but unrelated to and overkill for spotting the\n>> practical problem we have now, which is that we *know* we skip some of\n>> this now on some platforms/setups due to prereqs.\n>\n> I understand, but I am still worried that this is a lot of work for an\n> incomplete fix.\n>\n> For example, the t7600-merge.sh test script that set off this conversation\n> has two prereqs that are unmet on Windows: GPG and EXECKEEPSPID. On Azure\n> Pipelines' macOS agents, it is only GPG that is unmet. So switching off\n> all prereqs would not help macOS with e.g. a bug where the GPG test cases\n> are skipped but the EXECKEEPSPID test case is not.\n\nIt won't catch such cases, but will catch cases where a later new test\nassumes that whatever the state of the test repo it gets is what's\nalways going to be there. In practice I think that'll catch most such\nissues.\n\nThe other GIT_TEST_* modes assume similar non-combinatorial explosion\nfailure scenarios.\n\nI haven't gone back through the test suite's commit history to try to\ndig for other cases, so perhaps this mode is premature etc.\n"},{"id":"375537","messageId":"nycvar.QRO.7.76.6.1905141603160.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"87ef51w3yd.fsf@evledraar.gmail.com","subject":"Re: [PATCH] tests: add a special setup where prerequisites fail","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-05-14T14:04:41Z","receivedAt":"2019-05-14T14:05:08Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Ævar,\n\nOn Tue, 14 May 2019, Ævar Arnfjörð Bjarmason wrote:\n\n> On Tue, May 14 2019, Johannes Schindelin wrote:\n>\n> > On Tue, 14 May 2019, Ævar Arnfjörð Bjarmason wrote:\n> >\n> >> On Tue, May 14 2019, Johannes Schindelin wrote:\n> >>\n> >> > What would you think about a mode where random test cases are\n> >> > skipped? It would have to make sure to provide a way to recreate\n> >> > the problem, e.g. giving a string that defines exactly which test\n> >> > cases were skipped.\n> >> >\n> >> > I am *sure* that tons of test scripts would fail with that, and we\n> >> > would probably have to special-case the `setup` \"test cases\", and\n> >> > we would have to clean up quite a few scripts to *not* execute\n> >> > random stuff outside of `test_expect_*`...\n> >>\n> >> I think it would be neat, but unrelated to and overkill for spotting\n> >> the practical problem we have now, which is that we *know* we skip\n> >> some of this now on some platforms/setups due to prereqs.\n> >\n> > I understand, but I am still worried that this is a lot of work for an\n> > incomplete fix.\n> >\n> > For example, the t7600-merge.sh test script that set off this\n> > conversation has two prereqs that are unmet on Windows: GPG and\n> > EXECKEEPSPID. On Azure Pipelines' macOS agents, it is only GPG that is\n> > unmet. So switching off all prereqs would not help macOS with e.g. a\n> > bug where the GPG test cases are skipped but the EXECKEEPSPID test\n> > case is not.\n>\n> It won't catch such cases, but will catch cases where a later new test\n> assumes that whatever the state of the test repo it gets is what's\n> always going to be there. In practice I think that'll catch most such\n> issues.\n\nThat's fair. It will also raise awareness of these issues, which should\nalso have a quite beneficial effect.\n\nGiven that your patch is not even large, I think you're right, it *is* a\nlot of bang for the buck.\n\nCiao,\nDscho\n"},{"id":"377698","messageId":"20190620204227.8947-1-avarab@gmail.com","threadId":"51054","inReplyTo":"20190513183242.10600-1-avarab@gmail.com","subject":"[PATCH] tests: mark two failing tests under FAIL_PREREQS","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2019-06-20T20:42:27Z","receivedAt":"2019-06-20T20:42:41Z","isPatch":true,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"Fix a couple of tests that would potentially fail under\nGIT_TEST_FAIL_PREREQS=true.\n\nI missed these when annotating other tests in dfe1a17df9 (\"tests: add\na special setup where prerequisites fail\", 2019-05-13) because on my\nsystem I can only reproduce this failure when I run the tests as\n\"root\", since the tests happen to depend on whether we can fall back\non GECOS info or not. I.e. they'd usually fail to look up the ident\ninfo anyway, but not always.\n\nSigned-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n---\n t/t0007-git-var.sh          | 2 +-\n t/t7502-commit-porcelain.sh | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/t/t0007-git-var.sh b/t/t0007-git-var.sh\nindex 5868a87352..1f600e2cae 100755\n--- a/t/t0007-git-var.sh\n+++ b/t/t0007-git-var.sh\n@@ -17,7 +17,7 @@ test_expect_success 'get GIT_COMMITTER_IDENT' '\n \ttest_cmp expect actual\n '\n \n-test_expect_success !AUTOIDENT 'requested identites are strict' '\n+test_expect_success !FAIL_PREREQS,!AUTOIDENT 'requested identites are strict' '\n \t(\n \t\tsane_unset GIT_COMMITTER_NAME &&\n \t\tsane_unset GIT_COMMITTER_EMAIL &&\ndiff --git a/t/t7502-commit-porcelain.sh b/t/t7502-commit-porcelain.sh\nindex 5733d9cd34..14c92e4c25 100755\n--- a/t/t7502-commit-porcelain.sh\n+++ b/t/t7502-commit-porcelain.sh\n@@ -402,7 +402,7 @@ echo editor started >\"$(pwd)/.git/result\"\n exit 0\n EOF\n \n-test_expect_success !AUTOIDENT 'do not fire editor when committer is bogus' '\n+test_expect_success !FAIL_PREREQS,!AUTOIDENT 'do not fire editor when committer is bogus' '\n \t>.git/result &&\n \n \techo >>negative &&\n-- \n2.22.0.455.g172b71a6c5\n\n"},{"id":"377758","messageId":"nycvar.QRO.7.76.6.1906212000580.44@tvgsbejvaqbjf.bet","threadId":"51054","inReplyTo":"20190620204227.8947-1-avarab@gmail.com","subject":"Re: [PATCH] tests: mark two failing tests under FAIL_PREREQS","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2019-06-21T18:04:06Z","receivedAt":"2019-06-21T18:03:57Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Ævar,\n\nOn Thu, 20 Jun 2019, Ævar Arnfjörð Bjarmason wrote:\n\n> Fix a couple of tests that would potentially fail under\n> GIT_TEST_FAIL_PREREQS=true.\n>\n> I missed these when annotating other tests in dfe1a17df9 (\"tests: add\n> a special setup where prerequisites fail\", 2019-05-13) because on my\n> system I can only reproduce this failure when I run the tests as\n> \"root\", since the tests happen to depend on whether we can fall back\n> on GECOS info or not. I.e. they'd usually fail to look up the ident\n> info anyway, but not always.\n\nI had to read the commit message (in particular the oneline) a couple of\ntimes, and I have to admit that I wish it was a bit clearer...\n\nFrom the explanation, I would have assumed that those two test cases fail\noften, anyway, so they shouldn't care whether `FAIL_PREREQS` is in effect.\n\nThe only reason why they should be exempt from the `FAIL_PREREQS` mode\nthat I can think of is that later test cases would depend on them, but how\ncan they? Those test cases would also have to have the `AUTOIDENT` prereq,\nand they would be skipped under `FAIL_PREREQS`, too, no?\n\nIn other words, I struggle to understand why this patch is necessary.\n\nCould you help me understand?\n\nCiao,\nDscho\n\n>\n> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n> ---\n>  t/t0007-git-var.sh          | 2 +-\n>  t/t7502-commit-porcelain.sh | 2 +-\n>  2 files changed, 2 insertions(+), 2 deletions(-)\n>\n> diff --git a/t/t0007-git-var.sh b/t/t0007-git-var.sh\n> index 5868a87352..1f600e2cae 100755\n> --- a/t/t0007-git-var.sh\n> +++ b/t/t0007-git-var.sh\n> @@ -17,7 +17,7 @@ test_expect_success 'get GIT_COMMITTER_IDENT' '\n>  \ttest_cmp expect actual\n>  '\n>\n> -test_expect_success !AUTOIDENT 'requested identites are strict' '\n> +test_expect_success !FAIL_PREREQS,!AUTOIDENT 'requested identites are strict' '\n>  \t(\n>  \t\tsane_unset GIT_COMMITTER_NAME &&\n>  \t\tsane_unset GIT_COMMITTER_EMAIL &&\n> diff --git a/t/t7502-commit-porcelain.sh b/t/t7502-commit-porcelain.sh\n> index 5733d9cd34..14c92e4c25 100755\n> --- a/t/t7502-commit-porcelain.sh\n> +++ b/t/t7502-commit-porcelain.sh\n> @@ -402,7 +402,7 @@ echo editor started >\"$(pwd)/.git/result\"\n>  exit 0\n>  EOF\n>\n> -test_expect_success !AUTOIDENT 'do not fire editor when committer is bogus' '\n> +test_expect_success !FAIL_PREREQS,!AUTOIDENT 'do not fire editor when committer is bogus' '\n>  \t>.git/result &&\n>\n>  \techo >>negative &&\n> --\n> 2.22.0.455.g172b71a6c5\n>\n>\n"},{"id":"377760","messageId":"87a7ea94m9.fsf@evledraar.gmail.com","threadId":"51054","inReplyTo":"nycvar.QRO.7.76.6.1906212000580.44@tvgsbejvaqbjf.bet","subject":"Re: [PATCH] tests: mark two failing tests under FAIL_PREREQS","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2019-06-21T18:26:38Z","receivedAt":"2019-06-21T18:26:44Z","isPatch":true,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"\nOn Fri, Jun 21 2019, Johannes Schindelin wrote:\n\n> Hi Ævar,\n>\n> On Thu, 20 Jun 2019, Ævar Arnfjörð Bjarmason wrote:\n>\n>> Fix a couple of tests that would potentially fail under\n>> GIT_TEST_FAIL_PREREQS=true.\n>>\n>> I missed these when annotating other tests in dfe1a17df9 (\"tests: add\n>> a special setup where prerequisites fail\", 2019-05-13) because on my\n>> system I can only reproduce this failure when I run the tests as\n>> \"root\", since the tests happen to depend on whether we can fall back\n>> on GECOS info or not. I.e. they'd usually fail to look up the ident\n>> info anyway, but not always.\n>\n> I had to read the commit message (in particular the oneline) a couple of\n> times, and I have to admit that I wish it was a bit clearer...\n>\n> From the explanation, I would have assumed that those two test cases fail\n> often, anyway, so they shouldn't care whether `FAIL_PREREQS` is in effect.\n>\n> The only reason why they should be exempt from the `FAIL_PREREQS` mode\n> that I can think of is that later test cases would depend on them, but how\n> can they? Those test cases would also have to have the `AUTOIDENT` prereq,\n> and they would be skipped under `FAIL_PREREQS`, too, no?\n\nThe test doesn't depend on \"AUTOIDENT\", but \"!AUTOIDENT\", i.e. the\nnegated version. The effect of the FAIL_PREREQS mode is to set all\nprereqs to false, and therefore \"test_have_prereq AUTOIDENT\" is false,\nbut \"test_have_prereq !AUTOIDENT\" is true.\n\nSo this test that would otherwise get skipped gets run.\n\nI honestly didn't think much about these cases when I wrote dfe1a17df9\n(\"tests: add a special setup where prerequisites fail\", 2019-05-13), and\nnow I'm not quite sure whether it should be considered a bug or a\nfeature, but in the meantime this un-breaks the test suite under this\nmode.\n\n> In other words, I struggle to understand why this patch is necessary.\n>\n> Could you help me understand?\n>\n> Ciao,\n> Dscho\n>\n>>\n>> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>\n>> ---\n>>  t/t0007-git-var.sh          | 2 +-\n>>  t/t7502-commit-porcelain.sh | 2 +-\n>>  2 files changed, 2 insertions(+), 2 deletions(-)\n>>\n>> diff --git a/t/t0007-git-var.sh b/t/t0007-git-var.sh\n>> index 5868a87352..1f600e2cae 100755\n>> --- a/t/t0007-git-var.sh\n>> +++ b/t/t0007-git-var.sh\n>> @@ -17,7 +17,7 @@ test_expect_success 'get GIT_COMMITTER_IDENT' '\n>>  \ttest_cmp expect actual\n>>  '\n>>\n>> -test_expect_success !AUTOIDENT 'requested identites are strict' '\n>> +test_expect_success !FAIL_PREREQS,!AUTOIDENT 'requested identites are strict' '\n>>  \t(\n>>  \t\tsane_unset GIT_COMMITTER_NAME &&\n>>  \t\tsane_unset GIT_COMMITTER_EMAIL &&\n>> diff --git a/t/t7502-commit-porcelain.sh b/t/t7502-commit-porcelain.sh\n>> index 5733d9cd34..14c92e4c25 100755\n>> --- a/t/t7502-commit-porcelain.sh\n>> +++ b/t/t7502-commit-porcelain.sh\n>> @@ -402,7 +402,7 @@ echo editor started >\"$(pwd)/.git/result\"\n>>  exit 0\n>>  EOF\n>>\n>> -test_expect_success !AUTOIDENT 'do not fire editor when committer is bogus' '\n>> +test_expect_success !FAIL_PREREQS,!AUTOIDENT 'do not fire editor when committer is bogus' '\n>>  \t>.git/result &&\n>>\n>>  \techo >>negative &&\n>> --\n>> 2.22.0.455.g172b71a6c5\n>>\n>>\n"},{"id":"377769","messageId":"xmqq4l4ik8ga.fsf@gitster-ct.c.googlers.com","threadId":"51054","inReplyTo":"87a7ea94m9.fsf@evledraar.gmail.com","subject":"Re: [PATCH] tests: mark two failing tests under FAIL_PREREQS","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2019-06-21T20:08:21Z","receivedAt":"2019-06-21T20:08:25Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:\n\n> ... The effect of the FAIL_PREREQS mode is to set all\n> prereqs to false, and therefore \"test_have_prereq AUTOIDENT\" is false,\n> but \"test_have_prereq !AUTOIDENT\" is true.\n>\n> So this test that would otherwise get skipped gets run.\n>\n> I honestly didn't think much about these cases when I wrote dfe1a17df9\n> (\"tests: add a special setup where prerequisites fail\", 2019-05-13), and\n> now I'm not quite sure whether it should be considered a bug or a\n> feature, but in the meantime this un-breaks the test suite under this\n> mode.\n\nYeah, reading the above alone, anybody's knee-jerk reaction would be\nthat fail-prereqs is buggy, but then I am not sure how we can \"fix\"\nthat, short of forbidding a prereq like this !AUTOIDENT one from the\ntest suite.  The test \"predicts\" how 'git' used in the test body\nwould behave, and skips it if we know that the predicted behaviour\nbreaks the test.  Forcing the prereq using FAIL_PREREQS without\nactually making a matching change to the behaviour of 'git' has no\nchance of producing sane results.\n\n>>> diff --git a/t/t0007-git-var.sh b/t/t0007-git-var.sh\n>>> index 5868a87352..1f600e2cae 100755\n>>> --- a/t/t0007-git-var.sh\n>>> +++ b/t/t0007-git-var.sh\n>>> @@ -17,7 +17,7 @@ test_expect_success 'get GIT_COMMITTER_IDENT' '\n>>>  \ttest_cmp expect actual\n>>>  '\n>>>\n>>> -test_expect_success !AUTOIDENT 'requested identites are strict' '\n>>> +test_expect_success !FAIL_PREREQS,!AUTOIDENT 'requested identites are strict' '\n>>>  \t(\n>>>  \t\tsane_unset GIT_COMMITTER_NAME &&\n>>>  \t\tsane_unset GIT_COMMITTER_EMAIL &&\n\nFor this particular one, given the test used to set/unset AUTOIDENT\nlazily, I am not sure if it even makes sense to keep this test.  If\nwe break the underlying ident machinery that would be caught by this\nparticular test, it seems to me that it is very likely that the test\nused to lazily set up AUTOIDENT prereq would fail the same way, so\nI am not sure protecting it with !AUTOIDENT would still keep this\none useful.\n\n>>> diff --git a/t/t7502-commit-porcelain.sh b/t/t7502-commit-porcelain.sh\n>>> index 5733d9cd34..14c92e4c25 100755\n>>> --- a/t/t7502-commit-porcelain.sh\n>>> +++ b/t/t7502-commit-porcelain.sh\n>>> @@ -402,7 +402,7 @@ echo editor started >\"$(pwd)/.git/result\"\n>>>  exit 0\n>>>  EOF\n>>>\n>>> -test_expect_success !AUTOIDENT 'do not fire editor when committer is bogus' '\n>>> +test_expect_success !FAIL_PREREQS,!AUTOIDENT 'do not fire editor when committer is bogus' '\n>>>  \t>.git/result &&\n>>>\n>>>  \techo >>negative &&\n>>> --\n>>> 2.22.0.455.g172b71a6c5\n>>>\n>>>\n"}]}