Git fork

Merge branch 'pw/3.0-default-initial-branch-to-main'

Declare that "git init" that is not otherwise configured uses
'main' as the initial branch, not 'master', starting Git 3.0.

* pw/3.0-default-initial-branch-to-main:
t0613: stop setting default initial branch
t9902: switch default branch name to main
t4013: switch default branch name to main
breaking-changes: switch default branch to main

+277 -234
+6
Documentation/BreakingChanges.adoc
··· 165 165 "reftable" format. Most importantly, alternative implementations of Git like 166 166 JGit, libgit2 and Gitoxide need to support it. 167 167 168 + * In new repositories, the default branch name will be `main`. We have been 169 + warning that the default name will change since 675704c74dd (init: 170 + provide useful advice about init.defaultBranch, 2020-12-11). The new name 171 + matches the default branch name used in new repositories by many of the 172 + big Git forges. 173 + 168 174 === Removals 169 175 170 176 * Support for grafting commits has long been superseded by git-replace(1).
+9 -3
Documentation/git-init.adoc
··· 77 77 `-b <branch-name>`:: 78 78 `--initial-branch=<branch-name>`:: 79 79 Use _<branch-name>_ for the initial branch in the newly created 80 - repository. If not specified, fall back to the default name (currently 81 - `master`, but this is subject to change in the future; the name can be 82 - customized via the `init.defaultBranch` configuration variable). 80 + repository. If not specified, fall back to the default name 81 + ifndef::with-breaking-changes[] 82 + (currently `master`, but this will change to `main` when Git 3.0 is released). 83 + endif::with-breaking-changes[] 84 + ifdef::with-breaking-changes[] 85 + `main`. 86 + endif::with-breaking-changes[] 87 + The default name can be customized via the `init.defaultBranch` configuration 88 + variable. 83 89 84 90 `--shared[=(false|true|umask|group|all|world|everybody|<perm>)]`:: 85 91
+2
advice.c
··· 51 51 [ADVICE_AM_WORK_DIR] = { "amWorkDir" }, 52 52 [ADVICE_CHECKOUT_AMBIGUOUS_REMOTE_BRANCH_NAME] = { "checkoutAmbiguousRemoteBranchName" }, 53 53 [ADVICE_COMMIT_BEFORE_MERGE] = { "commitBeforeMerge" }, 54 + #ifndef WITH_BREAKING_CHANGES 54 55 [ADVICE_DEFAULT_BRANCH_NAME] = { "defaultBranchName" }, 56 + #endif /* WITH_BREAKING_CHANGES */ 55 57 [ADVICE_DETACHED_HEAD] = { "detachedHead" }, 56 58 [ADVICE_DIVERGING] = { "diverging" }, 57 59 [ADVICE_FETCH_SET_HEAD_WARN] = { "fetchRemoteHEADWarn" },
+2
advice.h
··· 18 18 ADVICE_AM_WORK_DIR, 19 19 ADVICE_CHECKOUT_AMBIGUOUS_REMOTE_BRANCH_NAME, 20 20 ADVICE_COMMIT_BEFORE_MERGE, 21 + #ifndef WITH_BREAKING_CHANGES 21 22 ADVICE_DEFAULT_BRANCH_NAME, 23 + #endif /* WITH_BREAKING_CHANGES */ 22 24 ADVICE_DETACHED_HEAD, 23 25 ADVICE_DIVERGING, 24 26 ADVICE_FETCH_SET_HEAD_WARN,
-1
ci/run-build-and-tests.sh
··· 9 9 10 10 case "$jobname" in 11 11 linux-breaking-changes) 12 - export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main 13 12 export WITH_BREAKING_CHANGES=YesPlease 14 13 ;; 15 14 linux-TEST-vars)
+11 -4
refs.c
··· 627 627 strvec_pushf(prefixes, *p, len, prefix); 628 628 } 629 629 630 + #ifndef WITH_BREAKING_CHANGES 630 631 static const char default_branch_name_advice[] = N_( 631 632 "Using '%s' as the name for the initial branch. This default branch name\n" 632 - "is subject to change. To configure the initial branch name to use in all\n" 633 - "of your new repositories, which will suppress this warning, call:\n" 633 + "will change to \"main\" in Git 3.0. To configure the initial branch name\n" 634 + "to use in all of your new repositories, which will suppress this warning,\n" 635 + "call:\n" 634 636 "\n" 635 637 "\tgit config --global init.defaultBranch <name>\n" 636 638 "\n" ··· 639 641 "\n" 640 642 "\tgit branch -m <name>\n" 641 643 ); 644 + #endif /* WITH_BREAKING_CHANGES */ 642 645 643 - char *repo_default_branch_name(struct repository *r, int quiet) 646 + char *repo_default_branch_name(struct repository *r, MAYBE_UNUSED int quiet) 644 647 { 645 648 const char *config_key = "init.defaultbranch"; 646 649 const char *config_display_key = "init.defaultBranch"; ··· 649 652 650 653 if (env && *env) 651 654 ret = xstrdup(env); 652 - else if (repo_config_get_string(r, config_key, &ret) < 0) 655 + if (!ret && repo_config_get_string(r, config_key, &ret) < 0) 653 656 die(_("could not retrieve `%s`"), config_display_key); 654 657 655 658 if (!ret) { 659 + #ifdef WITH_BREAKING_CHANGES 660 + ret = xstrdup("main"); 661 + #else 656 662 ret = xstrdup("master"); 657 663 if (!quiet) 658 664 advise_if_enabled(ADVICE_DEFAULT_BRANCH_NAME, 659 665 _(default_branch_name_advice), ret); 666 + #endif /* WITH_BREAKING_CHANGES */ 660 667 } 661 668 662 669 full_ref = xstrfmt("refs/heads/%s", ret);
+17 -1
t/t0001-init.sh
··· 868 868 grep nmb actual 869 869 ' 870 870 871 - test_expect_success 'advice on unconfigured init.defaultBranch' ' 871 + test_expect_success !WITH_BREAKING_CHANGES 'advice on unconfigured init.defaultBranch' ' 872 872 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME= git -c color.advice=always \ 873 873 init unconfigured-default-branch-name 2>err && 874 874 test_decode_color <err >decoded && ··· 881 881 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME= \ 882 882 git -c advice.defaultBranchName=false init no-advice 2>err && 883 883 test_grep ! "hint: " err 884 + ' 885 + 886 + test_expect_success 'default branch name' ' 887 + if test_have_prereq WITH_BREAKING_CHANGES 888 + then 889 + expect=main 890 + else 891 + expect=master 892 + fi && 893 + echo "refs/heads/$expect" >expect && 894 + ( 895 + sane_unset GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME && 896 + git init default-initial-branch-name 897 + ) && 898 + git -C default-initial-branch-name symbolic-ref HEAD >actual && 899 + test_cmp expect actual 884 900 ' 885 901 886 902 test_expect_success 'overridden default main branch name (env)' '
+13 -11
t/t0613-reftable-write-options.sh
··· 11 11 # Block sizes depend on the hash function, so we force SHA1 here. 12 12 GIT_TEST_DEFAULT_HASH=sha1 13 13 export GIT_TEST_DEFAULT_HASH 14 - # Block sizes also depend on the actual refs we write, so we force "master" to 15 - # be the default initial branch name. 16 - GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master 17 - export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 18 14 19 15 . ./test-lib.sh 20 16 17 + # Block sizes depend on the actual refs we write, so, for tests 18 + # that check block size, we force the initial branch name to be "master". 19 + init_repo () { 20 + git init --initial-branch master repo 21 + } 22 + 21 23 test_expect_success 'default write options' ' 22 24 test_when_finished "rm -rf repo" && 23 - git init repo && 25 + init_repo && 24 26 ( 25 27 cd repo && 26 28 test_commit initial && ··· 43 45 test_expect_success 'disabled reflog writes no log blocks' ' 44 46 test_config_global core.logAllRefUpdates false && 45 47 test_when_finished "rm -rf repo" && 46 - git init repo && 48 + init_repo && 47 49 ( 48 50 cd repo && 49 51 test_commit initial && ··· 62 64 63 65 test_expect_success 'many refs results in multiple blocks' ' 64 66 test_when_finished "rm -rf repo" && 65 - git init repo && 67 + init_repo && 66 68 ( 67 69 cd repo && 68 70 test_commit initial && ··· 115 117 test_expect_success 'small block size leads to multiple ref blocks' ' 116 118 test_config_global core.logAllRefUpdates false && 117 119 test_when_finished "rm -rf repo" && 118 - git init repo && 120 + init_repo && 119 121 ( 120 122 cd repo && 121 123 test_commit A && ··· 172 174 173 175 test_expect_success 'restart interval at every single record' ' 174 176 test_when_finished "rm -rf repo" && 175 - git init repo && 177 + init_repo && 176 178 ( 177 179 cd repo && 178 180 test_commit initial && ··· 212 214 test_expect_success 'object index gets written by default with ref index' ' 213 215 test_config_global core.logAllRefUpdates false && 214 216 test_when_finished "rm -rf repo" && 215 - git init repo && 217 + init_repo && 216 218 ( 217 219 cd repo && 218 220 test_commit initial && ··· 247 249 test_expect_success 'object index can be disabled' ' 248 250 test_config_global core.logAllRefUpdates false && 249 251 test_when_finished "rm -rf repo" && 250 - git init repo && 252 + init_repo && 251 253 ( 252 254 cd repo && 253 255 test_commit initial &&
+110 -110
t/t4013-diff-various.sh
··· 5 5 6 6 test_description='Various diff formatting options' 7 7 8 - GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master 8 + GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main 9 9 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 10 10 11 11 . ./test-lib.sh ··· 70 70 GIT_COMMITTER_DATE="2006-06-26 00:04:00 +0000" && 71 71 export GIT_AUTHOR_DATE GIT_COMMITTER_DATE && 72 72 73 - git checkout master && 73 + git checkout main && 74 74 git pull -s ours --no-rebase . side && 75 75 76 76 GIT_AUTHOR_DATE="2006-06-26 00:05:00 +0000" && ··· 95 95 test_write_lines B A >dir/sub && 96 96 git add dir/sub && 97 97 git commit -m "Rearranged lines in dir/sub" && 98 - git checkout master && 98 + git checkout main && 99 99 100 100 GIT_AUTHOR_DATE="2006-06-26 00:06:00 +0000" && 101 101 GIT_COMMITTER_DATE="2006-06-26 00:06:00 +0000" && ··· 103 103 git checkout -b mode initial && 104 104 git update-index --chmod=+x file0 && 105 105 git commit -m "update mode" && 106 - git checkout -f master && 106 + git checkout -f main && 107 107 108 108 GIT_AUTHOR_DATE="2006-06-26 00:06:00 +0000" && 109 109 GIT_COMMITTER_DATE="2006-06-26 00:06:00 +0000" && ··· 112 112 git update-index --chmod=+x file2 && 113 113 git commit -m "update mode (file2)" && 114 114 git notes add -m "note" && 115 - git checkout -f master && 115 + git checkout -f main && 116 116 117 - # Same merge as master, but with parents reversed. Hide it in a 117 + # Same merge as main, but with parents reversed. Hide it in a 118 118 # pseudo-ref to avoid impacting tests with --all. 119 119 commit=$(echo reverse | 120 - git commit-tree -p master^2 -p master^1 master^{tree}) && 120 + git commit-tree -p main^2 -p main^1 main^{tree}) && 121 121 git update-ref REVERSE $commit && 122 122 123 123 git config diff.renames false && ··· 127 127 128 128 : <<\EOF 129 129 ! [initial] Initial 130 - * [master] Merge branch 'side' 130 + * [main] Merge branch 'side' 131 131 ! [rearrange] Rearranged lines in dir/sub 132 132 ! [side] Side 133 133 ---- 134 134 + [rearrange] Rearranged lines in dir/sub 135 - - [master] Merge branch 'side' 135 + - [main] Merge branch 'side' 136 136 * + [side] Side 137 - * [master^] Third 138 - * [master~2] Second 137 + * [main^] Third 138 + * [main~2] Second 139 139 +*++ [initial] Initial 140 140 EOF 141 141 ··· 311 311 diff-tree --stat initial mode 312 312 diff-tree --summary initial mode 313 313 314 - diff-tree master 315 - diff-tree -m master 316 - diff-tree -p master 317 - diff-tree -p -m master 318 - diff-tree -c master 319 - diff-tree -c --abbrev master 320 - :noellipses diff-tree -c --abbrev master 321 - diff-tree --cc master 314 + diff-tree main 315 + diff-tree -m main 316 + diff-tree -p main 317 + diff-tree -p -m main 318 + diff-tree -c main 319 + diff-tree -c --abbrev main 320 + :noellipses diff-tree -c --abbrev main 321 + diff-tree --cc main 322 322 # stat only should show the diffstat with the first parent 323 - diff-tree -c --stat master 324 - diff-tree --cc --stat master 325 - diff-tree -c --stat --summary master 326 - diff-tree --cc --stat --summary master 323 + diff-tree -c --stat main 324 + diff-tree --cc --stat main 325 + diff-tree -c --stat --summary main 326 + diff-tree --cc --stat --summary main 327 327 # stat summary should show the diffstat and summary with the first parent 328 328 diff-tree -c --stat --summary side 329 329 diff-tree --cc --stat --summary side 330 - diff-tree --cc --shortstat master 330 + diff-tree --cc --shortstat main 331 331 diff-tree --cc --summary REVERSE 332 332 # improved by Timo's patch 333 - diff-tree --cc --patch-with-stat master 333 + diff-tree --cc --patch-with-stat main 334 334 # improved by Timo's patch 335 - diff-tree --cc --patch-with-stat --summary master 335 + diff-tree --cc --patch-with-stat --summary main 336 336 # this is correct 337 337 diff-tree --cc --patch-with-stat --summary side 338 338 339 - log master 340 - log -p master 341 - log --root master 342 - log --root -p master 343 - log --patch-with-stat master 344 - log --root --patch-with-stat master 345 - log --root --patch-with-stat --summary master 339 + log main 340 + log -p main 341 + log --root main 342 + log --root -p main 343 + log --patch-with-stat main 344 + log --root --patch-with-stat main 345 + log --root --patch-with-stat --summary main 346 346 # improved by Timo's patch 347 - log --root -c --patch-with-stat --summary master 347 + log --root -c --patch-with-stat --summary main 348 348 # improved by Timo's patch 349 - log --root --cc --patch-with-stat --summary master 350 - log --no-diff-merges -p --first-parent master 351 - log --diff-merges=off -p --first-parent master 352 - log --first-parent --diff-merges=off -p master 353 - log -p --first-parent master 354 - log -p --diff-merges=first-parent master 355 - log --diff-merges=first-parent master 356 - log -m -p --first-parent master 357 - log -m -p master 358 - log --cc -m -p master 359 - log -c -m -p master 360 - log -m --raw master 361 - log -m --stat master 362 - log -SF master 363 - log -S F master 364 - log -SF -p master 365 - log -SF master --max-count=0 366 - log -SF master --max-count=1 367 - log -SF master --max-count=2 368 - log -GF master 369 - log -GF -p master 370 - log -GF -p --pickaxe-all master 371 - log -IA -IB -I1 -I2 -p master 349 + log --root --cc --patch-with-stat --summary main 350 + log --no-diff-merges -p --first-parent main 351 + log --diff-merges=off -p --first-parent main 352 + log --first-parent --diff-merges=off -p main 353 + log -p --first-parent main 354 + log -p --diff-merges=first-parent main 355 + log --diff-merges=first-parent main 356 + log -m -p --first-parent main 357 + log -m -p main 358 + log --cc -m -p main 359 + log -c -m -p main 360 + log -m --raw main 361 + log -m --stat main 362 + log -SF main 363 + log -S F main 364 + log -SF -p main 365 + log -SF main --max-count=0 366 + log -SF main --max-count=1 367 + log -SF main --max-count=2 368 + log -GF main 369 + log -GF -p main 370 + log -GF -p --pickaxe-all main 371 + log -IA -IB -I1 -I2 -p main 372 372 log --decorate --all 373 373 log --decorate=full --all 374 374 log --decorate --clear-decorations --all ··· 377 377 rev-list --parents HEAD 378 378 rev-list --children HEAD 379 379 380 - whatchanged master 381 - :noellipses whatchanged master 382 - whatchanged -p master 383 - whatchanged --root master 384 - :noellipses whatchanged --root master 385 - whatchanged --root -p master 386 - whatchanged --patch-with-stat master 387 - whatchanged --root --patch-with-stat master 388 - whatchanged --root --patch-with-stat --summary master 380 + whatchanged main 381 + :noellipses whatchanged main 382 + whatchanged -p main 383 + whatchanged --root main 384 + :noellipses whatchanged --root main 385 + whatchanged --root -p main 386 + whatchanged --patch-with-stat main 387 + whatchanged --root --patch-with-stat main 388 + whatchanged --root --patch-with-stat --summary main 389 389 # improved by Timo's patch 390 - whatchanged --root -c --patch-with-stat --summary master 390 + whatchanged --root -c --patch-with-stat --summary main 391 391 # improved by Timo's patch 392 - whatchanged --root --cc --patch-with-stat --summary master 393 - whatchanged -SF master 394 - :noellipses whatchanged -SF master 395 - whatchanged -SF -p master 392 + whatchanged --root --cc --patch-with-stat --summary main 393 + whatchanged -SF main 394 + :noellipses whatchanged -SF main 395 + whatchanged -SF -p main 396 396 397 - log --patch-with-stat master -- dir/ 398 - whatchanged --patch-with-stat master -- dir/ 399 - log --patch-with-stat --summary master -- dir/ 400 - whatchanged --patch-with-stat --summary master -- dir/ 397 + log --patch-with-stat main -- dir/ 398 + whatchanged --patch-with-stat main -- dir/ 399 + log --patch-with-stat --summary main -- dir/ 400 + whatchanged --patch-with-stat --summary main -- dir/ 401 401 402 402 show initial 403 403 show --root initial 404 404 show side 405 - show master 406 - show -c master 407 - show -m master 408 - show --first-parent master 405 + show main 406 + show -c main 407 + show -m main 408 + show --first-parent main 409 409 show --stat side 410 410 show --stat --summary side 411 411 show --patch-with-stat side ··· 414 414 show --patch-with-stat --summary side 415 415 416 416 format-patch --stdout initial..side 417 - format-patch --stdout initial..master^ 418 - format-patch --stdout initial..master 419 - format-patch --stdout --no-numbered initial..master 420 - format-patch --stdout --numbered initial..master 417 + format-patch --stdout initial..main^ 418 + format-patch --stdout initial..main 419 + format-patch --stdout --no-numbered initial..main 420 + format-patch --stdout --numbered initial..main 421 421 format-patch --attach --stdout initial..side 422 422 format-patch --attach --stdout --suffix=.diff initial..side 423 - format-patch --attach --stdout initial..master^ 424 - format-patch --attach --stdout initial..master 423 + format-patch --attach --stdout initial..main^ 424 + format-patch --attach --stdout initial..main 425 425 format-patch --inline --stdout initial..side 426 - format-patch --inline --stdout initial..master^ 427 - format-patch --inline --stdout --numbered-files initial..master 428 - format-patch --inline --stdout initial..master 429 - format-patch --inline --stdout --subject-prefix=TESTCASE initial..master 426 + format-patch --inline --stdout initial..main^ 427 + format-patch --inline --stdout --numbered-files initial..main 428 + format-patch --inline --stdout initial..main 429 + format-patch --inline --stdout --subject-prefix=TESTCASE initial..main 430 430 config format.subjectprefix DIFFERENT_PREFIX 431 - format-patch --inline --stdout initial..master^^ 432 - format-patch --stdout --cover-letter -n initial..master^ 431 + format-patch --inline --stdout initial..main^^ 432 + format-patch --stdout --cover-letter -n initial..main^ 433 433 434 434 diff --abbrev initial..side 435 435 diff -U initial..side ··· 448 448 diff --no-index --name-status dir2 dir 449 449 diff --no-index --name-status -- dir2 dir 450 450 diff --no-index dir dir3 451 - diff master master^ side 451 + diff main main^ side 452 452 # Can't use spaces... 453 - diff --line-prefix=abc master master^ side 454 - diff --dirstat master~1 master~2 453 + diff --line-prefix=abc main main^ side 454 + diff --dirstat main~1 main~2 455 455 diff --dirstat initial rearrange 456 456 diff --dirstat-by-file initial rearrange 457 - diff --dirstat --cc master~1 master 457 + diff --dirstat --cc main~1 main 458 458 # No-index --abbrev and --no-abbrev 459 459 diff --raw initial 460 460 :noellipses diff --raw initial ··· 482 482 ' 483 483 484 484 test_expect_success 'log -m matches pure log' ' 485 - git log master >result && 485 + git log main >result && 486 486 process_diffs result >expected && 487 487 git log -m >result && 488 488 process_diffs result >actual && ··· 490 490 ' 491 491 492 492 test_expect_success 'log --diff-merges=on matches --diff-merges=separate' ' 493 - git log -p --diff-merges=separate master >result && 493 + git log -p --diff-merges=separate main >result && 494 494 process_diffs result >expected && 495 - git log -p --diff-merges=on master >result && 495 + git log -p --diff-merges=on main >result && 496 496 process_diffs result >actual && 497 497 test_cmp expected actual 498 498 ' 499 499 500 500 test_expect_success 'log --dd matches --diff-merges=1 -p' ' 501 - git log --diff-merges=1 -p master >result && 501 + git log --diff-merges=1 -p main >result && 502 502 process_diffs result >expected && 503 - git log --dd master >result && 503 + git log --dd main >result && 504 504 process_diffs result >actual && 505 505 test_cmp expected actual 506 506 ' ··· 511 511 ' 512 512 513 513 test_expect_success 'git config log.diffMerges first-parent' ' 514 - git log -p --diff-merges=first-parent master >result && 514 + git log -p --diff-merges=first-parent main >result && 515 515 process_diffs result >expected && 516 516 test_config log.diffMerges first-parent && 517 - git log -p --diff-merges=on master >result && 517 + git log -p --diff-merges=on main >result && 518 518 process_diffs result >actual && 519 519 test_cmp expected actual 520 520 ' 521 521 522 522 test_expect_success 'git config log.diffMerges first-parent vs -m' ' 523 - git log -p --diff-merges=first-parent master >result && 523 + git log -p --diff-merges=first-parent main >result && 524 524 process_diffs result >expected && 525 525 test_config log.diffMerges first-parent && 526 - git log -p -m master >result && 526 + git log -p -m main >result && 527 527 process_diffs result >actual && 528 528 test_cmp expected actual 529 529 ' ··· 572 572 Third 573 573 Second 574 574 EOF 575 - git rev-list master | git diff-tree --stdin --format=%s -s >actual && 575 + git rev-list main | git diff-tree --stdin --format=%s -s >actual && 576 576 test_cmp expect actual 577 577 ' 578 578 ··· 585 585 586 586 dir/sub 587 587 EOF 588 - git rev-list master^ | 588 + git rev-list main^ | 589 589 git diff-tree -r --stdin --name-only --format=%s dir >actual && 590 590 test_cmp expect actual 591 591 ' 592 592 593 593 test_expect_success 'show A B ... -- <pathspec>' ' 594 594 # side touches dir/sub, file0, and file3 595 - # master^ touches dir/sub, and file1 596 - # master^^ touches dir/sub, file0, and file2 597 - git show --name-only --format="<%s>" side master^ master^^ -- dir >actual && 595 + # main^ touches dir/sub, and file1 596 + # main^^ touches dir/sub, file0, and file2 597 + git show --name-only --format="<%s>" side main^ main^^ -- dir >actual && 598 598 cat >expect <<-\EOF && 599 599 <Side> 600 600 ··· 610 610 ' 611 611 612 612 test_expect_success 'diff -I<regex>: setup' ' 613 - git checkout master && 613 + git checkout main && 614 614 test_seq 50 >file0 && 615 615 git commit -m "Set up -I<regex> test file" file0 && 616 616 test_seq 50 | sed -e "s/13/ten and three/" -e "/7\$/d" >file0 &&
+1 -1
t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_master t/t4013/diff.diff-tree_--cc_--patch-with-stat_--summary_main
··· 1 - $ git diff-tree --cc --patch-with-stat --summary master 1 + $ git diff-tree --cc --patch-with-stat --summary main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 dir/sub | 2 ++ 4 4 file0 | 3 +++
+1 -1
t/t4013/diff.diff-tree_--cc_--patch-with-stat_master t/t4013/diff.diff-tree_--cc_--patch-with-stat_main
··· 1 - $ git diff-tree --cc --patch-with-stat master 1 + $ git diff-tree --cc --patch-with-stat main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 dir/sub | 2 ++ 4 4 file0 | 3 +++
+1 -1
t/t4013/diff.diff-tree_--cc_--shortstat_master t/t4013/diff.diff-tree_--cc_--shortstat_main
··· 1 - $ git diff-tree --cc --shortstat master 1 + $ git diff-tree --cc --shortstat main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 2 files changed, 5 insertions(+) 4 4 $
+1 -1
t/t4013/diff.diff-tree_--cc_--stat_--summary_master t/t4013/diff.diff-tree_-c_--stat_--summary_main
··· 1 - $ git diff-tree --cc --stat --summary master 1 + $ git diff-tree -c --stat --summary main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 dir/sub | 2 ++ 4 4 file0 | 3 +++
+1 -1
t/t4013/diff.diff-tree_--cc_--stat_master t/t4013/diff.diff-tree_--cc_--stat_main
··· 1 - $ git diff-tree --cc --stat master 1 + $ git diff-tree --cc --stat main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 dir/sub | 2 ++ 4 4 file0 | 3 +++
+1 -1
t/t4013/diff.diff-tree_--cc_master t/t4013/diff.diff-tree_--cc_main
··· 1 - $ git diff-tree --cc master 1 + $ git diff-tree --cc main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 diff --cc dir/sub 4 4 index cead32e,7289e35..992913c
+1 -1
t/t4013/diff.diff-tree_-c_--abbrev_master t/t4013/diff.diff-tree_-c_--abbrev_main
··· 1 - $ git diff-tree -c --abbrev master 1 + $ git diff-tree -c --abbrev main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 ::100644 100644 100644 cead32e... 7289e35... 992913c... MM dir/sub 4 4 ::100644 100644 100644 b414108... f4615da... 10a8a9f... MM file0
+1 -1
t/t4013/diff.diff-tree_-c_--stat_--summary_master t/t4013/diff.diff-tree_--cc_--stat_--summary_main
··· 1 - $ git diff-tree -c --stat --summary master 1 + $ git diff-tree --cc --stat --summary main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 dir/sub | 2 ++ 4 4 file0 | 3 +++
+1 -1
t/t4013/diff.diff-tree_-c_--stat_master t/t4013/diff.diff-tree_-c_--stat_main
··· 1 - $ git diff-tree -c --stat master 1 + $ git diff-tree -c --stat main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 dir/sub | 2 ++ 4 4 file0 | 3 +++
+1 -1
t/t4013/diff.diff-tree_-c_master t/t4013/diff.diff-tree_-c_main
··· 1 - $ git diff-tree -c master 1 + $ git diff-tree -c main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 ::100644 100644 100644 cead32e925b1420c84c14cbf7cf755e7e45af8ad 7289e35bff32727c08dda207511bec138fdb9ea5 992913c5aa0a5476d10c49ed0f21fc0c6d1aedf3 MM dir/sub 4 4 ::100644 100644 100644 b414108e81e5091fe0974a1858b4d0d22b107f70 f4615da674c09df322d6ba8d6b21ecfb1b1ba510 10a8a9f3657f91a156b9f0184ed79a20adef9f7f MM file0
+1 -1
t/t4013/diff.diff-tree_-m_master t/t4013/diff.diff-tree_-m_main
··· 1 - $ git diff-tree -m master 1 + $ git diff-tree -m main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 :040000 040000 65f5c9dd60ce3b2b3324b618ac7accf8d912c113 0564e026437809817a64fff393079714b6dd4628 M dir 4 4 :100644 100644 b414108e81e5091fe0974a1858b4d0d22b107f70 10a8a9f3657f91a156b9f0184ed79a20adef9f7f M file0
+1 -1
t/t4013/diff.diff-tree_-p_-m_master t/t4013/diff.diff-tree_-p_-m_main
··· 1 - $ git diff-tree -p -m master 1 + $ git diff-tree -p -m main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 diff --git a/dir/sub b/dir/sub 4 4 index cead32e..992913c 100644
+2
t/t4013/diff.diff-tree_-p_main
··· 1 + $ git diff-tree -p main 2 + $
-2
t/t4013/diff.diff-tree_-p_master
··· 1 - $ git diff-tree -p master 2 - $
+2
t/t4013/diff.diff-tree_main
··· 1 + $ git diff-tree main 2 + $
-2
t/t4013/diff.diff-tree_master
··· 1 - $ git diff-tree master 2 - $
+3
t/t4013/diff.diff_--dirstat_--cc_main~1_main
··· 1 + $ git diff --dirstat --cc main~1 main 2 + 40.0% dir/ 3 + $
-3
t/t4013/diff.diff_--dirstat_--cc_master~1_master
··· 1 - $ git diff --dirstat --cc master~1 master 2 - 40.0% dir/ 3 - $
+3
t/t4013/diff.diff_--dirstat_main~1_main~2
··· 1 + $ git diff --dirstat main~1 main~2 2 + 40.0% dir/ 3 + $
-3
t/t4013/diff.diff_--dirstat_master~1_master~2
··· 1 - $ git diff --dirstat master~1 master~2 2 - 40.0% dir/ 3 - $
+1 -1
t/t4013/diff.diff_--line-prefix=abc_master_master^_side t/t4013/diff.diff_--line-prefix=abc_main_main^_side
··· 1 - $ git diff --line-prefix=abc master master^ side 1 + $ git diff --line-prefix=abc main main^ side 2 2 abcdiff --cc dir/sub 3 3 abcindex cead32e,7289e35..992913c 4 4 abc--- a/dir/sub
+1 -1
t/t4013/diff.diff_master_master^_side t/t4013/diff.diff_main_main^_side
··· 1 - $ git diff master master^ side 1 + $ git diff main main^ side 2 2 diff --cc dir/sub 3 3 index cead32e,7289e35..992913c 4 4 --- a/dir/sub
+1 -1
t/t4013/diff.format-patch_--attach_--stdout_initial..master t/t4013/diff.format-patch_--attach_--stdout_initial..main
··· 1 - $ git format-patch --attach --stdout initial..master 1 + $ git format-patch --attach --stdout initial..main 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.format-patch_--attach_--stdout_initial..master^ t/t4013/diff.format-patch_--attach_--stdout_initial..main^
··· 1 - $ git format-patch --attach --stdout initial..master^ 1 + $ git format-patch --attach --stdout initial..main^ 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..master t/t4013/diff.format-patch_--inline_--stdout_--numbered-files_initial..main
··· 1 - $ git format-patch --inline --stdout --numbered-files initial..master 1 + $ git format-patch --inline --stdout --numbered-files initial..main 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..master t/t4013/diff.format-patch_--inline_--stdout_--subject-prefix=TESTCASE_initial..main
··· 1 - $ git format-patch --inline --stdout --subject-prefix=TESTCASE initial..master 1 + $ git format-patch --inline --stdout --subject-prefix=TESTCASE initial..main 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.format-patch_--inline_--stdout_initial..master t/t4013/diff.format-patch_--inline_--stdout_initial..main
··· 1 - $ git format-patch --inline --stdout initial..master 1 + $ git format-patch --inline --stdout initial..main 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.format-patch_--inline_--stdout_initial..master^ t/t4013/diff.format-patch_--inline_--stdout_initial..main^
··· 1 - $ git format-patch --inline --stdout initial..master^ 1 + $ git format-patch --inline --stdout initial..main^ 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.format-patch_--inline_--stdout_initial..master^^ t/t4013/diff.format-patch_--inline_--stdout_initial..main^^
··· 1 - $ git format-patch --inline --stdout initial..master^^ 1 + $ git format-patch --inline --stdout initial..main^^ 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..master^ t/t4013/diff.format-patch_--stdout_--cover-letter_-n_initial..main^
··· 1 - $ git format-patch --stdout --cover-letter -n initial..master^ 1 + $ git format-patch --stdout --cover-letter -n initial..main^ 2 2 From 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 Mon Sep 17 00:00:00 2001 3 3 From: C O Mitter <committer@example.com> 4 4 Date: Mon, 26 Jun 2006 00:06:00 +0000
+1 -1
t/t4013/diff.format-patch_--stdout_--no-numbered_initial..master t/t4013/diff.format-patch_--stdout_--no-numbered_initial..main
··· 1 - $ git format-patch --stdout --no-numbered initial..master 1 + $ git format-patch --stdout --no-numbered initial..main 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.format-patch_--stdout_--numbered_initial..master t/t4013/diff.format-patch_--stdout_--numbered_initial..main
··· 1 - $ git format-patch --stdout --numbered initial..master 1 + $ git format-patch --stdout --numbered initial..main 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.format-patch_--stdout_initial..master t/t4013/diff.format-patch_--stdout_initial..main
··· 1 - $ git format-patch --stdout initial..master 1 + $ git format-patch --stdout initial..main 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.format-patch_--stdout_initial..master^ t/t4013/diff.format-patch_--stdout_initial..main^
··· 1 - $ git format-patch --stdout initial..master^ 1 + $ git format-patch --stdout initial..main^ 2 2 From 1bde4ae5f36c8d9abe3a0fce0c6aab3c4a12fe44 Mon Sep 17 00:00:00 2001 3 3 From: A U Thor <author@example.com> 4 4 Date: Mon, 26 Jun 2006 00:01:00 +0000
+1 -1
t/t4013/diff.log_--cc_-m_-p_master t/t4013/diff.log_-c_-m_-p_main
··· 1 - $ git log --cc -m -p master 1 + $ git log -c -m -p main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--decorate=full_--all
··· 26 26 27 27 Notes added by 'git notes add' 28 28 29 - commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/master) 29 + commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/main) 30 30 Merge: 9a6d494 c7a2ab9 31 31 Author: A U Thor <author@example.com> 32 32 Date: Mon Jun 26 00:04:00 2006 +0000
+1 -1
t/t4013/diff.log_--decorate=full_--clear-decorations_--all
··· 26 26 27 27 Notes added by 'git notes add' 28 28 29 - commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/master) 29 + commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/main) 30 30 Merge: 9a6d494 c7a2ab9 31 31 Author: A U Thor <author@example.com> 32 32 Date: Mon Jun 26 00:04:00 2006 +0000
+1 -1
t/t4013/diff.log_--decorate=full_--decorate-all_--all
··· 26 26 27 27 Notes added by 'git notes add' 28 28 29 - commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/master) 29 + commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> refs/heads/main) 30 30 Merge: 9a6d494 c7a2ab9 31 31 Author: A U Thor <author@example.com> 32 32 Date: Mon Jun 26 00:04:00 2006 +0000
+1 -1
t/t4013/diff.log_--decorate_--all
··· 26 26 27 27 Notes added by 'git notes add' 28 28 29 - commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> master) 29 + commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> main) 30 30 Merge: 9a6d494 c7a2ab9 31 31 Author: A U Thor <author@example.com> 32 32 Date: Mon Jun 26 00:04:00 2006 +0000
+1 -1
t/t4013/diff.log_--decorate_--clear-decorations_--all
··· 26 26 27 27 Notes added by 'git notes add' 28 28 29 - commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> master) 29 + commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> main) 30 30 Merge: 9a6d494 c7a2ab9 31 31 Author: A U Thor <author@example.com> 32 32 Date: Mon Jun 26 00:04:00 2006 +0000
+1 -1
t/t4013/diff.log_--decorate_--decorate-all_--all
··· 26 26 27 27 Notes added by 'git notes add' 28 28 29 - commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> master) 29 + commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (HEAD -> main) 30 30 Merge: 9a6d494 c7a2ab9 31 31 Author: A U Thor <author@example.com> 32 32 Date: Mon Jun 26 00:04:00 2006 +0000
+1 -1
t/t4013/diff.log_--diff-merges=first-parent_master t/t4013/diff.log_--diff-merges=first-parent_main
··· 1 - $ git log --diff-merges=first-parent master 1 + $ git log --diff-merges=first-parent main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--diff-merges=off_-p_--first-parent_master t/t4013/diff.log_--diff-merges=off_-p_--first-parent_main
··· 1 - $ git log --diff-merges=off -p --first-parent master 1 + $ git log --diff-merges=off -p --first-parent main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--first-parent_--diff-merges=off_-p_master t/t4013/diff.log_--first-parent_--diff-merges=off_-p_main
··· 1 - $ git log --first-parent --diff-merges=off -p master 1 + $ git log --first-parent --diff-merges=off -p main 2 2 commit 80e25ffa65bcdbe82ef654b4d06dbbde7945c37f 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--no-diff-merges_-p_--first-parent_master t/t4013/diff.log_--no-diff-merges_-p_--first-parent_main
··· 1 - $ git log --no-diff-merges -p --first-parent master 1 + $ git log --no-diff-merges -p --first-parent main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--patch-with-stat_--summary_master_--_dir_ t/t4013/diff.log_--patch-with-stat_--summary_main_--_dir_
··· 1 - $ git log --patch-with-stat --summary master -- dir/ 1 + $ git log --patch-with-stat --summary main -- dir/ 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--patch-with-stat_master t/t4013/diff.log_--patch-with-stat_main
··· 1 - $ git log --patch-with-stat master 1 + $ git log --patch-with-stat main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--patch-with-stat_master_--_dir_ t/t4013/diff.log_--patch-with-stat_main_--_dir_
··· 1 - $ git log --patch-with-stat master -- dir/ 1 + $ git log --patch-with-stat main -- dir/ 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_master t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_main
··· 1 - $ git log --root --cc --patch-with-stat --summary master 1 + $ git whatchanged --root --cc --patch-with-stat --summary main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--root_--patch-with-stat_--summary_master t/t4013/diff.log_--root_--patch-with-stat_--summary_main
··· 1 - $ git log --root --patch-with-stat --summary master 1 + $ git log --root --patch-with-stat --summary main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--root_--patch-with-stat_master t/t4013/diff.log_--root_--patch-with-stat_main
··· 1 - $ git log --root --patch-with-stat master 1 + $ git log --root --patch-with-stat main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_master t/t4013/diff.log_--root_-c_--patch-with-stat_--summary_main
··· 1 - $ git log --root -c --patch-with-stat --summary master 1 + $ git log --root -c --patch-with-stat --summary main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--root_-p_master t/t4013/diff.log_--root_-p_main
··· 1 - $ git log --root -p master 1 + $ git log --root -p main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_--root_master t/t4013/diff.log_--root_main
··· 1 - $ git log --root master 1 + $ git log --root main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_-GF_-p_--pickaxe-all_master t/t4013/diff.log_-GF_-p_--pickaxe-all_main
··· 1 - $ git log -GF -p --pickaxe-all master 1 + $ git log -GF -p --pickaxe-all main 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
+1 -1
t/t4013/diff.log_-GF_-p_master t/t4013/diff.log_-SF_-p_main
··· 1 - $ git log -GF -p master 1 + $ git log -SF -p main 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
+1 -1
t/t4013/diff.log_-GF_master t/t4013/diff.log_-S_F_main
··· 1 - $ git log -GF master 1 + $ git log -S F main 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
+1 -1
t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_master t/t4013/diff.log_-IA_-IB_-I1_-I2_-p_main
··· 1 - $ git log -IA -IB -I1 -I2 -p master 1 + $ git log -IA -IB -I1 -I2 -p main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_-SF_-p_master t/t4013/diff.log_-GF_-p_main
··· 1 - $ git log -SF -p master 1 + $ git log -GF -p main 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
+2
t/t4013/diff.log_-SF_main_--max-count=0
··· 1 + $ git log -SF main --max-count=0 2 + $
+1 -1
t/t4013/diff.log_-SF_master t/t4013/diff.log_-SF_main
··· 1 - $ git log -SF master 1 + $ git log -SF main 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
-2
t/t4013/diff.log_-SF_master_--max-count=0
··· 1 - $ git log -SF master --max-count=0 2 - $
+1 -1
t/t4013/diff.log_-SF_master_--max-count=1 t/t4013/diff.log_-SF_main_--max-count=2
··· 1 - $ git log -SF master --max-count=1 1 + $ git log -SF main --max-count=2 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
+1 -1
t/t4013/diff.log_-SF_master_--max-count=2 t/t4013/diff.log_-SF_main_--max-count=1
··· 1 - $ git log -SF master --max-count=2 1 + $ git log -SF main --max-count=1 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
+1 -1
t/t4013/diff.log_-S_F_master t/t4013/diff.log_-GF_main
··· 1 - $ git log -S F master 1 + $ git log -GF main 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
+1 -1
t/t4013/diff.log_-c_-m_-p_master t/t4013/diff.log_--cc_-m_-p_main
··· 1 - $ git log -c -m -p master 1 + $ git log --cc -m -p main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_-m_--raw_master t/t4013/diff.log_-m_--raw_main
··· 1 - $ git log -m --raw master 1 + $ git log -m --raw main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_-m_--stat_master t/t4013/diff.log_-m_--stat_main
··· 1 - $ git log -m --stat master 1 + $ git log -m --stat main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_-m_-p_--first-parent_master t/t4013/diff.log_-m_-p_--first-parent_main
··· 1 - $ git log -m -p --first-parent master 1 + $ git log -m -p --first-parent main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_-m_-p_master t/t4013/diff.log_-m_-p_main
··· 1 - $ git log -m -p master 1 + $ git log -m -p main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_-p_--diff-merges=first-parent_master t/t4013/diff.log_-p_--diff-merges=first-parent_main
··· 1 - $ git log -p --diff-merges=first-parent master 1 + $ git log -p --diff-merges=first-parent main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_-p_--first-parent_master t/t4013/diff.log_-p_--first-parent_main
··· 1 - $ git log -p --first-parent master 1 + $ git log -p --first-parent main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_-p_master t/t4013/diff.log_-p_main
··· 1 - $ git log -p master 1 + $ git log -p main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.log_master t/t4013/diff.log_main
··· 1 - $ git log master 1 + $ git log main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.noellipses-diff-tree_-c_--abbrev_master t/t4013/diff.noellipses-diff-tree_-c_--abbrev_main
··· 1 - $ git diff-tree -c --abbrev master 1 + $ git diff-tree -c --abbrev main 2 2 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 ::100644 100644 100644 cead32e 7289e35 992913c MM dir/sub 4 4 ::100644 100644 100644 b414108 f4615da 10a8a9f MM file0
+1 -1
t/t4013/diff.noellipses-whatchanged_--root_master t/t4013/diff.noellipses-whatchanged_--root_main
··· 1 - $ git whatchanged --root master 1 + $ git whatchanged --root main 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+1 -1
t/t4013/diff.noellipses-whatchanged_-SF_master t/t4013/diff.noellipses-whatchanged_-SF_main
··· 1 - $ git whatchanged -SF master 1 + $ git whatchanged -SF main 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
+1 -1
t/t4013/diff.noellipses-whatchanged_master t/t4013/diff.noellipses-whatchanged_main
··· 1 - $ git whatchanged master 1 + $ git whatchanged main 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+1 -1
t/t4013/diff.show_--first-parent_master t/t4013/diff.show_--first-parent_main
··· 1 - $ git show --first-parent master 1 + $ git show --first-parent main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.show_-c_master t/t4013/diff.show_-c_main
··· 1 - $ git show -c master 1 + $ git show -c main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.show_-m_master t/t4013/diff.show_-m_main
··· 1 - $ git show -m master 1 + $ git show -m main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 (from 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0) 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.show_master t/t4013/diff.show_main
··· 1 - $ git show master 1 + $ git show main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.whatchanged_--patch-with-stat_--summary_master_--_dir_ t/t4013/diff.whatchanged_--patch-with-stat_--summary_main_--_dir_
··· 1 - $ git whatchanged --patch-with-stat --summary master -- dir/ 1 + $ git whatchanged --patch-with-stat --summary main -- dir/ 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+1 -1
t/t4013/diff.whatchanged_--patch-with-stat_master t/t4013/diff.whatchanged_--patch-with-stat_main
··· 1 - $ git whatchanged --patch-with-stat master 1 + $ git whatchanged --patch-with-stat main 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+1 -1
t/t4013/diff.whatchanged_--patch-with-stat_master_--_dir_ t/t4013/diff.whatchanged_--patch-with-stat_main_--_dir_
··· 1 - $ git whatchanged --patch-with-stat master -- dir/ 1 + $ git whatchanged --patch-with-stat main -- dir/ 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+1 -1
t/t4013/diff.whatchanged_--root_--cc_--patch-with-stat_--summary_master t/t4013/diff.log_--root_--cc_--patch-with-stat_--summary_main
··· 1 - $ git whatchanged --root --cc --patch-with-stat --summary master 1 + $ git log --root --cc --patch-with-stat --summary main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_master t/t4013/diff.whatchanged_--root_--patch-with-stat_--summary_main
··· 1 - $ git whatchanged --root --patch-with-stat --summary master 1 + $ git whatchanged --root --patch-with-stat --summary main 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+1 -1
t/t4013/diff.whatchanged_--root_--patch-with-stat_master t/t4013/diff.whatchanged_--root_--patch-with-stat_main
··· 1 - $ git whatchanged --root --patch-with-stat master 1 + $ git whatchanged --root --patch-with-stat main 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+1 -1
t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_master t/t4013/diff.whatchanged_--root_-c_--patch-with-stat_--summary_main
··· 1 - $ git whatchanged --root -c --patch-with-stat --summary master 1 + $ git whatchanged --root -c --patch-with-stat --summary main 2 2 commit 59d314ad6f356dd08601a4cd5e530381da3e3c64 3 3 Merge: 9a6d494 c7a2ab9 4 4 Author: A U Thor <author@example.com>
+1 -1
t/t4013/diff.whatchanged_--root_-p_master t/t4013/diff.whatchanged_--root_-p_main
··· 1 - $ git whatchanged --root -p master 1 + $ git whatchanged --root -p main 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+1 -1
t/t4013/diff.whatchanged_--root_master t/t4013/diff.whatchanged_--root_main
··· 1 - $ git whatchanged --root master 1 + $ git whatchanged --root main 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+1 -1
t/t4013/diff.whatchanged_-SF_-p_master t/t4013/diff.whatchanged_-SF_-p_main
··· 1 - $ git whatchanged -SF -p master 1 + $ git whatchanged -SF -p main 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
+1 -1
t/t4013/diff.whatchanged_-SF_master t/t4013/diff.whatchanged_-SF_main
··· 1 - $ git whatchanged -SF master 1 + $ git whatchanged -SF main 2 2 commit 9a6d4949b6b76956d9d5e26f2791ec2ceff5fdc0 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:02:00 2006 +0000
+1 -1
t/t4013/diff.whatchanged_-p_master t/t4013/diff.whatchanged_-p_main
··· 1 - $ git whatchanged -p master 1 + $ git whatchanged -p main 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+1 -1
t/t4013/diff.whatchanged_master t/t4013/diff.whatchanged_main
··· 1 - $ git whatchanged master 1 + $ git whatchanged main 2 2 commit c7a2ab9e8eac7b117442a607d5a9b3950ae34d5a 3 3 Author: A U Thor <author@example.com> 4 4 Date: Mon Jun 26 00:03:00 2006 +0000
+3 -3
t/t9902-completion.sh
··· 11 11 # untraceable with such ancient Bash versions. 12 12 test_untraceable=UnfortunatelyYes 13 13 14 - # Override environment and always use master for the default initial branch 14 + # Override environment and always use main for the default initial branch 15 15 # name for these tests, so that rev completion candidates are as expected. 16 - GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master 16 + GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main 17 17 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 18 18 19 19 . ./lib-bash.sh ··· 1453 1453 HEAD Z 1454 1454 final Z 1455 1455 initial Z 1456 - master Z 1456 + main Z 1457 1457 EOF 1458 1458 ) 1459 1459 '
+7 -4
t/test-lib.sh
··· 127 127 export GIT_TEST_DISALLOW_ABBREVIATED_OPTIONS 128 128 fi 129 129 130 - # Explicitly set the default branch name for testing, to avoid the 131 - # transitory "git init" warning under --verbose. 132 - : ${GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME:=master} 133 - export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 130 + if test -z "$WITH_BREAKING_CHANGES" 131 + then 132 + # Explicitly set the default branch name for testing, to avoid the 133 + # transitory "git init" warning under --verbose. 134 + : ${GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME:=master} 135 + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 136 + fi 134 137 135 138 ################################################################ 136 139 # It appears that people try to run tests without building...