{"thread":{"id":"58073","subject":"[PATCH] git-rebase.txt: use back-ticks consistently","startedAt":"2022-06-27T21:21:10Z","lastAt":"2022-06-30T17:25:39Z","messageCount":19,"participants":["Derrick Stolee via GitGitGadget","Phillip Wood","Ævar Arnfjörð Bjarmason","Derrick Stolee","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"457965","messageId":"pull.1270.git.1656364861242.gitgitgadget@gmail.com","threadId":"58073","inReplyTo":null,"subject":"[PATCH] git-rebase.txt: use back-ticks consistently","fromName":"Derrick Stolee via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2022-06-27T21:21:01Z","receivedAt":"2022-06-27T21:21:10Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"From: Derrick Stolee <derrickstolee@github.com>\n\nWhile inspecting the 'git rebase' documentation, I noticed that it is\ninconsistent with how it uses back-ticks (or other punctuation) for\nidentifying Git commands, command-line arguments, or values for those\narguments.\n\nSometimes, an argument (like '--interactive') would appear without any\npunctuation, causing the argument to not have any special formatting.\nOther times, arguments or 'git rebase' itself would have single-quotes\ngiving a bold look (in the HTML documentation at least).\n\nBy consistently using back-ticks, these types of strings appear in a\nmonospace font with special highlighting to appear more clearly as text\nthat exists in a command-line invocation of a Git command.\n\nThis rather-large diff is the result of scanning git-rebase.txt and\nadding back-ticks as appropriate. Some are adding back-ticks where there\nwas no punctuation. Others are replacing single quotes.\n\nThere are also a few minor cleanups in the process, such as one place\nthat did not use tabs for the first paragraph in a bulletted list.\nAnother case still referred to the dashed form, but it was the only use\nin the file except for the heading and NAME section.\n\nSigned-off-by: Derrick Stolee <derrickstolee@github.com>\n---\n    git-rebase.txt: use back-ticks consistently\n    \n    While I noticed this inconsistency when looking at git rebase as part of\n    the git rebase --update-refs work, I didn't know the best way to update\n    the document from start to finish.\n    \n    This giant update is probably not the best way to present the change.\n    \n    I can see splitting it up in a few ways, but I wanted to check to first\n    see if that was necessary. If it is, then here are the strategies I\n    considered:\n    \n     1. Focus on type of update. This would mean a change for adding\n        back-ticks on all --<option> text, adding back-ticks on all \"git\n        rebase\" instances, adding back-ticks on things like <upstream>, and\n        doing other types of changes like whitespace updates or \"git-rebase\"\n        to \"git rebase\".\n    \n     2. Focus on the section of the document. This would limit the diff by\n        the section size, such as OPTIONS or the discussion on the backends.\n    \n     3. Focus on the edits that most-recently edited these lines. Doing some\n        scripting, I was able to construct this date-sorted list of previous\n        edits (by diffing the git blame output before and after this\n        change). The most-recent changes before this are:\n    \n    2005-08-26: 52a22d1e726 ([PATCH] Subject: [PATCH] Add some documentation., 2005-08-26)\n    2006-02-21: 69a60af5d0a (git-rebase: Clarify usage statement and copy it into the actual documentation., 2006-02-21)\n    2006-04-26: 031321c654d (Add --continue and --abort options to git-rebase., 2006-04-26)\n    2006-06-21: 58634dbff82 (rebase: Allow merge strategies to be used when rebasing, 2006-06-21)\n    2007-02-05: ea81fcc5762 (Show an example of deleting commits with git-rebase., 2007-02-05)\n    2007-02-08: 67dad687ad1 (add -C[NUM] to git-am, 2007-02-08)\n    2007-02-17: 5ca2db53763 (Attempt to improve git-rebase lead-in description., 2007-02-17)\n    2007-06-25: 1b1dce4bae7 (Teach rebase an interactive mode, 2007-06-25)\n    2007-06-25: f09c9b8c5ff (Teach rebase -i about --preserve-merges, 2007-06-25)\n    2007-08-31: f0fd889d7ff (rebase -i: mention the option to split commits in the man page, 2007-08-31)\n    2007-10-15: ff9054627c4 (git-rebase: document suppression of duplicate commits, 2007-10-15)\n    2008-03-10: 702088afc68 (update 'git rebase' documentation, 2008-03-10)\n    2008-07-03: 467c0197fd0 (Documentation: more \"git-\" versus \"git \" changes, 2008-07-03)\n    2008-07-08: 9869099bee3 (Documentation: mention ORIG_HEAD in am, merge, and rebase, 2008-07-08)\n    2008-07-21: 51ef1daa4a0 (Rename .git/rebase to .git/rebase-apply, 2008-07-21)\n    2008-09-13: 90d1c08efcf (Documentation: new upstream rebase recovery section in git-rebase, 2008-09-13)\n    2009-01-02: be496621012 (rebase: update documentation for --root, 2009-01-02)\n    2009-03-01: a9c3821ca2f (git-rebase: Add --stat and --no-stat for producing diffstat on rebase, 2009-03-01)\n    2009-06-16: 0e987a12fc1 (am, rebase: teach quiet option, 2009-06-16)\n    2009-10-07: 6741aa6c399 (Teach 'rebase -i' the command \"reword\", 2009-10-07)\n    2009-11-15: 31ddd1ee0fd (rebase docs: clarify --merge and --strategy, 2009-11-15)\n    2009-12-07: 0205e72f088 (Add a command \"fixup\" to rebase --interactive, 2009-12-07)\n    2009-12-08: f59baa502f4 (rebase -i --autosquash: auto-squash commits, 2009-12-08)\n    2010-01-10: 0b444cdb19b (Documentation: spell 'git cmd' without dash throughout, 2010-01-10)\n    2010-03-24: b499549401c (Teach rebase the --no-ff option., 2010-03-24)\n    2010-07-14: dd1e5b313a0 (add configuration variable for --autosquash option of interactive rebase, 2010-07-14)\n    2010-11-22: 7baf9c4b707 (rebase: support --verify, 2010-11-22)\n    2011-02-09: 15a147e6189 (rebase: use @{upstream} if no upstream specified, 2011-02-09)\n    2011-07-13: 5960bc9d63c (rebase: clarify \"restore the original branch\", 2011-07-13)\n    2012-03-23: d3f2475c01d (documentation: fix alphabetic ordered list for git-rebase man page, 2012-03-23)\n    2012-06-12: c214538416e (rebase -i: teach \"--exec <cmd>\", 2012-06-12)\n    2012-06-26: df5df20c130 (rebase -i: support --root without --onto, 2012-06-26)\n    2012-07-15: edfbbf7eead (doc: A few minor copy edits., 2012-07-15)\n    2013-05-12: 587947750bd (rebase: implement --[no-]autostash and rebase.autostash, 2013-05-12)\n    2014-09-18: f51a48ec3aa (Documentation/git-rebase.txt: document when --fork-point is auto-enabled, 2014-09-18)\n    2015-03-11: da0005b8853 (*config.txt: stick to camelCase naming convention, 2015-03-11)\n    2015-06-29: c9266d58948 (git-rebase -i: add command \"drop\" to remove a commit, 2015-06-29)\n    2015-09-10: 82e0668cde0 (Documentation/git-rebase: fix --no-autostash formatting, 2015-09-10)\n    2016-06-28: bcf9626a71a (doc: typeset long command-line options as literal, 2016-06-28)\n    2016-11-12: 9512177b682 (rebase: add --quit to cleanup rebase, leave everything else untouched, 2016-11-12)\n    2017-06-17: e01db917d8e (stash: update documentation to use 'stash entry', 2017-06-17)\n    2018-06-25: 5dacd4abdd3 (git-rebase.txt: document incompatible options, 2018-06-25)\n    2018-06-27: 0661e49aeb8 (git-rebase.txt: document behavioral differences between modes, 2018-06-27)\n    2018-10-12: 71f82465b1c (rebase -i: introduce the 'break' command, 2018-10-12)\n    2018-12-03: 6fcbad87d47 (rebase docs: fix incorrect format of the section Behavioral Differences, 2018-12-03)\n    2018-12-10: d421afa0c66 (rebase: introduce --reschedule-failed-exec, 2018-12-10)\n    2018-12-11: 68aa495b590 (rebase: implement --merge via the interactive machinery, 2018-12-11)\n    2019-08-27: 414d924beb4 (rebase: teach rebase --keep-base, 2019-08-27)\n    2020-02-15: 10cdb9f38ad (rebase: rename the two primary rebase backends, 2020-02-15)\n    2020-02-15: 2ac0d6273fa (rebase: change the default backend from \"am\" to \"merge\", 2020-02-15)\n    2020-02-15: be50c938dfc (git-rebase.txt: add more details about behavioral differences of backends, 2020-02-15)\n    2020-02-15: d48e5e21da9 (rebase (interactive-backend): make --keep-empty the default, 2020-02-15)\n    2020-02-15: e98c4269c86 (rebase (interactive-backend): fix handling of commits that become empty, 2020-02-15)\n    2020-03-11: 120b1eb7314 (git-rebase.txt: highlight backend differences with commit rewording, 2020-03-11)\n    2020-03-28: 344420bf0fb (git-rebase.txt: fix typo, 2020-03-28)\n    2020-04-05: f7139e7cc2d (git-rebase.txt: add another hook to the hooks section, and explain more, 2020-04-05)\n    2020-04-11: 0fcb4f6b62c (rebase --merge: optionally skip upstreamed commits, 2020-04-11)\n    2020-04-11: b9cbd2958f2 (rebase: reinstate --no-keep-empty, 2020-04-11)\n    2020-04-27: a35413c3785 (rebase: display an error if --root and --fork-point are both provided, 2020-04-27)\n    2020-05-05: c5e786abe32 (Doc: reference the \"stash list\" in autostash docs, 2020-05-05)\n    2020-07-13: ef484add9f6 (rebase -i: add --ignore-whitespace flag, 2020-07-13)\n    2021-01-29: 2c0aa2ce2ef (doc/git-rebase: add documentation for fixup [-C|-c] options, 2021-01-29)\n    2021-02-10: fa153c1cd7a (doc/rebase -i: fix typo in the documentation of 'fixup' command, 2021-02-10)\n    2021-03-15: 00ea64ed7a0 (doc/git-commit: add documentation for fixup=[amend|reword] options, 2021-03-15)\n    2021-04-09: e5b32bffd1d (rebase: don't override --no-reschedule-failed-exec with config, 2021-04-09)\n    2021-08-04: f5a3c5e6377 (Update docs for change of default merge backend, 2021-08-04)\n    2021-12-01: ddfc44a898a (update documentation for new zdiff3 conflictStyle, 2021-12-01)\n    2022-04-20: 9e5ebe9668a (rebase: use correct base for --keep-base when a branch is given, 2022-04-20)\n    \n    \n    Of course, maybe it's not worth splitting it up at all. I'm open to\n    whatever reviewers recommend.\n    \n    I look forward to feedback on how to do this better (if it is indeed a\n    good idea to do in the first place).\n    \n    Thanks, -Stolee\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-1270%2Fderrickstolee%2Frebase-docs-v1\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1270/derrickstolee/rebase-docs-v1\nPull-Request: https://github.com/gitgitgadget/git/pull/1270\n\n Documentation/git-rebase.txt | 224 +++++++++++++++++------------------\n 1 file changed, 112 insertions(+), 112 deletions(-)\n\ndiff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt\nindex 262fb01aec0..2be0f295632 100644\n--- a/Documentation/git-rebase.txt\n+++ b/Documentation/git-rebase.txt\n@@ -16,40 +16,40 @@ SYNOPSIS\n \n DESCRIPTION\n -----------\n-If <branch> is specified, 'git rebase' will perform an automatic\n+If `<branch>` is specified, `git rebase` will perform an automatic\n `git switch <branch>` before doing anything else.  Otherwise\n it remains on the current branch.\n \n-If <upstream> is not specified, the upstream configured in\n-branch.<name>.remote and branch.<name>.merge options will be used (see\n+If `<upstream>` is not specified, the upstream configured in\n+`branch.<name>.remote` and `branch.<name>.merge` options will be used (see\n linkgit:git-config[1] for details) and the `--fork-point` option is\n assumed.  If you are currently not on any branch or if the current\n branch does not have a configured upstream, the rebase will abort.\n \n All changes made by commits in the current branch but that are not\n-in <upstream> are saved to a temporary area.  This is the same set\n+in `<upstream>` are saved to a temporary area.  This is the same set\n of commits that would be shown by `git log <upstream>..HEAD`; or by\n `git log 'fork_point'..HEAD`, if `--fork-point` is active (see the\n description on `--fork-point` below); or by `git log HEAD`, if the\n `--root` option is specified.\n \n-The current branch is reset to <upstream>, or <newbase> if the\n---onto option was supplied.  This has the exact same effect as\n-`git reset --hard <upstream>` (or <newbase>).  ORIG_HEAD is set\n+The current branch is reset to `<upstream>`, or `<newbase>` if the\n+`--onto` option was supplied.  This has the exact same effect as\n+`git reset --hard <upstream>` (or `<newbase>`). `ORIG_HEAD` is set\n to point at the tip of the branch before the reset.\n \n The commits that were previously saved into the temporary area are\n then reapplied to the current branch, one by one, in order. Note that\n-any commits in HEAD which introduce the same textual changes as a commit\n-in HEAD..<upstream> are omitted (i.e., a patch already accepted upstream\n+any commits in `HEAD` which introduce the same textual changes as a commit\n+in `HEAD..<upstream>` are omitted (i.e., a patch already accepted upstream\n with a different commit message or timestamp will be skipped).\n \n It is possible that a merge failure will prevent this process from being\n completely automatic.  You will have to resolve any such merge failure\n and run `git rebase --continue`.  Another option is to bypass the commit\n that caused the merge failure with `git rebase --skip`.  To check out the\n-original <branch> and remove the .git/rebase-apply working files, use the\n-command `git rebase --abort` instead.\n+original `<branch>` and remove the `.git/rebase-apply` working files, use\n+the command `git rebase --abort` instead.\n \n Assume the following history exists and the current branch is \"topic\":\n \n@@ -176,11 +176,11 @@ would result in the removal of commits F and G:\n ------------\n \n This is useful if F and G were flawed in some way, or should not be\n-part of topicA.  Note that the argument to --onto and the <upstream>\n+part of topicA.  Note that the argument to `--onto` and the `<upstream>`\n parameter can be any valid commit-ish.\n \n-In case of conflict, 'git rebase' will stop at the first problematic commit\n-and leave conflict markers in the tree.  You can use 'git diff' to locate\n+In case of conflict, `git rebase` will stop at the first problematic commit\n+and leave conflict markers in the tree.  You can use `git diff` to locate\n the markers (<<<<<<) and make edits to resolve the conflict.  For each\n file you edit, you need to tell Git that the conflict has been resolved,\n typically this would be done with\n@@ -205,8 +205,8 @@ OPTIONS\n -------\n --onto <newbase>::\n \tStarting point at which to create the new commits. If the\n-\t--onto option is not specified, the starting point is\n-\t<upstream>.  May be any valid commit, and not just an\n+\t`--onto` option is not specified, the starting point is\n+\t`<upstream>`.  May be any valid commit, and not just an\n \texisting branch name.\n +\n As a special case, you may use \"A\\...B\" as a shortcut for the\n@@ -215,19 +215,19 @@ leave out at most one of A and B, in which case it defaults to HEAD.\n \n --keep-base::\n \tSet the starting point at which to create the new commits to the\n-\tmerge base of <upstream> and <branch>. Running\n-\t'git rebase --keep-base <upstream> <branch>' is equivalent to\n+\tmerge base of `<upstream>` and `<branch>`. Running\n+\t`git rebase --keep-base <upstream> <branch>` is equivalent to\n \trunning\n-\t'git rebase --onto <upstream>...<branch> <upstream> <branch>'.\n+\t`git rebase --onto <upstream>...<branch> <upstream> <branch>`.\n +\n This option is useful in the case where one is developing a feature on\n top of an upstream branch. While the feature is being worked on, the\n upstream branch may advance and it may not be the best idea to keep\n rebasing on top of the upstream but to keep the base commit as-is.\n +\n-Although both this option and --fork-point find the merge base between\n-<upstream> and <branch>, this option uses the merge base as the _starting\n-point_ on which new commits will be created, whereas --fork-point uses\n+Although both this option and `--fork-point` find the merge base between\n+`<upstream>` and `<branch>`, this option uses the merge base as the _starting\n+point_ on which new commits will be created, whereas `--fork-point` uses\n the merge base to determine the _set of commits_ which will be rebased.\n +\n See also INCOMPATIBLE OPTIONS below.\n@@ -238,23 +238,23 @@ See also INCOMPATIBLE OPTIONS below.\n \tupstream for the current branch.\n \n <branch>::\n-\tWorking branch; defaults to HEAD.\n+\tWorking branch; defaults to `HEAD`.\n \n --continue::\n \tRestart the rebasing process after having resolved a merge conflict.\n \n --abort::\n \tAbort the rebase operation and reset HEAD to the original\n-\tbranch. If <branch> was provided when the rebase operation was\n-\tstarted, then HEAD will be reset to <branch>. Otherwise HEAD\n+\tbranch. If `<branch>` was provided when the rebase operation was\n+\tstarted, then `HEAD` will be reset to `<branch>`. Otherwise `HEAD`\n \twill be reset to where it was when the rebase operation was\n \tstarted.\n \n --quit::\n-\tAbort the rebase operation but HEAD is not reset back to the\n+\tAbort the rebase operation but `HEAD` is not reset back to the\n \toriginal branch. The index and working tree are also left\n \tunchanged as a result. If a temporary stash entry was created\n-\tusing --autostash, it will be saved to the stash list.\n+\tusing `--autostash`, it will be saved to the stash list.\n \n --apply::\n \tUse applying strategies to rebase (calling `git-am`\n@@ -269,16 +269,16 @@ See also INCOMPATIBLE OPTIONS below.\n \tempty after rebasing (because they contain a subset of already\n \tupstream changes).  With drop (the default), commits that\n \tbecome empty are dropped.  With keep, such commits are kept.\n-\tWith ask (implied by --interactive), the rebase will halt when\n+\tWith ask (implied by `--interactive`), the rebase will halt when\n \tan empty commit is applied allowing you to choose whether to\n \tdrop it, edit files more, or just commit the empty changes.\n-\tOther options, like --exec, will use the default of drop unless\n-\t-i/--interactive is explicitly specified.\n+\tOther options, like `--exec`, will use the default of drop unless\n+\t`-i`/`--interactive` is explicitly specified.\n +\n-Note that commits which start empty are kept (unless --no-keep-empty\n+Note that commits which start empty are kept (unless `--no-keep-empty`\n is specified), and commits which are clean cherry-picks (as determined\n by `git log --cherry-mark ...`) are detected and dropped as a\n-preliminary step (unless --reapply-cherry-picks is passed).\n+preliminary step (unless `--reapply-cherry-picks` is passed).\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -287,7 +287,7 @@ See also INCOMPATIBLE OPTIONS below.\n \tDo not keep commits that start empty before the rebase\n \t(i.e. that do not change anything from its parent) in the\n \tresult.  The default is to keep commits which start empty,\n-\tsince creating such commits requires passing the --allow-empty\n+\tsince creating such commits requires passing the `--allow-empty`\n \toverride flag to `git commit`, signifying that a user is very\n \tintentionally creating such a commit and thus wants to keep\n \tit.\n@@ -299,7 +299,7 @@ flag exists as a convenient shortcut, such as for cases where external\n tools generate many empty commits and you want them all removed.\n +\n For commits which do not start empty but become empty after rebasing,\n-see the --empty flag.\n+see the `--empty` flag.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -348,10 +348,10 @@ See also INCOMPATIBLE OPTIONS below.\n \tUsing merging strategies to rebase (default).\n +\n Note that a rebase merge works by replaying each commit from the working\n-branch on top of the <upstream> branch.  Because of this, when a merge\n+branch on top of the `<upstream>` branch.  Because of this, when a merge\n conflict happens, the side reported as 'ours' is the so-far rebased\n-series, starting with <upstream>, and 'theirs' is the working branch.  In\n-other words, the sides are swapped.\n+series, starting with `<upstream>`, and 'theirs' is the working branch.\n+In other words, the sides are swapped.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -360,9 +360,9 @@ See also INCOMPATIBLE OPTIONS below.\n \tUse the given merge strategy, instead of the default `ort`.\n \tThis implies `--merge`.\n +\n-Because 'git rebase' replays each commit from the working branch\n-on top of the <upstream> branch using the given strategy, using\n-the 'ours' strategy simply empties all patches from the <branch>,\n+Because `git rebase` replays each commit from the working branch\n+on top of the `<upstream>` branch using the given strategy, using\n+the `ours` strategy simply empties all patches from the `<branch>`,\n which makes little sense.\n +\n See also INCOMPATIBLE OPTIONS below.\n@@ -371,8 +371,8 @@ See also INCOMPATIBLE OPTIONS below.\n --strategy-option=<strategy-option>::\n \tPass the <strategy-option> through to the merge strategy.\n \tThis implies `--merge` and, if no strategy has been\n-\tspecified, `-s ort`.  Note the reversal of 'ours' and\n-\t'theirs' as noted above for the `-m` option.\n+\tspecified, `-s ort`.  Note the reversal of `ours` and\n+\t`theirs` as noted above for the `-m` option.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -392,11 +392,11 @@ See also INCOMPATIBLE OPTIONS below.\n \n -q::\n --quiet::\n-\tBe quiet. Implies --no-stat.\n+\tBe quiet. Implies `--no-stat`.\n \n -v::\n --verbose::\n-\tBe verbose. Implies --stat.\n+\tBe verbose. Implies `--stat`.\n \n --stat::\n \tShow a diffstat of what changed upstream since the last rebase. The\n@@ -411,13 +411,13 @@ See also INCOMPATIBLE OPTIONS below.\n \n --verify::\n \tAllows the pre-rebase hook to run, which is the default.  This option can\n-\tbe used to override --no-verify.  See also linkgit:githooks[5].\n+\tbe used to override `--no-verify`.  See also linkgit:githooks[5].\n \n -C<n>::\n-\tEnsure at least <n> lines of surrounding context match before\n+\tEnsure at least `<n>` lines of surrounding context match before\n \tand after each change.  When fewer lines of surrounding\n \tcontext exist they all must match.  By default no context is\n-\tever ignored.  Implies --apply.\n+\tever ignored.  Implies `--apply`.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -436,21 +436,21 @@ details).\n \n --fork-point::\n --no-fork-point::\n-\tUse reflog to find a better common ancestor between <upstream>\n-\tand <branch> when calculating which commits have been\n-\tintroduced by <branch>.\n+\tUse reflog to find a better common ancestor between `<upstream>`\n+\tand `<branch>` when calculating which commits have been\n+\tintroduced by `<branch>`.\n +\n-When --fork-point is active, 'fork_point' will be used instead of\n-<upstream> to calculate the set of commits to rebase, where\n+When `--fork-point` is active, 'fork_point' will be used instead of\n+`<upstream>` to calculate the set of commits to rebase, where\n 'fork_point' is the result of `git merge-base --fork-point <upstream>\n <branch>` command (see linkgit:git-merge-base[1]).  If 'fork_point'\n-ends up being empty, the <upstream> will be used as a fallback.\n+ends up being empty, the `<upstream>` will be used as a fallback.\n +\n-If <upstream> is given on the command line, then the default is\n+If `<upstream>` is given on the command line, then the default is\n `--no-fork-point`, otherwise the default is `--fork-point`. See also\n `rebase.forkpoint` in linkgit:git-config[1].\n +\n-If your branch was based on <upstream> but <upstream> was rewound and\n+If your branch was based on `<upstream>` but `<upstream>` was rewound and\n your branch contains commits which were dropped, this option can be used\n with `--keep-base` in order to drop those commits from your branch.\n +\n@@ -458,24 +458,24 @@ See also INCOMPATIBLE OPTIONS below.\n \n --ignore-whitespace::\n \tIgnore whitespace differences when trying to reconcile\n-differences. Currently, each backend implements an approximation of\n-this behavior:\n+\tdifferences. Currently, each backend implements an approximation of\n+\tthis behavior:\n +\n-apply backend: When applying a patch, ignore changes in whitespace in\n+'apply backend:' When applying a patch, ignore changes in whitespace in\n context lines. Unfortunately, this means that if the \"old\" lines being\n replaced by the patch differ only in whitespace from the existing\n file, you will get a merge conflict instead of a successful patch\n application.\n +\n-merge backend: Treat lines with only whitespace changes as unchanged\n+'merge backend:' Treat lines with only whitespace changes as unchanged\n when merging. Unfortunately, this means that any patch hunks that were\n intended to modify whitespace and nothing else will be dropped, even\n if the other side had no changes that conflicted.\n \n --whitespace=<option>::\n-\tThis flag is passed to the 'git apply' program\n+\tThis flag is passed to the `git apply` program\n \t(see linkgit:git-apply[1]) that applies the patch.\n-\tImplies --apply.\n+\tImplies `--apply`.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -536,8 +536,8 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n \n -x <cmd>::\n --exec <cmd>::\n-\tAppend \"exec <cmd>\" after each line creating a commit in the\n-\tfinal history. <cmd> will be interpreted as one or more shell\n+\tAppend `exec <cmd>` after each line creating a commit in the\n+\tfinal history. `<cmd>` will be interpreted as one or more shell\n \tcommands. Any command that fails will interrupt the rebase,\n \twith exit code 1.\n +\n@@ -550,7 +550,7 @@ or by giving more than one `--exec`:\n +\n \tgit rebase -i --exec \"cmd1\" --exec \"cmd2\" --exec ...\n +\n-If `--autosquash` is used, \"exec\" lines will not be appended for\n+If `--autosquash` is used, `exec` lines will not be appended for\n the intermediate commits, and will only appear at the end of each\n squash/fixup series.\n +\n@@ -560,11 +560,12 @@ without an explicit `--interactive`.\n See also INCOMPATIBLE OPTIONS below.\n \n --root::\n-\tRebase all commits reachable from <branch>, instead of\n-\tlimiting them with an <upstream>.  This allows you to rebase\n-\tthe root commit(s) on a branch.  When used with --onto, it\n-\twill skip changes already contained in <newbase> (instead of\n-\t<upstream>) whereas without --onto it will operate on every change.\n+\tRebase all commits reachable from `<branch>`, instead of\n+\tlimiting them with an `<upstream>`.  This allows you to rebase\n+\tthe root commit(s) on a branch.  When used with `--onto`, it\n+\twill skip changes already contained in `<newbase>` (instead of\n+\t`<upstream>`) whereas without `--onto` it will operate on every\n+\tchange.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -643,9 +644,9 @@ In addition, the following pairs of options are incompatible:\n BEHAVIORAL DIFFERENCES\n -----------------------\n \n-git rebase has two primary backends: apply and merge.  (The apply\n-backend used to be known as the 'am' backend, but the name led to\n-confusion as it looks like a verb instead of a noun.  Also, the merge\n+`git rebase` has two primary backends: `apply` and `merge`.  (The `apply`\n+backend used to be known as the `am` backend, but the name led to\n+confusion as it looks like a verb instead of a noun.  Also, the `merge`\n backend used to be known as the interactive backend, but it is now\n used for non-interactive cases as well.  Both were renamed based on\n lower-level functionality that underpinned each.) There are some\n@@ -654,19 +655,19 @@ subtle differences in how these two backends behave:\n Empty commits\n ~~~~~~~~~~~~~\n \n-The apply backend unfortunately drops intentionally empty commits, i.e.\n+The `apply` backend unfortunately drops intentionally empty commits, i.e.\n commits that started empty, though these are rare in practice.  It\n also drops commits that become empty and has no option for controlling\n this behavior.\n \n-The merge backend keeps intentionally empty commits by default (though\n-with -i they are marked as empty in the todo list editor, or they can\n-be dropped automatically with --no-keep-empty).\n+The `merge` backend keeps intentionally empty commits by default (though\n+with `-i` they are marked as empty in the todo list editor, or they can\n+be dropped automatically with `--no-keep-empty`).\n \n Similar to the apply backend, by default the merge backend drops\n-commits that become empty unless -i/--interactive is specified (in\n+commits that become empty unless `-i`/`--interactive` is specified (in\n which case it stops and asks the user what to do).  The merge backend\n-also has an --empty={drop,keep,ask} option for changing the behavior\n+also has an `--empty={drop,keep,ask}` option for changing the behavior\n of handling commits that become empty.\n \n Directory rename detection\n@@ -674,20 +675,20 @@ Directory rename detection\n \n Due to the lack of accurate tree information (arising from\n constructing fake ancestors with the limited information available in\n-patches), directory rename detection is disabled in the apply backend.\n+patches), directory rename detection is disabled in the `apply` backend.\n Disabled directory rename detection means that if one side of history\n renames a directory and the other adds new files to the old directory,\n then the new files will be left behind in the old directory without\n any warning at the time of rebasing that you may want to move these\n files into the new directory.\n \n-Directory rename detection works with the merge backend to provide you\n+Directory rename detection works with the `merge` backend to provide you\n warnings in such cases.\n \n Context\n ~~~~~~~\n \n-The apply backend works by creating a sequence of patches (by calling\n+The `apply` backend works by creating a sequence of patches (by calling\n `format-patch` internally), and then applying the patches in sequence\n (calling `am` internally).  Patches are composed of multiple hunks,\n each with line numbers, a context region, and the actual changes.  The\n@@ -698,11 +699,11 @@ order to apply the changes to the right lines.  However, if multiple\n areas of the code have the same surrounding lines of context, the\n wrong one can be picked.  There are real-world cases where this has\n caused commits to be reapplied incorrectly with no conflicts reported.\n-Setting diff.context to a larger value may prevent such types of\n+Setting `diff.context` to a larger value may prevent such types of\n problems, but increases the chance of spurious conflicts (since it\n will require more lines of matching context to apply).\n \n-The merge backend works with a full copy of each relevant file,\n+The `merge` backend works with a full copy of each relevant file,\n insulating it from these types of problems.\n \n Labelling of conflicts markers\n@@ -710,30 +711,30 @@ Labelling of conflicts markers\n \n When there are content conflicts, the merge machinery tries to\n annotate each side's conflict markers with the commits where the\n-content came from.  Since the apply backend drops the original\n+content came from.  Since the `apply` backend drops the original\n information about the rebased commits and their parents (and instead\n generates new fake commits based off limited information in the\n generated patches), those commits cannot be identified; instead it has\n-to fall back to a commit summary.  Also, when merge.conflictStyle is\n-set to diff3 or zdiff3, the apply backend will use \"constructed merge\n+to fall back to a commit summary.  Also, when `merge.conflictStyle` is\n+set to `diff3` or `zdiff3`, the `apply` backend will use \"constructed merge\n base\" to label the content from the merge base, and thus provide no\n information about the merge base commit whatsoever.\n \n-The merge backend works with the full commits on both sides of history\n+The `merge` backend works with the full commits on both sides of history\n and thus has no such limitations.\n \n Hooks\n ~~~~~\n \n-The apply backend has not traditionally called the post-commit hook,\n-while the merge backend has.  Both have called the post-checkout hook,\n-though the merge backend has squelched its output.  Further, both\n+The `apply` backend has not traditionally called the post-commit hook,\n+while the `merge` backend has.  Both have called the post-checkout hook,\n+though the `merge` backend has squelched its output.  Further, both\n backends only call the post-checkout hook with the starting point\n commit of the rebase, not the intermediate commits nor the final\n commit.  In each case, the calling of these hooks was by accident of\n implementation rather than by design (both backends were originally\n implemented as shell scripts and happened to invoke other commands\n-like 'git checkout' or 'git commit' that would call the hooks).  Both\n+like `git checkout` or `git commit` that would call the hooks).  Both\n backends should have the same behavior, though it is not entirely\n clear which, if any, is correct.  We will likely make rebase stop\n calling either of these hooks in the future.\n@@ -741,10 +742,10 @@ calling either of these hooks in the future.\n Interruptability\n ~~~~~~~~~~~~~~~~\n \n-The apply backend has safety problems with an ill-timed interrupt; if\n+The `apply` backend has safety problems with an ill-timed interrupt; if\n the user presses Ctrl-C at the wrong time to try to abort the rebase,\n the rebase can enter a state where it cannot be aborted with a\n-subsequent `git rebase --abort`.  The merge backend does not appear to\n+subsequent `git rebase --abort`.  The `merge` backend does not appear to\n suffer from the same shortcoming.  (See\n https://lore.kernel.org/git/20200207132152.GC2868@szeder.dev/ for\n details.)\n@@ -756,8 +757,8 @@ When a conflict occurs while rebasing, rebase stops and asks the user\n to resolve.  Since the user may need to make notable changes while\n resolving conflicts, after conflicts are resolved and the user has run\n `git rebase --continue`, the rebase should open an editor and ask the\n-user to update the commit message.  The merge backend does this, while\n-the apply backend blindly applies the original commit message.\n+user to update the commit message.  The `merge` backend does this, while\n+the `apply` backend blindly applies the original commit message.\n \n Miscellaneous differences\n ~~~~~~~~~~~~~~~~~~~~~~~~~\n@@ -777,23 +778,23 @@ completeness:\n   them to stderr.\n \n * State directories: The two backends keep their state in different\n-  directories under .git/\n+  directories under `.git/`\n \n include::merge-strategies.txt[]\n \n NOTES\n -----\n \n-You should understand the implications of using 'git rebase' on a\n+You should understand the implications of using `git rebase` on a\n repository that you share.  See also RECOVERING FROM UPSTREAM REBASE\n below.\n \n-When the git-rebase command is run, it will first execute a \"pre-rebase\"\n+When the `git rebase` command is run, it will first execute a \"pre-rebase\"\n hook if one exists.  You can use this hook to do sanity checks and\n reject the rebase if it isn't appropriate.  Please see the template\n pre-rebase hook script for an example.\n \n-Upon completion, <branch> will be the current branch.\n+Upon completion, `<branch>` will be the current branch.\n \n INTERACTIVE MODE\n ----------------\n@@ -848,7 +849,7 @@ not look at them but at the commit names (\"deadbee\" and \"fa1afe1\" in this\n example), so do not delete or edit the names.\n \n By replacing the command \"pick\" with the command \"edit\", you can tell\n-'git rebase' to stop after applying that commit, so that you can edit\n+`git rebase` to stop after applying that commit, so that you can edit\n the files and/or the commit message, amend the commit, and continue\n rebasing.\n \n@@ -876,14 +877,13 @@ commit, the message from the final one is used.  You can also use\n \"fixup -C\" to get the same behavior as \"fixup -c\" except without opening\n an editor.\n \n-\n-'git rebase' will stop when \"pick\" has been replaced with \"edit\" or\n+`git rebase` will stop when \"pick\" has been replaced with \"edit\" or\n when a command fails due to merge errors. When you are done editing\n and/or resolving conflicts you can continue with `git rebase --continue`.\n \n For example, if you want to reorder the last 5 commits, such that what\n-was HEAD~4 becomes the new HEAD. To achieve that, you would call\n-'git rebase' like this:\n+was `HEAD~4` becomes the new `HEAD`. To achieve that, you would call\n+`git rebase` like this:\n \n ----------------------\n $ git rebase -i HEAD~5\n@@ -903,7 +903,7 @@ like this:\n ------------------\n \n Suppose you want to rebase the side branch starting at \"A\" to \"Q\". Make\n-sure that the current HEAD is \"B\", and call\n+sure that the current `HEAD` is \"B\", and call\n \n -----------------------------\n $ git rebase -i -r --onto Q O\n@@ -956,23 +956,23 @@ SPLITTING COMMITS\n -----------------\n \n In interactive mode, you can mark commits with the action \"edit\".  However,\n-this does not necessarily mean that 'git rebase' expects the result of this\n+this does not necessarily mean that `git rebase` expects the result of this\n edit to be exactly one commit.  Indeed, you can undo the commit, or you can\n add other commits.  This can be used to split a commit into two:\n \n - Start an interactive rebase with `git rebase -i <commit>^`, where\n-  <commit> is the commit you want to split.  In fact, any commit range\n+  `<commit>` is the commit you want to split.  In fact, any commit range\n   will do, as long as it contains that commit.\n \n - Mark the commit you want to split with the action \"edit\".\n \n - When it comes to editing that commit, execute `git reset HEAD^`.  The\n-  effect is that the HEAD is rewound by one, and the index follows suit.\n+  effect is that the `HEAD` is rewound by one, and the index follows suit.\n   However, the working tree stays the same.\n \n - Now add the changes to the index that you want to have in the first\n   commit.  You can use `git add` (possibly interactively) or\n-  'git gui' (or both) to do that.\n+  `git gui` (or both) to do that.\n \n - Commit the now-current index with whatever commit message is appropriate\n   now.\n@@ -983,7 +983,7 @@ add other commits.  This can be used to split a commit into two:\n \n If you are not absolutely sure that the intermediate revisions are\n consistent (they compile, pass the testsuite, etc.) you should use\n-'git stash' to stash away the not-yet-committed changes\n+`git stash` to stash away the not-yet-committed changes\n after each commit, test, and amend the commit if fixes are necessary.\n \n \n@@ -1087,12 +1087,12 @@ NOTE: While an \"easy case recovery\" sometimes appears to be successful\n       example, a commit that was removed via `git rebase\n       --interactive` will be **resurrected**!\n \n-The idea is to manually tell 'git rebase' \"where the old 'subsystem'\n+The idea is to manually tell `git rebase` \"where the old 'subsystem'\n ended and your 'topic' began\", that is, what the old merge base\n between them was.  You will have to find a way to name the last commit\n of the old 'subsystem', for example:\n \n-* With the 'subsystem' reflog: after 'git fetch', the old tip of\n+* With the 'subsystem' reflog: after `git fetch`, the old tip of\n   'subsystem' is at `subsystem@{1}`.  Subsequent fetches will\n   increase the number.  (See linkgit:git-reflog[1].)\n \n\nbase-commit: 9bef0b1e6ec371e786c2fba3edcc06ad040a536c\n-- \ngitgitgadget\n"},{"id":"458006","messageId":"a821c10b-3b55-f20a-dc4c-c5b0452d7819@gmail.com","threadId":"58073","inReplyTo":"pull.1270.git.1656364861242.gitgitgadget@gmail.com","subject":"Re: [PATCH] git-rebase.txt: use back-ticks consistently","fromName":"Phillip Wood","fromEmail":"phillip.wood123@gmail.com","sentAt":"2022-06-28T09:59:40Z","receivedAt":"2022-06-28T10:00:41Z","isPatch":true,"sender":{"key":"phillip.wood@dunelm.org.uk","avatar":null},"body":"Hi Stolee\n\nOn 27/06/2022 22:21, Derrick Stolee via GitGitGadget wrote:\n> From: Derrick Stolee <derrickstolee@github.com>\n> \n> While inspecting the 'git rebase' documentation, I noticed that it is\n> inconsistent with how it uses back-ticks (or other punctuation) for\n> identifying Git commands, command-line arguments, or values for those\n> arguments.\n> \n> Sometimes, an argument (like '--interactive') would appear without any\n> punctuation, causing the argument to not have any special formatting.\n> Other times, arguments or 'git rebase' itself would have single-quotes\n> giving a bold look (in the HTML documentation at least).\n> \n> By consistently using back-ticks, these types of strings appear in a\n> monospace font with special highlighting to appear more clearly as text\n> that exists in a command-line invocation of a Git command.\n> \n> This rather-large diff is the result of scanning git-rebase.txt and\n> adding back-ticks as appropriate. Some are adding back-ticks where there\n> was no punctuation. Others are replacing single quotes.\n> \n> There are also a few minor cleanups in the process, such as one place\n> that did not use tabs for the first paragraph in a bulletted list.\n> Another case still referred to the dashed form, but it was the only use\n> in the file except for the heading and NAME section.\n> \n> Signed-off-by: Derrick Stolee <derrickstolee@github.com>\n\nThanks for doing this, I think it's fine as a single patch as all the \nchanges are focussed making the quoting more consistent in a single file \n- splitting it up would be more work for you and would not really make \nit any easier for reviewers. I've left a few comments but it is a vast \nimprovement as is.\n\n> -The current branch is reset to <upstream>, or <newbase> if the\n> ---onto option was supplied.  This has the exact same effect as\n> -`git reset --hard <upstream>` (or <newbase>).  ORIG_HEAD is set\n> +The current branch is reset to `<upstream>`, or `<newbase>` if the\n> +`--onto` option was supplied.  This has the exact same effect as\n> +`git reset --hard <upstream>` (or `<newbase>`). `ORIG_HEAD` is set\n\nUnrelated to your change but I think we could lose the comma on this \nline if you do re-roll.\n\n>   Note that a rebase merge works by replaying each commit from the working\n> -branch on top of the <upstream> branch.  Because of this, when a merge\n> +branch on top of the `<upstream>` branch.  Because of this, when a merge\n>   conflict happens, the side reported as 'ours' is the so-far rebased\n> -series, starting with <upstream>, and 'theirs' is the working branch.  In\n> -other words, the sides are swapped.\n> +series, starting with `<upstream>`, and 'theirs' is the working branch.\n> +In other words, the sides are swapped.\n\nHere when talking about \"ours\" and \"theirs\" as the parents of a merge we \nuse single quotes ...\n\n> -Because 'git rebase' replays each commit from the working branch\n> -on top of the <upstream> branch using the given strategy, using\n> -the 'ours' strategy simply empties all patches from the <branch>,\n> +Because `git rebase` replays each commit from the working branch\n> +on top of the `<upstream>` branch using the given strategy, using\n> +the `ours` strategy simply empties all patches from the `<branch>`,\n\nHere \"ours\" is an option argument so I think the backquotes make sense\n\n> @@ -371,8 +371,8 @@ See also INCOMPATIBLE OPTIONS below.\n>   --strategy-option=<strategy-option>::\n>   \tPass the <strategy-option> through to the merge strategy.\n>   \tThis implies `--merge` and, if no strategy has been\n> -\tspecified, `-s ort`.  Note the reversal of 'ours' and\n> -\t'theirs' as noted above for the `-m` option.\n> +\tspecified, `-s ort`.  Note the reversal of `ours` and\n> +\t`theirs` as noted above for the `-m` option.\n\nHere \"ours\" and \"theirs\" are options so using backquotes is probably the \nright thing to do, but the text is referring to the section where they \nare not backquoted which confused me initially.\n\n>   --verify::\n>   \tAllows the pre-rebase hook to run, which is the default.  This option can\n\nLower down some hook names are in double quotes which is probably a good \nidea but not strictly related to your patch.\n\n> -apply backend: When applying a patch, ignore changes in whitespace in\n> +'apply backend:' When applying a patch, ignore changes in whitespace in\n\nI'm not sure if we want to say\n     'apply backend:'\nor\n     'apply' backend:\n>   \n>   -x <cmd>::\n>   --exec <cmd>::\n> -\tAppend \"exec <cmd>\" after each line creating a commit in the\n> -\tfinal history. <cmd> will be interpreted as one or more shell\n> +\tAppend `exec <cmd>` after each line creating a commit in the\n\nLower down when talking about other todo list commands we refer to them \nas \"pick\" (with double quotes) so I wonder if we should use \"exec \n`<cmd>`\" here as it is only <cmd> that comes from the command line argument\n\n> -git rebase has two primary backends: apply and merge.  (The apply\n> -backend used to be known as the 'am' backend, but the name led to\n> -confusion as it looks like a verb instead of a noun.  Also, the merge\n> +`git rebase` has two primary backends: `apply` and `merge`.  (The `apply`\n> +backend used to be known as the `am` backend, but the name led to\n> +confusion as it looks like a verb instead of a noun.  Also, the `merge`\n\nI think using single quotes for the backend names might make more sense \nas they are just names.\n\n> -When the git-rebase command is run, it will first execute a \"pre-rebase\"\n> +When the `git rebase` command is run, it will first execute a \"pre-rebase\"\n\nThis is the section I was referring to earlier when talking about \nquoting hook names.\n\nThanks for working on this, it is great to have more consistent markup \nin the documentation\n\nBest Wishes\n\nPhillip\n"},{"id":"458029","messageId":"220628.86k091f5fy.gmgdl@evledraar.gmail.com","threadId":"58073","inReplyTo":"pull.1270.git.1656364861242.gitgitgadget@gmail.com","subject":"Re: [PATCH] git-rebase.txt: use back-ticks consistently","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2022-06-28T10:22:18Z","receivedAt":"2022-06-28T10:28:12Z","isPatch":true,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"\nOn Mon, Jun 27 2022, Derrick Stolee via GitGitGadget wrote:\n\n> From: Derrick Stolee <derrickstolee@github.com>\n\nThis looks 99% good, but...\n\n> While inspecting the 'git rebase' documentation, I noticed that it is\n> inconsistent with how it uses back-ticks (or other punctuation) for\n> identifying Git commands, command-line arguments, or values for those\n> arguments.\n>\n> Sometimes, an argument (like '--interactive') would appear without any\n> punctuation, causing the argument to not have any special formatting.\n> Other times, arguments or 'git rebase' itself would have single-quotes\n> giving a bold look (in the HTML documentation at least).\n>\n> By consistently using back-ticks, these types of strings appear in a\n> monospace font with special highlighting to appear more clearly as text\n> that exists in a command-line invocation of a Git command.\n>\n> This rather-large diff is the result of scanning git-rebase.txt and\n> adding back-ticks as appropriate. Some are adding back-ticks where there\n> was no punctuation. Others are replacing single quotes.\n>\n> There are also a few minor cleanups in the process, such as one place\n> that did not use tabs for the first paragraph in a bulletted list.\n> Another case still referred to the dashed form, but it was the only use\n> in the file except for the heading and NAME section.\n\nI think the commit message should speak more matter-of-factly & briefly,\ni.e. just \"change so and so...\".\n\n\n>     While I noticed this inconsistency when looking at git rebase as part of\n>     the git rebase --update-refs work, I didn't know the best way to update\n>     the document from start to finish.\n>     \n>     This giant update is probably not the best way to present the change.\n>     \n>     I can see splitting it up in a few ways, but I wanted to check to first\n>     see if that was necessary. If it is, then here are the strategies I\n>     considered:\n>     \n>      1. Focus on type of update. This would mean a change for adding\n>         back-ticks on all --<option> text, adding back-ticks on all \"git\n>         rebase\" instances, adding back-ticks on things like <upstream>, and\n>         doing other types of changes like whitespace updates or \"git-rebase\"\n>         to \"git rebase\".\n>     \n>      2. Focus on the section of the document. This would limit the diff by\n>         the section size, such as OPTIONS or the discussion on the backends.\n>     \n>      3. Focus on the edits that most-recently edited these lines. Doing some\n>         scripting, I was able to construct this date-sorted list of previous\n>         edits (by diffing the git blame output before and after this\n>         change). The most-recent changes before this are:\n\nI think this is fine, but I want to recommend doc-diff in your toolkit,\ne.g.:\n\t\n\t$ Documentation/doc-diff HEAD~ HEAD -- -U0|cat\n\tdiff --git a/e4a4b31577c7419497ac30cebe30d755b97752c5/home/avar/share/man/man1/git-rebase.1 b/e37244faa0a730bb930dac4e10d8eed4af682a5d/home/avar/share/man/man1/git-rebase.1\n\tindex 91ccda823b2..41dfbee38a4 100644\n\t--- a/e4a4b31577c7419497ac30cebe30d755b97752c5/home/avar/share/man/man1/git-rebase.1\n\t+++ b/e37244faa0a730bb930dac4e10d8eed4af682a5d/home/avar/share/man/man1/git-rebase.1\n\t@@ -489,2 +489,2 @@ OPTIONS\n\t-           Append \"exec <cmd>\" after each line creating a commit in the final\n\t-           history. <cmd> will be interpreted as one or more shell commands.\n\t+           Append exec <cmd> after each line creating a commit in the final\n\t+           history.  <cmd> will be interpreted as one or more shell commands.\n\t@@ -502 +502 @@ OPTIONS\n\t-           If --autosquash is used, \"exec\" lines will not be appended for the\n\t+           If --autosquash is used, exec lines will not be appended for the\n\t@@ -880 +880 @@ NOTES\n\t-       When the git-rebase command is run, it will first execute a\n\t+       When the git rebase command is run, it will first execute a\n\nI see Phillip spotted some of this already, but the \"exec\" change here\nlooks unwanted, i.e. let's use double quotes there.\n\nFor the last hunk I'd think just:\n\n    When rebase is run, it will...\n\nWould be briefer & better in that case.\n\nI also see that we have other spots in our wider docs where we use the\ndashed form, I'm fine with converting this case, but maybe better to\nleave it aside to make this only a ``-quotation change, or to split up\nthis & the whitespace & other things you mentioned into another commit.\n\nAny way you're OK with is fine with me, thanks for fixing these.\n"},{"id":"458034","messageId":"a01c1ff7-74a7-b32f-1a1e-a8f2e840ae31@github.com","threadId":"58073","inReplyTo":"220628.86k091f5fy.gmgdl@evledraar.gmail.com","subject":"Rendering back-ticks in plaintext docs (was Re: [PATCH] git-rebase.txt: use back-ticks consistently)","fromName":"Derrick Stolee","fromEmail":"derrickstolee@github.com","sentAt":"2022-06-28T13:20:24Z","receivedAt":"2022-06-28T13:23:11Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"On 6/28/2022 6:22 AM, Ævar Arnfjörð Bjarmason wrote:\n> \n> On Mon, Jun 27 2022, Derrick Stolee via GitGitGadget wrote:\n> \n>> From: Derrick Stolee <derrickstolee@github.com>\n> \n> This looks 99% good, but...\n\n>>      3. Focus on the edits that most-recently edited these lines. Doing some\n>>         scripting, I was able to construct this date-sorted list of previous\n>>         edits (by diffing the git blame output before and after this\n>>         change). The most-recent changes before this are:\n> \n> I think this is fine, but I want to recommend doc-diff in your toolkit,\n> e.g.:\n\nThanks for the recommendation!\n\t\n> \t$ Documentation/doc-diff HEAD~ HEAD -- -U0|cat\n> \tdiff --git a/e4a4b31577c7419497ac30cebe30d755b97752c5/home/avar/share/man/man1/git-rebase.1 b/e37244faa0a730bb930dac4e10d8eed4af682a5d/home/avar/share/man/man1/git-rebase.1\n> \tindex 91ccda823b2..41dfbee38a4 100644\n> \t--- a/e4a4b31577c7419497ac30cebe30d755b97752c5/home/avar/share/man/man1/git-rebase.1\n> \t+++ b/e37244faa0a730bb930dac4e10d8eed4af682a5d/home/avar/share/man/man1/git-rebase.1\n> \t@@ -489,2 +489,2 @@ OPTIONS\n> \t-           Append \"exec <cmd>\" after each line creating a commit in the final\n> \t-           history. <cmd> will be interpreted as one or more shell commands.\n> \t+           Append exec <cmd> after each line creating a commit in the final\n> \t+           history.  <cmd> will be interpreted as one or more shell commands.\n> \t@@ -502 +502 @@ OPTIONS\n> \t-           If --autosquash is used, \"exec\" lines will not be appended for the\n> \t+           If --autosquash is used, exec lines will not be appended for the\n> \t@@ -880 +880 @@ NOTES\n> \t-       When the git-rebase command is run, it will first execute a\n> \t+       When the git rebase command is run, it will first execute a\n> \n> I see Phillip spotted some of this already, but the \"exec\" change here\n> looks unwanted, i.e. let's use double quotes there.\n\nThis is definitely an issue where I was looking at the HTML formatted\noutput, which respects back-ticks. Thanks for pointing out that the\ntext docs just ignore back-ticks. This seems problematic, in my opinion.\n\nIs it possible to update our doc formatting to convert back-ticks into\nsomething like single quotes? That would help these plain-text documents\npoint out these places where exact strings are very important.\n\nI also have no idea where to look to make such a change, and it would be\nvery wide-ranging. I just think that the plaintext docs are currently a\nlossy medium and we should work to improve that.\n\nThanks,\n-Stolee\n"},{"id":"458051","messageId":"xmqqmtdwlodw.fsf@gitster.g","threadId":"58073","inReplyTo":"pull.1270.git.1656364861242.gitgitgadget@gmail.com","subject":"Re: [PATCH] git-rebase.txt: use back-ticks consistently","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2022-06-28T16:54:35Z","receivedAt":"2022-06-28T16:56:31Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Derrick Stolee via GitGitGadget\" <gitgitgadget@gmail.com> writes:\n\n>     I can see splitting it up in a few ways, but I wanted to check to first\n>     see if that was necessary. If it is, then here are the strategies I\n>     considered:\n>     \n>      1. Focus on type of update. This would mean a change for adding\n>         back-ticks on all --<option> text, adding back-ticks on all \"git\n>         rebase\" instances, adding back-ticks on things like <upstream>, and\n>         doing other types of changes like whitespace updates or \"git-rebase\"\n>         to \"git rebase\".\n\nUnless each of these steps can be verified mechanically, I do not\nthink it is worth it.  If I have to choose between reading (1) 700+\nline patch just once in the form as-posted, or (2) three 400+ line\npatches along the \"type/theme\", the choice is fairly simple and\nobvious.\n\n>      2. Focus on the section of the document. This would limit the diff by\n>         the section size, such as OPTIONS or the discussion on the backends.\n\nThis could work, but the reviewers can choose where to stop if they\nfeel that a 700+ line patch is a bit too much to read through in a\nsingle sitting themselves.\n\n>      3. Focus on the edits that most-recently edited these lines. Doing some\n>         scripting, I was able to construct this date-sorted list of previous\n>         edits (by diffing the git blame output before and after this\n>         change). The most-recent changes before this are:\n>     \n>     2005-08-26: 52a22d1e726 ([PATCH] Subject: [PATCH] Add some documentation., 2005-08-26)\n>...\n>     2022-04-20: 9e5ebe9668a (rebase: use correct base for --keep-base when a branch is given, 2022-04-20)\n\nThat is a new concept ;-) \n\nIt is an interesting exercise to see which previous changes had\nthese mark-up mistakes, but it is not immediately obvious to me how\nwe can take advantage of the information.\n\n>     I look forward to feedback on how to do this better (if it is indeed a\n>     good idea to do in the first place).\n\nCorrecting mark-up to result in an easier-to-read documentation is a\ngood idea, of course.  I wonder if we can also help the developers\nmark-up correctly in their first attempt (e.g. do we have clear and\nconcise guidelines that are well publicized?)\n\n\n>  Documentation/git-rebase.txt | 224 +++++++++++++++++------------------\n>  1 file changed, 112 insertions(+), 112 deletions(-)\n\n> @@ -348,10 +348,10 @@ See also INCOMPATIBLE OPTIONS below.\n>  \tUsing merging strategies to rebase (default).\n>  +\n>  Note that a rebase merge works by replaying each commit from the working\n> -branch on top of the <upstream> branch.  Because of this, when a merge\n> +branch on top of the `<upstream>` branch.  Because of this, when a merge\n>  conflict happens, the side reported as 'ours' is the so-far rebased\n> -series, starting with <upstream>, and 'theirs' is the working branch.  In\n> -other words, the sides are swapped.\n> +series, starting with `<upstream>`, and 'theirs' is the working branch.\n> +In other words, the sides are swapped.\n>  +\n>  See also INCOMPATIBLE OPTIONS below.\n>  \n> @@ -360,9 +360,9 @@ See also INCOMPATIBLE OPTIONS below.\n>  \tUse the given merge strategy, instead of the default `ort`.\n>  \tThis implies `--merge`.\n>  +\n> -Because 'git rebase' replays each commit from the working branch\n> -on top of the <upstream> branch using the given strategy, using\n> -the 'ours' strategy simply empties all patches from the <branch>,\n> +Because `git rebase` replays each commit from the working branch\n> +on top of the `<upstream>` branch using the given strategy, using\n> +the `ours` strategy simply empties all patches from the `<branch>`,\n>  which makes little sense.\n>  +\n>  See also INCOMPATIBLE OPTIONS below.\n> ...\n>  --strategy-option=<strategy-option>::\n>  \tPass the <strategy-option> through to the merge strategy.\n>  \tThis implies `--merge` and, if no strategy has been\n> -\tspecified, `-s ort`.  Note the reversal of 'ours' and\n> -\t'theirs' as noted above for the `-m` option.\n> +\tspecified, `-s ort`.  Note the reversal of `ours` and\n> +\t`theirs` as noted above for the `-m` option.\n\nThese references to \"ours\" and \"theirs\" is what we called out\nearlier in the \"swapped\" description (hunk -348,10), i.e.\n\n\twhen a merge conflict happens, the side reported as 'ours'\n\tis the so-far rebased series ... and 'theirs' is the working\n\tbranch.\n\nwhich the patch left in 'emphasis' not `verbatim`.  I think this\nsection should do the same.\n\nThe 'ours' (but not 'theirs' because there is no such thing) that is\nexplained as useless as a strategy in the intervening paragraph\n(hunk -360,9) refers to the name of a strategy, and it is correct to\nmark it as `verbatim`.\n\n>  --ignore-whitespace::\n>  \tIgnore whitespace differences when trying to reconcile\n> -differences. Currently, each backend implements an approximation of\n> -this behavior:\n> +\tdifferences. Currently, each backend implements an approximation of\n> +\tthis behavior:\n>  +\n> -apply backend: When applying a patch, ignore changes in whitespace in\n> +'apply backend:' When applying a patch, ignore changes in whitespace in\n> ...\n> -merge backend: Treat lines with only whitespace changes as unchanged\n> +'merge backend:' Treat lines with only whitespace changes as unchanged\n\nIt somehow looks curious (at the source level---I haven't seen the\nformatted HTML output) to have the punctuation colon as part of the\nphrase marked up.  I wonder if these were meant to be more like so:\n\n\tapply backend;;\n\t\tWhen applying a patch, ...\n\n\tmerge backend;;\n\t\tTreat lines with ...\n\n> @@ -536,8 +536,8 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n>  \n>  -x <cmd>::\n>  --exec <cmd>::\n> -\tAppend \"exec <cmd>\" after each line creating a commit in the\n> -\tfinal history. <cmd> will be interpreted as one or more shell\n> +\tAppend `exec <cmd>` after each line creating a commit in the\n> +\tfinal history. `<cmd>` will be interpreted as one or more shell\n>  \tcommands. Any command that fails will interrupt the rebase,\n>  \twith exit code 1.\n\nAs noticed by others, \"git help -m rebase\" is somewhat harmed with\nthis change when rendered to plain text without any attributes.  The\nroff output actually is\n\n    .RS 4\n    Append\n    \\fBexec <cmd>\\fR\n    after each line creating a commit in the final history\\&.\n\nand even on plain text tty, \"exec <cmd>\" part is now shown in bold\n(as opposed to be in plain text inside double quotes, which was how\nthe original got rendered).  So I think this change is an\nimprovement.\n\n> @@ -550,7 +550,7 @@ or by giving more than one `--exec`:\n>  +\n>  \tgit rebase -i --exec \"cmd1\" --exec \"cmd2\" --exec ...\n>  +\n> -If `--autosquash` is used, \"exec\" lines will not be appended for\n> +If `--autosquash` is used, `exec` lines will not be appended for\n\nLikewise.\n\nThanks.\n"},{"id":"458052","messageId":"xmqqfsjolo5f.fsf@gitster.g","threadId":"58073","inReplyTo":"a01c1ff7-74a7-b32f-1a1e-a8f2e840ae31@github.com","subject":"Re: Rendering back-ticks in plaintext docs (was Re: [PATCH] git-rebase.txt: use back-ticks consistently)","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2022-06-28T16:59:40Z","receivedAt":"2022-06-28T17:00:41Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Derrick Stolee <derrickstolee@github.com> writes:\n\n>> I see Phillip spotted some of this already, but the \"exec\" change here\n>> looks unwanted, i.e. let's use double quotes there.\n>\n> This is definitely an issue where I was looking at the HTML formatted\n> output, which respects back-ticks. Thanks for pointing out that the\n> text docs just ignore back-ticks. This seems problematic, in my opinion.\n>\n> Is it possible to update our doc formatting to convert back-ticks into\n> something like single quotes? That would help these plain-text documents\n> point out these places where exact strings are very important.\n>\n> I also have no idea where to look to make such a change, and it would be\n> very wide-ranging. I just think that the plaintext docs are currently a\n> lossy medium and we should work to improve that.\n\nLooking at \"man -l git-rebase.1\" output, not the \"doc-diff\" output\nthat renders to pure plain text by deliberately losing font\ninformation in the roff output, I think this change is OK.  IOW,\n\"git help -m rebase\" shows these marked-up parts in bold on the\nterminal (and on the paper, but who prints manual pages theres\ndays?), which is what we want.\n\nIf there is something we found in this episode that we might want to\nimprove, it is doc-diff, I would think.\n\nThanks.\n"},{"id":"458062","messageId":"0a640845-8207-f8fd-a9df-2fc6d91aabfd@github.com","threadId":"58073","inReplyTo":"a821c10b-3b55-f20a-dc4c-c5b0452d7819@gmail.com","subject":"Re: [PATCH] git-rebase.txt: use back-ticks consistently","fromName":"Derrick Stolee","fromEmail":"derrickstolee@github.com","sentAt":"2022-06-28T19:29:41Z","receivedAt":"2022-06-28T19:37:54Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"On 6/28/2022 5:59 AM, Phillip Wood wrote:\n> Hi Stolee\n> \n> On 27/06/2022 22:21, Derrick Stolee via GitGitGadget wrote:\n\n> Thanks for doing this, I think it's fine as a single patch as all the changes are focussed making the quoting more consistent in a single file - splitting it up would be more work for you and would not really make it any easier for reviewers. I've left a few comments but it is a vast improvement as is.\n\nThanks for taking such a close look!\n \n>> -The current branch is reset to <upstream>, or <newbase> if the\n>> ---onto option was supplied.  This has the exact same effect as\n>> -`git reset --hard <upstream>` (or <newbase>).  ORIG_HEAD is set\n>> +The current branch is reset to `<upstream>`, or `<newbase>` if the\n>> +`--onto` option was supplied.  This has the exact same effect as\n>> +`git reset --hard <upstream>` (or `<newbase>`). `ORIG_HEAD` is set\n> \n> Unrelated to your change but I think we could lose the comma on this line if you do re-roll.\n\nNoted. Thanks.\n\n>>   Note that a rebase merge works by replaying each commit from the working\n>> -branch on top of the <upstream> branch.  Because of this, when a merge\n>> +branch on top of the `<upstream>` branch.  Because of this, when a merge\n>>   conflict happens, the side reported as 'ours' is the so-far rebased\n>> -series, starting with <upstream>, and 'theirs' is the working branch.  In\n>> -other words, the sides are swapped.\n>> +series, starting with `<upstream>`, and 'theirs' is the working branch.\n>> +In other words, the sides are swapped.\n> \n> Here when talking about \"ours\" and \"theirs\" as the parents of a merge we use single quotes ...\n\nGood point...\n\n>> -Because 'git rebase' replays each commit from the working branch\n>> -on top of the <upstream> branch using the given strategy, using\n>> -the 'ours' strategy simply empties all patches from the <branch>,\n>> +Because `git rebase` replays each commit from the working branch\n>> +on top of the `<upstream>` branch using the given strategy, using\n>> +the `ours` strategy simply empties all patches from the `<branch>`,\n> \n> Here \"ours\" is an option argument so I think the backquotes make sense\n\nI agree.\n\n>> @@ -371,8 +371,8 @@ See also INCOMPATIBLE OPTIONS below.\n>>   --strategy-option=<strategy-option>::\n>>       Pass the <strategy-option> through to the merge strategy.\n>>       This implies `--merge` and, if no strategy has been\n>> -    specified, `-s ort`.  Note the reversal of 'ours' and\n>> -    'theirs' as noted above for the `-m` option.\n>> +    specified, `-s ort`.  Note the reversal of `ours` and\n>> +    `theirs` as noted above for the `-m` option.\n> \n> Here \"ours\" and \"theirs\" are options so using backquotes is probably the right thing to do, but the text is referring to the section where they are not backquoted which confused me initially.\n\nI think your confusion makes sense. Here, we are talking about \"sides\"\nof a merge and not a strategy. I'll fix this in v2.\n\n>> -apply backend: When applying a patch, ignore changes in whitespace in\n>> +'apply backend:' When applying a patch, ignore changes in whitespace in\n> \n> I'm not sure if we want to say\n>     'apply backend:'\n> or\n>     'apply' backend:\n>>     -x <cmd>::\n>>   --exec <cmd>::\n>> -    Append \"exec <cmd>\" after each line creating a commit in the\n>> -    final history. <cmd> will be interpreted as one or more shell\n>> +    Append `exec <cmd>` after each line creating a commit in the\n> \n> Lower down when talking about other todo list commands we refer to them as \"pick\" (with double quotes) so I wonder if we should use \"exec `<cmd>`\" here as it is only <cmd> that comes from the command line argument\n\nJunio has some ideas about making this a bulletted list more clearly,\nso I'll try that and see what happens.\n\n>> -git rebase has two primary backends: apply and merge.  (The apply\n>> -backend used to be known as the 'am' backend, but the name led to\n>> -confusion as it looks like a verb instead of a noun.  Also, the merge\n>> +`git rebase` has two primary backends: `apply` and `merge`.  (The `apply`\n>> +backend used to be known as the `am` backend, but the name led to\n>> +confusion as it looks like a verb instead of a noun.  Also, the `merge`\n> \n> I think using single quotes for the backend names might make more sense as they are just names.\n\nI was thinking of them similar to the merge strategies, but you're right\nthat these are not used as CLI input (just something implied by --merge\nor --apply). I'll remove the ticks from around these uses.\n\n>> -When the git-rebase command is run, it will first execute a \"pre-rebase\"\n>> +When the `git rebase` command is run, it will first execute a \"pre-rebase\"\n> \n> This is the section I was referring to earlier when talking about quoting hook names.\n\nExcellent. Will fix.\n\nThanks,\n-Stolee\n"},{"id":"458063","messageId":"3fa71e6f-ebc4-b3f3-4624-777ad03a4fe2@github.com","threadId":"58073","inReplyTo":"xmqqmtdwlodw.fsf@gitster.g","subject":"Re: [PATCH] git-rebase.txt: use back-ticks consistently","fromName":"Derrick Stolee","fromEmail":"derrickstolee@github.com","sentAt":"2022-06-28T19:40:38Z","receivedAt":"2022-06-28T19:46:32Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"On 6/28/2022 12:54 PM, Junio C Hamano wrote:\n> \"Derrick Stolee via GitGitGadget\" <gitgitgadget@gmail.com> writes:\n> \n>>      3. Focus on the edits that most-recently edited these lines. Doing some\n>>         scripting, I was able to construct this date-sorted list of previous\n>>         edits (by diffing the git blame output before and after this\n>>         change). The most-recent changes before this are:\n>>     \n>>     2005-08-26: 52a22d1e726 ([PATCH] Subject: [PATCH] Add some documentation., 2005-08-26)\n>> ...\n>>     2022-04-20: 9e5ebe9668a (rebase: use correct base for --keep-base when a branch is given, 2022-04-20)\n> \n> That is a new concept ;-) \n> \n> It is an interesting exercise to see which previous changes had\n> these mark-up mistakes, but it is not immediately obvious to me how\n> we can take advantage of the information.\n\nI just wanted to see how much of these edits were due to \"really old\ndocumentation from when we had different habits\" and how many were\nrelated to recent updates, so I should give more pause. I think the\ndiscussion about the \"apply\" versus \"merge\" backends should have\ngiven me more pause because those sections were written recently and\nare more likely to have correct punctuation.\n \n>>     I look forward to feedback on how to do this better (if it is indeed a\n>>     good idea to do in the first place).\n> \n> Correcting mark-up to result in an easier-to-read documentation is a\n> good idea, of course.  I wonder if we can also help the developers\n> mark-up correctly in their first attempt (e.g. do we have clear and\n> concise guidelines that are well publicized?)\n\nI'm not sure we have them well publicized. It's worth thinking about.\n\nHopefully creating a more standard use within at least one (long) file\nwill help establish some patterns organically.\n\n>>  --strategy-option=<strategy-option>::\n>>  \tPass the <strategy-option> through to the merge strategy.\n>>  \tThis implies `--merge` and, if no strategy has been\n>> -\tspecified, `-s ort`.  Note the reversal of 'ours' and\n>> -\t'theirs' as noted above for the `-m` option.\n>> +\tspecified, `-s ort`.  Note the reversal of `ours` and\n>> +\t`theirs` as noted above for the `-m` option.\n> \n> These references to \"ours\" and \"theirs\" is what we called out\n> earlier in the \"swapped\" description (hunk -348,10), i.e.\n> \n> \twhen a merge conflict happens, the side reported as 'ours'\n> \tis the so-far rebased series ... and 'theirs' is the working\n> \tbranch.\n> \n> which the patch left in 'emphasis' not `verbatim`.  I think this\n> section should do the same.\n> \n> The 'ours' (but not 'theirs' because there is no such thing) that is\n> explained as useless as a strategy in the intervening paragraph\n> (hunk -360,9) refers to the name of a strategy, and it is correct to\n> mark it as `verbatim`.\nThanks!\n\n>>  --ignore-whitespace::\n>>  \tIgnore whitespace differences when trying to reconcile\n>> -differences. Currently, each backend implements an approximation of\n>> -this behavior:\n>> +\tdifferences. Currently, each backend implements an approximation of\n>> +\tthis behavior:\n>>  +\n>> -apply backend: When applying a patch, ignore changes in whitespace in\n>> +'apply backend:' When applying a patch, ignore changes in whitespace in\n>> ...\n>> -merge backend: Treat lines with only whitespace changes as unchanged\n>> +'merge backend:' Treat lines with only whitespace changes as unchanged\n> \n> It somehow looks curious (at the source level---I haven't seen the\n> formatted HTML output) to have the punctuation colon as part of the\n> phrase marked up.  I wonder if these were meant to be more like so:\n> \n> \tapply backend;;\n> \t\tWhen applying a patch, ...\n> \n> \tmerge backend;;\n> \t\tTreat lines with ...\n\nThis appears to work well. The doc-diff shows this:\n\n-           apply backend: When applying a patch, ignore changes in whitespace\n-           in context lines. Unfortunately, this means that if the \"old\" lines\n-           being replaced by the patch differ only in whitespace from the\n-           existing file, you will get a merge conflict instead of a\n-           successful patch application.\n+           apply backend:\n+               When applying a patch, ignore changes in whitespace in context\n+               lines. Unfortunately, this means that if the \"old\" lines being\n+               replaced by the patch differ only in whitespace from the\n+               existing file, you will get a merge conflict instead of a\n+               successful patch application.\n \n-           merge backend: Treat lines with only whitespace changes as\n-           unchanged when merging. Unfortunately, this means that any patch\n-           hunks that were intended to modify whitespace and nothing else will\n-           be dropped, even if the other side had no changes that conflicted.\n+           merge backend:\n+               Treat lines with only whitespace changes as unchanged when\n+               merging. Unfortunately, this means that any patch hunks that\n+               were intended to modify whitespace and nothing else will be\n+               dropped, even if the other side had no changes that conflicted.\n\n>> @@ -536,8 +536,8 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n>>  \n>>  -x <cmd>::\n>>  --exec <cmd>::\n>> -\tAppend \"exec <cmd>\" after each line creating a commit in the\n>> -\tfinal history. <cmd> will be interpreted as one or more shell\n>> +\tAppend `exec <cmd>` after each line creating a commit in the\n>> +\tfinal history. `<cmd>` will be interpreted as one or more shell\n>>  \tcommands. Any command that fails will interrupt the rebase,\n>>  \twith exit code 1.\n> \n> As noticed by others, \"git help -m rebase\" is somewhat harmed with\n> this change when rendered to plain text without any attributes.  The\n> roff output actually is\n> \n>     .RS 4\n>     Append\n>     \\fBexec <cmd>\\fR\n>     after each line creating a commit in the final history\\&.\n> \n> and even on plain text tty, \"exec <cmd>\" part is now shown in bold\n> (as opposed to be in plain text inside double quotes, which was how\n> the original got rendered).  So I think this change is an\n> improvement.\n\nThanks for digging into the details here. It would be interesting if\ndoc-diff could make this clearer, but that's a project for another time.\n\nThanks,\n-Stolee\n"},{"id":"458064","messageId":"pull.1270.v2.git.1656446577611.gitgitgadget@gmail.com","threadId":"58073","inReplyTo":"pull.1270.git.1656364861242.gitgitgadget@gmail.com","subject":"[PATCH v2] git-rebase.txt: use back-ticks consistently","fromName":"Derrick Stolee via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2022-06-28T20:02:57Z","receivedAt":"2022-06-28T20:13:05Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"From: Derrick Stolee <derrickstolee@github.com>\n\nWhile inspecting the 'git rebase' documentation, I noticed that it is\ninconsistent with how it uses back-ticks (or other punctuation) for\nidentifying Git commands, command-line arguments, or values for those\narguments.\n\nSometimes, an argument (like '--interactive') would appear without any\npunctuation, causing the argument to not have any special formatting.\nOther times, arguments or 'git rebase' itself would have single-quotes\ngiving a bold look (in the HTML documentation at least).\n\nBy consistently using back-ticks, these types of strings appear in a\nmonospace font with special highlighting to appear more clearly as text\nthat exists in a command-line invocation of a Git command.\n\nThis rather-large diff is the result of scanning git-rebase.txt and\nadding back-ticks as appropriate. Some are adding back-ticks where there\nwas no punctuation. Others are replacing single quotes.\n\nThere are also a few minor cleanups in the process, including those\nfound by reviwers.\n\nHelped-by: Phillip Wood <phillip.wood123@gmail.com>\nHelped-by: Junio C Hamano <gitster@pobox.com>\nSigned-off-by: Derrick Stolee <derrickstolee@github.com>\n---\n    git-rebase.txt: use back-ticks consistently\n    \n    While I noticed this inconsistency when looking at git rebase as part of\n    the git rebase --update-refs work, I didn't know the best way to update\n    the document from start to finish.\n    \n    Feedback tells me that splitting this patch isn't worth it.\n    \n    \n    Updates in v2\n    =============\n    \n     * The 'apply' and 'merge' backends are now quoted with single quotes\n       instead of back-ticks. (Phrases such as \"the merge command\"\n       describing the todo file still use back-ticks.)\n     * The pre-rebase hook now has back-ticks.\n     * An unnecessary comma is removed.\n     * When talking about 'ours' and 'theirs' as \"sides\" of a rebase, use\n       single quotes. Use back-ticks only for the ours strategy.\n     * A bulleted list is converted to use \";;\" syntax.\n    \n    Thanks, -Stolee\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-1270%2Fderrickstolee%2Frebase-docs-v2\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1270/derrickstolee/rebase-docs-v2\nPull-Request: https://github.com/gitgitgadget/git/pull/1270\n\nRange-diff vs v1:\n\n 1:  71520dc1b71 ! 1:  02983cdb79d git-rebase.txt: use back-ticks consistently\n     @@ Commit message\n          adding back-ticks as appropriate. Some are adding back-ticks where there\n          was no punctuation. Others are replacing single quotes.\n      \n     -    There are also a few minor cleanups in the process, such as one place\n     -    that did not use tabs for the first paragraph in a bulletted list.\n     -    Another case still referred to the dashed form, but it was the only use\n     -    in the file except for the heading and NAME section.\n     +    There are also a few minor cleanups in the process, including those\n     +    found by reviwers.\n      \n     +    Helped-by: Phillip Wood <phillip.wood123@gmail.com>\n     +    Helped-by: Junio C Hamano <gitster@pobox.com>\n          Signed-off-by: Derrick Stolee <derrickstolee@github.com>\n      \n       ## Documentation/git-rebase.txt ##\n     @@ Documentation/git-rebase.txt: SYNOPSIS\n      -The current branch is reset to <upstream>, or <newbase> if the\n      ---onto option was supplied.  This has the exact same effect as\n      -`git reset --hard <upstream>` (or <newbase>).  ORIG_HEAD is set\n     -+The current branch is reset to `<upstream>`, or `<newbase>` if the\n     ++The current branch is reset to `<upstream>` or `<newbase>` if the\n      +`--onto` option was supplied.  This has the exact same effect as\n      +`git reset --hard <upstream>` (or `<newbase>`). `ORIG_HEAD` is set\n       to point at the tip of the branch before the reset.\n     @@ Documentation/git-rebase.txt: SYNOPSIS\n       \n       Assume the following history exists and the current branch is \"topic\":\n       \n     +@@ Documentation/git-rebase.txt: remain the checked-out branch.\n     + \n     + If the upstream branch already contains a change you have made (e.g.,\n     + because you mailed a patch which was applied upstream), then that commit\n     +-will be skipped and warnings will be issued (if the `merge` backend is\n     ++will be skipped and warnings will be issued (if the 'merge' backend is\n     + used).  For example, running `git rebase master` on the following\n     + history (in which `A'` and `A` introduce the same set of changes, but\n     + have different committer information):\n      @@ Documentation/git-rebase.txt: would result in the removal of commits F and G:\n       ------------\n       \n     @@ Documentation/git-rebase.txt: flag exists as a convenient shortcut, such as for\n       +\n       See also INCOMPATIBLE OPTIONS below.\n       \n     +@@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n     + By default (or if `--no-reapply-cherry-picks` is given), these commits\n     + will be automatically dropped.  Because this necessitates reading all\n     + upstream commits, this can be expensive in repos with a large number\n     +-of upstream commits that need to be read.  When using the `merge`\n     ++of upstream commits that need to be read.  When using the 'merge'\n     + backend, warnings will be issued for each dropped commit (unless\n     + `--quiet` is given). Advice will also be issued unless\n     + `advice.skippedCherryPicks` is set to false (see linkgit:git-config[1]).\n      @@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n       \tUsing merging strategies to rebase (default).\n       +\n     @@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n       which makes little sense.\n       +\n       See also INCOMPATIBLE OPTIONS below.\n     -@@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n     - --strategy-option=<strategy-option>::\n     - \tPass the <strategy-option> through to the merge strategy.\n     - \tThis implies `--merge` and, if no strategy has been\n     --\tspecified, `-s ort`.  Note the reversal of 'ours' and\n     --\t'theirs' as noted above for the `-m` option.\n     -+\tspecified, `-s ort`.  Note the reversal of `ours` and\n     -+\t`theirs` as noted above for the `-m` option.\n     - +\n     - See also INCOMPATIBLE OPTIONS below.\n     - \n      @@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n       \n       -q::\n     @@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n      +\tthis behavior:\n       +\n      -apply backend: When applying a patch, ignore changes in whitespace in\n     -+'apply backend:' When applying a patch, ignore changes in whitespace in\n     - context lines. Unfortunately, this means that if the \"old\" lines being\n     - replaced by the patch differ only in whitespace from the existing\n     - file, you will get a merge conflict instead of a successful patch\n     - application.\n     +-context lines. Unfortunately, this means that if the \"old\" lines being\n     +-replaced by the patch differ only in whitespace from the existing\n     +-file, you will get a merge conflict instead of a successful patch\n     +-application.\n     ++apply backend:;;\n     ++\tWhen applying a patch, ignore changes in whitespace in context\n     ++\tlines. Unfortunately, this means that if the \"old\" lines being\n     ++\treplaced by the patch differ only in whitespace from the existing\n     ++\tfile, you will get a merge conflict instead of a successful patch\n     ++\tapplication.\n       +\n      -merge backend: Treat lines with only whitespace changes as unchanged\n     -+'merge backend:' Treat lines with only whitespace changes as unchanged\n     - when merging. Unfortunately, this means that any patch hunks that were\n     - intended to modify whitespace and nothing else will be dropped, even\n     - if the other side had no changes that conflicted.\n     +-when merging. Unfortunately, this means that any patch hunks that were\n     +-intended to modify whitespace and nothing else will be dropped, even\n     +-if the other side had no changes that conflicted.\n     ++merge backend:;;\n     ++\tTreat lines with only whitespace changes as unchanged when merging.\n     ++\tUnfortunately, this means that any patch hunks that were intended\n     ++\tto modify whitespace and nothing else will be dropped, even if the\n     ++\tother side had no changes that conflicted.\n       \n       --whitespace=<option>::\n      -\tThis flag is passed to the 'git apply' program\n     @@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n       See also INCOMPATIBLE OPTIONS below.\n       \n      @@ Documentation/git-rebase.txt: See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n     - \n       -x <cmd>::\n       --exec <cmd>::\n     --\tAppend \"exec <cmd>\" after each line creating a commit in the\n     + \tAppend \"exec <cmd>\" after each line creating a commit in the\n      -\tfinal history. <cmd> will be interpreted as one or more shell\n     -+\tAppend `exec <cmd>` after each line creating a commit in the\n      +\tfinal history. `<cmd>` will be interpreted as one or more shell\n       \tcommands. Any command that fails will interrupt the rebase,\n       \twith exit code 1.\n     @@ Documentation/git-rebase.txt: In addition, the following pairs of options are in\n      -git rebase has two primary backends: apply and merge.  (The apply\n      -backend used to be known as the 'am' backend, but the name led to\n      -confusion as it looks like a verb instead of a noun.  Also, the merge\n     -+`git rebase` has two primary backends: `apply` and `merge`.  (The `apply`\n     ++`git rebase` has two primary backends: 'apply' and 'merge'.  (The 'apply'\n      +backend used to be known as the `am` backend, but the name led to\n     -+confusion as it looks like a verb instead of a noun.  Also, the `merge`\n     ++confusion as it looks like a verb instead of a noun.  Also, the 'merge'\n       backend used to be known as the interactive backend, but it is now\n       used for non-interactive cases as well.  Both were renamed based on\n       lower-level functionality that underpinned each.) There are some\n     @@ Documentation/git-rebase.txt: subtle differences in how these two backends behav\n       ~~~~~~~~~~~~~\n       \n      -The apply backend unfortunately drops intentionally empty commits, i.e.\n     -+The `apply` backend unfortunately drops intentionally empty commits, i.e.\n     ++The 'apply' backend unfortunately drops intentionally empty commits, i.e.\n       commits that started empty, though these are rare in practice.  It\n       also drops commits that become empty and has no option for controlling\n       this behavior.\n     @@ Documentation/git-rebase.txt: subtle differences in how these two backends behav\n      -The merge backend keeps intentionally empty commits by default (though\n      -with -i they are marked as empty in the todo list editor, or they can\n      -be dropped automatically with --no-keep-empty).\n     -+The `merge` backend keeps intentionally empty commits by default (though\n     ++The 'merge' backend keeps intentionally empty commits by default (though\n      +with `-i` they are marked as empty in the todo list editor, or they can\n      +be dropped automatically with `--no-keep-empty`).\n       \n     @@ Documentation/git-rebase.txt: Directory rename detection\n       Due to the lack of accurate tree information (arising from\n       constructing fake ancestors with the limited information available in\n      -patches), directory rename detection is disabled in the apply backend.\n     -+patches), directory rename detection is disabled in the `apply` backend.\n     ++patches), directory rename detection is disabled in the 'apply' backend.\n       Disabled directory rename detection means that if one side of history\n       renames a directory and the other adds new files to the old directory,\n       then the new files will be left behind in the old directory without\n     @@ Documentation/git-rebase.txt: Directory rename detection\n       files into the new directory.\n       \n      -Directory rename detection works with the merge backend to provide you\n     -+Directory rename detection works with the `merge` backend to provide you\n     ++Directory rename detection works with the 'merge' backend to provide you\n       warnings in such cases.\n       \n       Context\n       ~~~~~~~\n       \n      -The apply backend works by creating a sequence of patches (by calling\n     -+The `apply` backend works by creating a sequence of patches (by calling\n     ++The 'apply' backend works by creating a sequence of patches (by calling\n       `format-patch` internally), and then applying the patches in sequence\n       (calling `am` internally).  Patches are composed of multiple hunks,\n       each with line numbers, a context region, and the actual changes.  The\n     @@ Documentation/git-rebase.txt: order to apply the changes to the right lines.  Ho\n       will require more lines of matching context to apply).\n       \n      -The merge backend works with a full copy of each relevant file,\n     -+The `merge` backend works with a full copy of each relevant file,\n     ++The 'merge' backend works with a full copy of each relevant file,\n       insulating it from these types of problems.\n       \n       Labelling of conflicts markers\n     @@ Documentation/git-rebase.txt: Labelling of conflicts markers\n       When there are content conflicts, the merge machinery tries to\n       annotate each side's conflict markers with the commits where the\n      -content came from.  Since the apply backend drops the original\n     -+content came from.  Since the `apply` backend drops the original\n     ++content came from.  Since the 'apply' backend drops the original\n       information about the rebased commits and their parents (and instead\n       generates new fake commits based off limited information in the\n       generated patches), those commits cannot be identified; instead it has\n      -to fall back to a commit summary.  Also, when merge.conflictStyle is\n      -set to diff3 or zdiff3, the apply backend will use \"constructed merge\n      +to fall back to a commit summary.  Also, when `merge.conflictStyle` is\n     -+set to `diff3` or `zdiff3`, the `apply` backend will use \"constructed merge\n     ++set to `diff3` or `zdiff3`, the 'apply' backend will use \"constructed merge\n       base\" to label the content from the merge base, and thus provide no\n       information about the merge base commit whatsoever.\n       \n      -The merge backend works with the full commits on both sides of history\n     -+The `merge` backend works with the full commits on both sides of history\n     ++The 'merge' backend works with the full commits on both sides of history\n       and thus has no such limitations.\n       \n       Hooks\n     @@ Documentation/git-rebase.txt: Labelling of conflicts markers\n      -The apply backend has not traditionally called the post-commit hook,\n      -while the merge backend has.  Both have called the post-checkout hook,\n      -though the merge backend has squelched its output.  Further, both\n     -+The `apply` backend has not traditionally called the post-commit hook,\n     -+while the `merge` backend has.  Both have called the post-checkout hook,\n     -+though the `merge` backend has squelched its output.  Further, both\n     ++The 'apply' backend has not traditionally called the post-commit hook,\n     ++while the 'merge' backend has.  Both have called the post-checkout hook,\n     ++though the 'merge' backend has squelched its output.  Further, both\n       backends only call the post-checkout hook with the starting point\n       commit of the rebase, not the intermediate commits nor the final\n       commit.  In each case, the calling of these hooks was by accident of\n     @@ Documentation/git-rebase.txt: calling either of these hooks in the future.\n       ~~~~~~~~~~~~~~~~\n       \n      -The apply backend has safety problems with an ill-timed interrupt; if\n     -+The `apply` backend has safety problems with an ill-timed interrupt; if\n     ++The 'apply' backend has safety problems with an ill-timed interrupt; if\n       the user presses Ctrl-C at the wrong time to try to abort the rebase,\n       the rebase can enter a state where it cannot be aborted with a\n      -subsequent `git rebase --abort`.  The merge backend does not appear to\n     -+subsequent `git rebase --abort`.  The `merge` backend does not appear to\n     ++subsequent `git rebase --abort`.  The 'merge' backend does not appear to\n       suffer from the same shortcoming.  (See\n       https://lore.kernel.org/git/20200207132152.GC2868@szeder.dev/ for\n       details.)\n     @@ Documentation/git-rebase.txt: When a conflict occurs while rebasing, rebase stop\n       `git rebase --continue`, the rebase should open an editor and ask the\n      -user to update the commit message.  The merge backend does this, while\n      -the apply backend blindly applies the original commit message.\n     -+user to update the commit message.  The `merge` backend does this, while\n     -+the `apply` backend blindly applies the original commit message.\n     ++user to update the commit message.  The 'merge' backend does this, while\n     ++the 'apply' backend blindly applies the original commit message.\n       \n       Miscellaneous differences\n       ~~~~~~~~~~~~~~~~~~~~~~~~~\n     @@ Documentation/git-rebase.txt: completeness:\n       below.\n       \n      -When the git-rebase command is run, it will first execute a \"pre-rebase\"\n     -+When the `git rebase` command is run, it will first execute a \"pre-rebase\"\n     - hook if one exists.  You can use this hook to do sanity checks and\n     - reject the rebase if it isn't appropriate.  Please see the template\n     - pre-rebase hook script for an example.\n     +-hook if one exists.  You can use this hook to do sanity checks and\n     +-reject the rebase if it isn't appropriate.  Please see the template\n     +-pre-rebase hook script for an example.\n     ++When the rebase is run, it will first execute a `pre-rebase` hook if one\n     ++exists.  You can use this hook to do sanity checks and reject the rebase\n     ++if it isn't appropriate.  Please see the template `pre-rebase` hook script\n     ++for an example.\n       \n      -Upon completion, <branch> will be the current branch.\n      +Upon completion, `<branch>` will be the current branch.\n\n\n Documentation/git-rebase.txt | 244 ++++++++++++++++++-----------------\n 1 file changed, 123 insertions(+), 121 deletions(-)\n\ndiff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt\nindex 262fb01aec0..f4fdfa16f57 100644\n--- a/Documentation/git-rebase.txt\n+++ b/Documentation/git-rebase.txt\n@@ -16,40 +16,40 @@ SYNOPSIS\n \n DESCRIPTION\n -----------\n-If <branch> is specified, 'git rebase' will perform an automatic\n+If `<branch>` is specified, `git rebase` will perform an automatic\n `git switch <branch>` before doing anything else.  Otherwise\n it remains on the current branch.\n \n-If <upstream> is not specified, the upstream configured in\n-branch.<name>.remote and branch.<name>.merge options will be used (see\n+If `<upstream>` is not specified, the upstream configured in\n+`branch.<name>.remote` and `branch.<name>.merge` options will be used (see\n linkgit:git-config[1] for details) and the `--fork-point` option is\n assumed.  If you are currently not on any branch or if the current\n branch does not have a configured upstream, the rebase will abort.\n \n All changes made by commits in the current branch but that are not\n-in <upstream> are saved to a temporary area.  This is the same set\n+in `<upstream>` are saved to a temporary area.  This is the same set\n of commits that would be shown by `git log <upstream>..HEAD`; or by\n `git log 'fork_point'..HEAD`, if `--fork-point` is active (see the\n description on `--fork-point` below); or by `git log HEAD`, if the\n `--root` option is specified.\n \n-The current branch is reset to <upstream>, or <newbase> if the\n---onto option was supplied.  This has the exact same effect as\n-`git reset --hard <upstream>` (or <newbase>).  ORIG_HEAD is set\n+The current branch is reset to `<upstream>` or `<newbase>` if the\n+`--onto` option was supplied.  This has the exact same effect as\n+`git reset --hard <upstream>` (or `<newbase>`). `ORIG_HEAD` is set\n to point at the tip of the branch before the reset.\n \n The commits that were previously saved into the temporary area are\n then reapplied to the current branch, one by one, in order. Note that\n-any commits in HEAD which introduce the same textual changes as a commit\n-in HEAD..<upstream> are omitted (i.e., a patch already accepted upstream\n+any commits in `HEAD` which introduce the same textual changes as a commit\n+in `HEAD..<upstream>` are omitted (i.e., a patch already accepted upstream\n with a different commit message or timestamp will be skipped).\n \n It is possible that a merge failure will prevent this process from being\n completely automatic.  You will have to resolve any such merge failure\n and run `git rebase --continue`.  Another option is to bypass the commit\n that caused the merge failure with `git rebase --skip`.  To check out the\n-original <branch> and remove the .git/rebase-apply working files, use the\n-command `git rebase --abort` instead.\n+original `<branch>` and remove the `.git/rebase-apply` working files, use\n+the command `git rebase --abort` instead.\n \n Assume the following history exists and the current branch is \"topic\":\n \n@@ -79,7 +79,7 @@ remain the checked-out branch.\n \n If the upstream branch already contains a change you have made (e.g.,\n because you mailed a patch which was applied upstream), then that commit\n-will be skipped and warnings will be issued (if the `merge` backend is\n+will be skipped and warnings will be issued (if the 'merge' backend is\n used).  For example, running `git rebase master` on the following\n history (in which `A'` and `A` introduce the same set of changes, but\n have different committer information):\n@@ -176,11 +176,11 @@ would result in the removal of commits F and G:\n ------------\n \n This is useful if F and G were flawed in some way, or should not be\n-part of topicA.  Note that the argument to --onto and the <upstream>\n+part of topicA.  Note that the argument to `--onto` and the `<upstream>`\n parameter can be any valid commit-ish.\n \n-In case of conflict, 'git rebase' will stop at the first problematic commit\n-and leave conflict markers in the tree.  You can use 'git diff' to locate\n+In case of conflict, `git rebase` will stop at the first problematic commit\n+and leave conflict markers in the tree.  You can use `git diff` to locate\n the markers (<<<<<<) and make edits to resolve the conflict.  For each\n file you edit, you need to tell Git that the conflict has been resolved,\n typically this would be done with\n@@ -205,8 +205,8 @@ OPTIONS\n -------\n --onto <newbase>::\n \tStarting point at which to create the new commits. If the\n-\t--onto option is not specified, the starting point is\n-\t<upstream>.  May be any valid commit, and not just an\n+\t`--onto` option is not specified, the starting point is\n+\t`<upstream>`.  May be any valid commit, and not just an\n \texisting branch name.\n +\n As a special case, you may use \"A\\...B\" as a shortcut for the\n@@ -215,19 +215,19 @@ leave out at most one of A and B, in which case it defaults to HEAD.\n \n --keep-base::\n \tSet the starting point at which to create the new commits to the\n-\tmerge base of <upstream> and <branch>. Running\n-\t'git rebase --keep-base <upstream> <branch>' is equivalent to\n+\tmerge base of `<upstream>` and `<branch>`. Running\n+\t`git rebase --keep-base <upstream> <branch>` is equivalent to\n \trunning\n-\t'git rebase --onto <upstream>...<branch> <upstream> <branch>'.\n+\t`git rebase --onto <upstream>...<branch> <upstream> <branch>`.\n +\n This option is useful in the case where one is developing a feature on\n top of an upstream branch. While the feature is being worked on, the\n upstream branch may advance and it may not be the best idea to keep\n rebasing on top of the upstream but to keep the base commit as-is.\n +\n-Although both this option and --fork-point find the merge base between\n-<upstream> and <branch>, this option uses the merge base as the _starting\n-point_ on which new commits will be created, whereas --fork-point uses\n+Although both this option and `--fork-point` find the merge base between\n+`<upstream>` and `<branch>`, this option uses the merge base as the _starting\n+point_ on which new commits will be created, whereas `--fork-point` uses\n the merge base to determine the _set of commits_ which will be rebased.\n +\n See also INCOMPATIBLE OPTIONS below.\n@@ -238,23 +238,23 @@ See also INCOMPATIBLE OPTIONS below.\n \tupstream for the current branch.\n \n <branch>::\n-\tWorking branch; defaults to HEAD.\n+\tWorking branch; defaults to `HEAD`.\n \n --continue::\n \tRestart the rebasing process after having resolved a merge conflict.\n \n --abort::\n \tAbort the rebase operation and reset HEAD to the original\n-\tbranch. If <branch> was provided when the rebase operation was\n-\tstarted, then HEAD will be reset to <branch>. Otherwise HEAD\n+\tbranch. If `<branch>` was provided when the rebase operation was\n+\tstarted, then `HEAD` will be reset to `<branch>`. Otherwise `HEAD`\n \twill be reset to where it was when the rebase operation was\n \tstarted.\n \n --quit::\n-\tAbort the rebase operation but HEAD is not reset back to the\n+\tAbort the rebase operation but `HEAD` is not reset back to the\n \toriginal branch. The index and working tree are also left\n \tunchanged as a result. If a temporary stash entry was created\n-\tusing --autostash, it will be saved to the stash list.\n+\tusing `--autostash`, it will be saved to the stash list.\n \n --apply::\n \tUse applying strategies to rebase (calling `git-am`\n@@ -269,16 +269,16 @@ See also INCOMPATIBLE OPTIONS below.\n \tempty after rebasing (because they contain a subset of already\n \tupstream changes).  With drop (the default), commits that\n \tbecome empty are dropped.  With keep, such commits are kept.\n-\tWith ask (implied by --interactive), the rebase will halt when\n+\tWith ask (implied by `--interactive`), the rebase will halt when\n \tan empty commit is applied allowing you to choose whether to\n \tdrop it, edit files more, or just commit the empty changes.\n-\tOther options, like --exec, will use the default of drop unless\n-\t-i/--interactive is explicitly specified.\n+\tOther options, like `--exec`, will use the default of drop unless\n+\t`-i`/`--interactive` is explicitly specified.\n +\n-Note that commits which start empty are kept (unless --no-keep-empty\n+Note that commits which start empty are kept (unless `--no-keep-empty`\n is specified), and commits which are clean cherry-picks (as determined\n by `git log --cherry-mark ...`) are detected and dropped as a\n-preliminary step (unless --reapply-cherry-picks is passed).\n+preliminary step (unless `--reapply-cherry-picks` is passed).\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -287,7 +287,7 @@ See also INCOMPATIBLE OPTIONS below.\n \tDo not keep commits that start empty before the rebase\n \t(i.e. that do not change anything from its parent) in the\n \tresult.  The default is to keep commits which start empty,\n-\tsince creating such commits requires passing the --allow-empty\n+\tsince creating such commits requires passing the `--allow-empty`\n \toverride flag to `git commit`, signifying that a user is very\n \tintentionally creating such a commit and thus wants to keep\n \tit.\n@@ -299,7 +299,7 @@ flag exists as a convenient shortcut, such as for cases where external\n tools generate many empty commits and you want them all removed.\n +\n For commits which do not start empty but become empty after rebasing,\n-see the --empty flag.\n+see the `--empty` flag.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -314,7 +314,7 @@ See also INCOMPATIBLE OPTIONS below.\n By default (or if `--no-reapply-cherry-picks` is given), these commits\n will be automatically dropped.  Because this necessitates reading all\n upstream commits, this can be expensive in repos with a large number\n-of upstream commits that need to be read.  When using the `merge`\n+of upstream commits that need to be read.  When using the 'merge'\n backend, warnings will be issued for each dropped commit (unless\n `--quiet` is given). Advice will also be issued unless\n `advice.skippedCherryPicks` is set to false (see linkgit:git-config[1]).\n@@ -348,10 +348,10 @@ See also INCOMPATIBLE OPTIONS below.\n \tUsing merging strategies to rebase (default).\n +\n Note that a rebase merge works by replaying each commit from the working\n-branch on top of the <upstream> branch.  Because of this, when a merge\n+branch on top of the `<upstream>` branch.  Because of this, when a merge\n conflict happens, the side reported as 'ours' is the so-far rebased\n-series, starting with <upstream>, and 'theirs' is the working branch.  In\n-other words, the sides are swapped.\n+series, starting with `<upstream>`, and 'theirs' is the working branch.\n+In other words, the sides are swapped.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -360,9 +360,9 @@ See also INCOMPATIBLE OPTIONS below.\n \tUse the given merge strategy, instead of the default `ort`.\n \tThis implies `--merge`.\n +\n-Because 'git rebase' replays each commit from the working branch\n-on top of the <upstream> branch using the given strategy, using\n-the 'ours' strategy simply empties all patches from the <branch>,\n+Because `git rebase` replays each commit from the working branch\n+on top of the `<upstream>` branch using the given strategy, using\n+the `ours` strategy simply empties all patches from the `<branch>`,\n which makes little sense.\n +\n See also INCOMPATIBLE OPTIONS below.\n@@ -392,11 +392,11 @@ See also INCOMPATIBLE OPTIONS below.\n \n -q::\n --quiet::\n-\tBe quiet. Implies --no-stat.\n+\tBe quiet. Implies `--no-stat`.\n \n -v::\n --verbose::\n-\tBe verbose. Implies --stat.\n+\tBe verbose. Implies `--stat`.\n \n --stat::\n \tShow a diffstat of what changed upstream since the last rebase. The\n@@ -411,13 +411,13 @@ See also INCOMPATIBLE OPTIONS below.\n \n --verify::\n \tAllows the pre-rebase hook to run, which is the default.  This option can\n-\tbe used to override --no-verify.  See also linkgit:githooks[5].\n+\tbe used to override `--no-verify`.  See also linkgit:githooks[5].\n \n -C<n>::\n-\tEnsure at least <n> lines of surrounding context match before\n+\tEnsure at least `<n>` lines of surrounding context match before\n \tand after each change.  When fewer lines of surrounding\n \tcontext exist they all must match.  By default no context is\n-\tever ignored.  Implies --apply.\n+\tever ignored.  Implies `--apply`.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -436,21 +436,21 @@ details).\n \n --fork-point::\n --no-fork-point::\n-\tUse reflog to find a better common ancestor between <upstream>\n-\tand <branch> when calculating which commits have been\n-\tintroduced by <branch>.\n+\tUse reflog to find a better common ancestor between `<upstream>`\n+\tand `<branch>` when calculating which commits have been\n+\tintroduced by `<branch>`.\n +\n-When --fork-point is active, 'fork_point' will be used instead of\n-<upstream> to calculate the set of commits to rebase, where\n+When `--fork-point` is active, 'fork_point' will be used instead of\n+`<upstream>` to calculate the set of commits to rebase, where\n 'fork_point' is the result of `git merge-base --fork-point <upstream>\n <branch>` command (see linkgit:git-merge-base[1]).  If 'fork_point'\n-ends up being empty, the <upstream> will be used as a fallback.\n+ends up being empty, the `<upstream>` will be used as a fallback.\n +\n-If <upstream> is given on the command line, then the default is\n+If `<upstream>` is given on the command line, then the default is\n `--no-fork-point`, otherwise the default is `--fork-point`. See also\n `rebase.forkpoint` in linkgit:git-config[1].\n +\n-If your branch was based on <upstream> but <upstream> was rewound and\n+If your branch was based on `<upstream>` but `<upstream>` was rewound and\n your branch contains commits which were dropped, this option can be used\n with `--keep-base` in order to drop those commits from your branch.\n +\n@@ -458,24 +458,26 @@ See also INCOMPATIBLE OPTIONS below.\n \n --ignore-whitespace::\n \tIgnore whitespace differences when trying to reconcile\n-differences. Currently, each backend implements an approximation of\n-this behavior:\n+\tdifferences. Currently, each backend implements an approximation of\n+\tthis behavior:\n +\n-apply backend: When applying a patch, ignore changes in whitespace in\n-context lines. Unfortunately, this means that if the \"old\" lines being\n-replaced by the patch differ only in whitespace from the existing\n-file, you will get a merge conflict instead of a successful patch\n-application.\n+apply backend:;;\n+\tWhen applying a patch, ignore changes in whitespace in context\n+\tlines. Unfortunately, this means that if the \"old\" lines being\n+\treplaced by the patch differ only in whitespace from the existing\n+\tfile, you will get a merge conflict instead of a successful patch\n+\tapplication.\n +\n-merge backend: Treat lines with only whitespace changes as unchanged\n-when merging. Unfortunately, this means that any patch hunks that were\n-intended to modify whitespace and nothing else will be dropped, even\n-if the other side had no changes that conflicted.\n+merge backend:;;\n+\tTreat lines with only whitespace changes as unchanged when merging.\n+\tUnfortunately, this means that any patch hunks that were intended\n+\tto modify whitespace and nothing else will be dropped, even if the\n+\tother side had no changes that conflicted.\n \n --whitespace=<option>::\n-\tThis flag is passed to the 'git apply' program\n+\tThis flag is passed to the `git apply` program\n \t(see linkgit:git-apply[1]) that applies the patch.\n-\tImplies --apply.\n+\tImplies `--apply`.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -537,7 +539,7 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n -x <cmd>::\n --exec <cmd>::\n \tAppend \"exec <cmd>\" after each line creating a commit in the\n-\tfinal history. <cmd> will be interpreted as one or more shell\n+\tfinal history. `<cmd>` will be interpreted as one or more shell\n \tcommands. Any command that fails will interrupt the rebase,\n \twith exit code 1.\n +\n@@ -550,7 +552,7 @@ or by giving more than one `--exec`:\n +\n \tgit rebase -i --exec \"cmd1\" --exec \"cmd2\" --exec ...\n +\n-If `--autosquash` is used, \"exec\" lines will not be appended for\n+If `--autosquash` is used, `exec` lines will not be appended for\n the intermediate commits, and will only appear at the end of each\n squash/fixup series.\n +\n@@ -560,11 +562,12 @@ without an explicit `--interactive`.\n See also INCOMPATIBLE OPTIONS below.\n \n --root::\n-\tRebase all commits reachable from <branch>, instead of\n-\tlimiting them with an <upstream>.  This allows you to rebase\n-\tthe root commit(s) on a branch.  When used with --onto, it\n-\twill skip changes already contained in <newbase> (instead of\n-\t<upstream>) whereas without --onto it will operate on every change.\n+\tRebase all commits reachable from `<branch>`, instead of\n+\tlimiting them with an `<upstream>`.  This allows you to rebase\n+\tthe root commit(s) on a branch.  When used with `--onto`, it\n+\twill skip changes already contained in `<newbase>` (instead of\n+\t`<upstream>`) whereas without `--onto` it will operate on every\n+\tchange.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -643,9 +646,9 @@ In addition, the following pairs of options are incompatible:\n BEHAVIORAL DIFFERENCES\n -----------------------\n \n-git rebase has two primary backends: apply and merge.  (The apply\n-backend used to be known as the 'am' backend, but the name led to\n-confusion as it looks like a verb instead of a noun.  Also, the merge\n+`git rebase` has two primary backends: 'apply' and 'merge'.  (The 'apply'\n+backend used to be known as the `am` backend, but the name led to\n+confusion as it looks like a verb instead of a noun.  Also, the 'merge'\n backend used to be known as the interactive backend, but it is now\n used for non-interactive cases as well.  Both were renamed based on\n lower-level functionality that underpinned each.) There are some\n@@ -654,19 +657,19 @@ subtle differences in how these two backends behave:\n Empty commits\n ~~~~~~~~~~~~~\n \n-The apply backend unfortunately drops intentionally empty commits, i.e.\n+The 'apply' backend unfortunately drops intentionally empty commits, i.e.\n commits that started empty, though these are rare in practice.  It\n also drops commits that become empty and has no option for controlling\n this behavior.\n \n-The merge backend keeps intentionally empty commits by default (though\n-with -i they are marked as empty in the todo list editor, or they can\n-be dropped automatically with --no-keep-empty).\n+The 'merge' backend keeps intentionally empty commits by default (though\n+with `-i` they are marked as empty in the todo list editor, or they can\n+be dropped automatically with `--no-keep-empty`).\n \n Similar to the apply backend, by default the merge backend drops\n-commits that become empty unless -i/--interactive is specified (in\n+commits that become empty unless `-i`/`--interactive` is specified (in\n which case it stops and asks the user what to do).  The merge backend\n-also has an --empty={drop,keep,ask} option for changing the behavior\n+also has an `--empty={drop,keep,ask}` option for changing the behavior\n of handling commits that become empty.\n \n Directory rename detection\n@@ -674,20 +677,20 @@ Directory rename detection\n \n Due to the lack of accurate tree information (arising from\n constructing fake ancestors with the limited information available in\n-patches), directory rename detection is disabled in the apply backend.\n+patches), directory rename detection is disabled in the 'apply' backend.\n Disabled directory rename detection means that if one side of history\n renames a directory and the other adds new files to the old directory,\n then the new files will be left behind in the old directory without\n any warning at the time of rebasing that you may want to move these\n files into the new directory.\n \n-Directory rename detection works with the merge backend to provide you\n+Directory rename detection works with the 'merge' backend to provide you\n warnings in such cases.\n \n Context\n ~~~~~~~\n \n-The apply backend works by creating a sequence of patches (by calling\n+The 'apply' backend works by creating a sequence of patches (by calling\n `format-patch` internally), and then applying the patches in sequence\n (calling `am` internally).  Patches are composed of multiple hunks,\n each with line numbers, a context region, and the actual changes.  The\n@@ -698,11 +701,11 @@ order to apply the changes to the right lines.  However, if multiple\n areas of the code have the same surrounding lines of context, the\n wrong one can be picked.  There are real-world cases where this has\n caused commits to be reapplied incorrectly with no conflicts reported.\n-Setting diff.context to a larger value may prevent such types of\n+Setting `diff.context` to a larger value may prevent such types of\n problems, but increases the chance of spurious conflicts (since it\n will require more lines of matching context to apply).\n \n-The merge backend works with a full copy of each relevant file,\n+The 'merge' backend works with a full copy of each relevant file,\n insulating it from these types of problems.\n \n Labelling of conflicts markers\n@@ -710,30 +713,30 @@ Labelling of conflicts markers\n \n When there are content conflicts, the merge machinery tries to\n annotate each side's conflict markers with the commits where the\n-content came from.  Since the apply backend drops the original\n+content came from.  Since the 'apply' backend drops the original\n information about the rebased commits and their parents (and instead\n generates new fake commits based off limited information in the\n generated patches), those commits cannot be identified; instead it has\n-to fall back to a commit summary.  Also, when merge.conflictStyle is\n-set to diff3 or zdiff3, the apply backend will use \"constructed merge\n+to fall back to a commit summary.  Also, when `merge.conflictStyle` is\n+set to `diff3` or `zdiff3`, the 'apply' backend will use \"constructed merge\n base\" to label the content from the merge base, and thus provide no\n information about the merge base commit whatsoever.\n \n-The merge backend works with the full commits on both sides of history\n+The 'merge' backend works with the full commits on both sides of history\n and thus has no such limitations.\n \n Hooks\n ~~~~~\n \n-The apply backend has not traditionally called the post-commit hook,\n-while the merge backend has.  Both have called the post-checkout hook,\n-though the merge backend has squelched its output.  Further, both\n+The 'apply' backend has not traditionally called the post-commit hook,\n+while the 'merge' backend has.  Both have called the post-checkout hook,\n+though the 'merge' backend has squelched its output.  Further, both\n backends only call the post-checkout hook with the starting point\n commit of the rebase, not the intermediate commits nor the final\n commit.  In each case, the calling of these hooks was by accident of\n implementation rather than by design (both backends were originally\n implemented as shell scripts and happened to invoke other commands\n-like 'git checkout' or 'git commit' that would call the hooks).  Both\n+like `git checkout` or `git commit` that would call the hooks).  Both\n backends should have the same behavior, though it is not entirely\n clear which, if any, is correct.  We will likely make rebase stop\n calling either of these hooks in the future.\n@@ -741,10 +744,10 @@ calling either of these hooks in the future.\n Interruptability\n ~~~~~~~~~~~~~~~~\n \n-The apply backend has safety problems with an ill-timed interrupt; if\n+The 'apply' backend has safety problems with an ill-timed interrupt; if\n the user presses Ctrl-C at the wrong time to try to abort the rebase,\n the rebase can enter a state where it cannot be aborted with a\n-subsequent `git rebase --abort`.  The merge backend does not appear to\n+subsequent `git rebase --abort`.  The 'merge' backend does not appear to\n suffer from the same shortcoming.  (See\n https://lore.kernel.org/git/20200207132152.GC2868@szeder.dev/ for\n details.)\n@@ -756,8 +759,8 @@ When a conflict occurs while rebasing, rebase stops and asks the user\n to resolve.  Since the user may need to make notable changes while\n resolving conflicts, after conflicts are resolved and the user has run\n `git rebase --continue`, the rebase should open an editor and ask the\n-user to update the commit message.  The merge backend does this, while\n-the apply backend blindly applies the original commit message.\n+user to update the commit message.  The 'merge' backend does this, while\n+the 'apply' backend blindly applies the original commit message.\n \n Miscellaneous differences\n ~~~~~~~~~~~~~~~~~~~~~~~~~\n@@ -777,23 +780,23 @@ completeness:\n   them to stderr.\n \n * State directories: The two backends keep their state in different\n-  directories under .git/\n+  directories under `.git/`\n \n include::merge-strategies.txt[]\n \n NOTES\n -----\n \n-You should understand the implications of using 'git rebase' on a\n+You should understand the implications of using `git rebase` on a\n repository that you share.  See also RECOVERING FROM UPSTREAM REBASE\n below.\n \n-When the git-rebase command is run, it will first execute a \"pre-rebase\"\n-hook if one exists.  You can use this hook to do sanity checks and\n-reject the rebase if it isn't appropriate.  Please see the template\n-pre-rebase hook script for an example.\n+When the rebase is run, it will first execute a `pre-rebase` hook if one\n+exists.  You can use this hook to do sanity checks and reject the rebase\n+if it isn't appropriate.  Please see the template `pre-rebase` hook script\n+for an example.\n \n-Upon completion, <branch> will be the current branch.\n+Upon completion, `<branch>` will be the current branch.\n \n INTERACTIVE MODE\n ----------------\n@@ -848,7 +851,7 @@ not look at them but at the commit names (\"deadbee\" and \"fa1afe1\" in this\n example), so do not delete or edit the names.\n \n By replacing the command \"pick\" with the command \"edit\", you can tell\n-'git rebase' to stop after applying that commit, so that you can edit\n+`git rebase` to stop after applying that commit, so that you can edit\n the files and/or the commit message, amend the commit, and continue\n rebasing.\n \n@@ -876,14 +879,13 @@ commit, the message from the final one is used.  You can also use\n \"fixup -C\" to get the same behavior as \"fixup -c\" except without opening\n an editor.\n \n-\n-'git rebase' will stop when \"pick\" has been replaced with \"edit\" or\n+`git rebase` will stop when \"pick\" has been replaced with \"edit\" or\n when a command fails due to merge errors. When you are done editing\n and/or resolving conflicts you can continue with `git rebase --continue`.\n \n For example, if you want to reorder the last 5 commits, such that what\n-was HEAD~4 becomes the new HEAD. To achieve that, you would call\n-'git rebase' like this:\n+was `HEAD~4` becomes the new `HEAD`. To achieve that, you would call\n+`git rebase` like this:\n \n ----------------------\n $ git rebase -i HEAD~5\n@@ -903,7 +905,7 @@ like this:\n ------------------\n \n Suppose you want to rebase the side branch starting at \"A\" to \"Q\". Make\n-sure that the current HEAD is \"B\", and call\n+sure that the current `HEAD` is \"B\", and call\n \n -----------------------------\n $ git rebase -i -r --onto Q O\n@@ -956,23 +958,23 @@ SPLITTING COMMITS\n -----------------\n \n In interactive mode, you can mark commits with the action \"edit\".  However,\n-this does not necessarily mean that 'git rebase' expects the result of this\n+this does not necessarily mean that `git rebase` expects the result of this\n edit to be exactly one commit.  Indeed, you can undo the commit, or you can\n add other commits.  This can be used to split a commit into two:\n \n - Start an interactive rebase with `git rebase -i <commit>^`, where\n-  <commit> is the commit you want to split.  In fact, any commit range\n+  `<commit>` is the commit you want to split.  In fact, any commit range\n   will do, as long as it contains that commit.\n \n - Mark the commit you want to split with the action \"edit\".\n \n - When it comes to editing that commit, execute `git reset HEAD^`.  The\n-  effect is that the HEAD is rewound by one, and the index follows suit.\n+  effect is that the `HEAD` is rewound by one, and the index follows suit.\n   However, the working tree stays the same.\n \n - Now add the changes to the index that you want to have in the first\n   commit.  You can use `git add` (possibly interactively) or\n-  'git gui' (or both) to do that.\n+  `git gui` (or both) to do that.\n \n - Commit the now-current index with whatever commit message is appropriate\n   now.\n@@ -983,7 +985,7 @@ add other commits.  This can be used to split a commit into two:\n \n If you are not absolutely sure that the intermediate revisions are\n consistent (they compile, pass the testsuite, etc.) you should use\n-'git stash' to stash away the not-yet-committed changes\n+`git stash` to stash away the not-yet-committed changes\n after each commit, test, and amend the commit if fixes are necessary.\n \n \n@@ -1087,12 +1089,12 @@ NOTE: While an \"easy case recovery\" sometimes appears to be successful\n       example, a commit that was removed via `git rebase\n       --interactive` will be **resurrected**!\n \n-The idea is to manually tell 'git rebase' \"where the old 'subsystem'\n+The idea is to manually tell `git rebase` \"where the old 'subsystem'\n ended and your 'topic' began\", that is, what the old merge base\n between them was.  You will have to find a way to name the last commit\n of the old 'subsystem', for example:\n \n-* With the 'subsystem' reflog: after 'git fetch', the old tip of\n+* With the 'subsystem' reflog: after `git fetch`, the old tip of\n   'subsystem' is at `subsystem@{1}`.  Subsequent fetches will\n   increase the number.  (See linkgit:git-reflog[1].)\n \n\nbase-commit: 9bef0b1e6ec371e786c2fba3edcc06ad040a536c\n-- \ngitgitgadget\n"},{"id":"458076","messageId":"xmqqwnd0h30t.fsf@gitster.g","threadId":"58073","inReplyTo":"pull.1270.v2.git.1656446577611.gitgitgadget@gmail.com","subject":"Re: [PATCH v2] git-rebase.txt: use back-ticks consistently","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2022-06-28T21:49:38Z","receivedAt":"2022-06-28T21:49:47Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Derrick Stolee via GitGitGadget\" <gitgitgadget@gmail.com> writes:\n\n> -apply backend: When applying a patch, ignore changes in whitespace in\n> -context lines. Unfortunately, this means that if the \"old\" lines being\n> -replaced by the patch differ only in whitespace from the existing\n> -file, you will get a merge conflict instead of a successful patch\n> -application.\n> +apply backend:;;\n\nHmph, I am surprised that you took this, with an extra colon.  Does\nit format nicely?\n\n> +\tWhen applying a patch, ignore changes in whitespace in context\n> +\tlines. Unfortunately, this means that if the \"old\" lines being\n> +\treplaced by the patch differ only in whitespace from the existing\n> +\tfile, you will get a merge conflict instead of a successful patch\n> +\tapplication.\n>  +\n> -merge backend: Treat lines with only whitespace changes as unchanged\n> -when merging. Unfortunately, this means that any patch hunks that were\n> -intended to modify whitespace and nothing else will be dropped, even\n> -if the other side had no changes that conflicted.\n> +merge backend:;;\n> +\tTreat lines with only whitespace changes as unchanged when merging.\n> +\tUnfortunately, this means that any patch hunks that were intended\n> +\tto modify whitespace and nothing else will be dropped, even if the\n> +\tother side had no changes that conflicted.\n>  \n>  --whitespace=<option>::\n> -\tThis flag is passed to the 'git apply' program\n> +\tThis flag is passed to the `git apply` program\n>  \t(see linkgit:git-apply[1]) that applies the patch.\n> -\tImplies --apply.\n> +\tImplies `--apply`.\n>  +\n>  See also INCOMPATIBLE OPTIONS below.\n>  \n> @@ -537,7 +539,7 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n>  -x <cmd>::\n>  --exec <cmd>::\n>  \tAppend \"exec <cmd>\" after each line creating a commit in the\n\nI thought `exec <cmd>` was an improvement, just like ...\n\n> -If `--autosquash` is used, \"exec\" lines will not be appended for\n> +If `--autosquash` is used, `exec` lines will not be appended for\n\n... this is?\n\nOther than that, looking good.\n\nThanks.\n"},{"id":"458084","messageId":"35e1e681-2666-a7fd-9b30-05a78ae9e957@gmail.com","threadId":"58073","inReplyTo":"pull.1270.v2.git.1656446577611.gitgitgadget@gmail.com","subject":"Re: [PATCH v2] git-rebase.txt: use back-ticks consistently","fromName":"Phillip Wood","fromEmail":"phillip.wood123@gmail.com","sentAt":"2022-06-29T09:27:38Z","receivedAt":"2022-06-29T09:27:45Z","isPatch":true,"sender":{"key":"phillip.wood@dunelm.org.uk","avatar":null},"body":"On 28/06/2022 21:02, Derrick Stolee via GitGitGadget wrote:\n> From: Derrick Stolee <derrickstolee@github.com>\n> \n> While inspecting the 'git rebase' documentation, I noticed that it is\n> inconsistent with how it uses back-ticks (or other punctuation) for\n> identifying Git commands, command-line arguments, or values for those\n> arguments.\n> \n> Sometimes, an argument (like '--interactive') would appear without any\n> punctuation, causing the argument to not have any special formatting.\n> Other times, arguments or 'git rebase' itself would have single-quotes\n> giving a bold look (in the HTML documentation at least).\n> \n> By consistently using back-ticks, these types of strings appear in a\n> monospace font with special highlighting to appear more clearly as text\n> that exists in a command-line invocation of a Git command.\n> \n> This rather-large diff is the result of scanning git-rebase.txt and\n> adding back-ticks as appropriate. Some are adding back-ticks where there\n> was no punctuation. Others are replacing single quotes.\n> \n> There are also a few minor cleanups in the process, including those\n> found by reviwers.\n\nNot worth a re-roll on its own: s/reviwers/reviewers/\n> \n> Helped-by: Phillip Wood <phillip.wood123@gmail.com>\n> Helped-by: Junio C Hamano <gitster@pobox.com>\n> Signed-off-by: Derrick Stolee <derrickstolee@github.com>\n\nThis is looking good, I've one minor comment below\n\n> -git rebase has two primary backends: apply and merge.  (The apply\n> -backend used to be known as the 'am' backend, but the name led to\n> -confusion as it looks like a verb instead of a noun.  Also, the merge\n> +`git rebase` has two primary backends: 'apply' and 'merge'.  (The 'apply'\n> +backend used to be known as the `am` backend, but the name led to\n\nI think we should keep single quotes around \"am\" as it is being used as \na name like 'apply'\n\nThanks again for cleaning up the documentation\n\nPhillip\n"},{"id":"458085","messageId":"6f229f4d-8ce8-beb5-e27c-2ea244a634a7@gmail.com","threadId":"58073","inReplyTo":"xmqqwnd0h30t.fsf@gitster.g","subject":"Re: [PATCH v2] git-rebase.txt: use back-ticks consistently","fromName":"Phillip Wood","fromEmail":"phillip.wood123@gmail.com","sentAt":"2022-06-29T09:31:22Z","receivedAt":"2022-06-29T09:31:28Z","isPatch":true,"sender":{"key":"phillip.wood@dunelm.org.uk","avatar":null},"body":"On 28/06/2022 22:49, Junio C Hamano wrote:\n> \"Derrick Stolee via GitGitGadget\" <gitgitgadget@gmail.com> writes:\n>> @@ -537,7 +539,7 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n>>   -x <cmd>::\n>>   --exec <cmd>::\n>>   \tAppend \"exec <cmd>\" after each line creating a commit in the\n> \n> I thought `exec <cmd>` was an improvement, just like ...\n\nI'm not so sure, I thought we normally reserved backticks for command \nline options and this is talking about what gets added to the todo-list. \nI could see \"exec `<cmd>`\" being an improvement though. There are \nseveral other mentions of todo list commands in the documentation and I \nthink they are all double quoted like this one.\n\nBest Wishes\n\nPhillip\n\n>> -If `--autosquash` is used, \"exec\" lines will not be appended for\n>> +If `--autosquash` is used, `exec` lines will not be appended for\n> \n> ... this is?\n> \n> Other than that, looking good.\n> \n> Thanks.\n"},{"id":"458087","messageId":"c8f38fcc-09f5-3dcf-02bc-58d51de6a156@github.com","threadId":"58073","inReplyTo":"6f229f4d-8ce8-beb5-e27c-2ea244a634a7@gmail.com","subject":"Re: [PATCH v2] git-rebase.txt: use back-ticks consistently","fromName":"Derrick Stolee","fromEmail":"derrickstolee@github.com","sentAt":"2022-06-29T12:40:34Z","receivedAt":"2022-06-29T12:40:38Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"On 6/29/22 5:31 AM, Phillip Wood wrote:\n> On 28/06/2022 22:49, Junio C Hamano wrote:\n>> \"Derrick Stolee via GitGitGadget\" <gitgitgadget@gmail.com> writes:\n>>> @@ -537,7 +539,7 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n>>>   -x <cmd>::\n>>>   --exec <cmd>::\n>>>       Append \"exec <cmd>\" after each line creating a commit in the\n>>\n>> I thought `exec <cmd>` was an improvement, just like ...\n> \n> I'm not so sure, I thought we normally reserved backticks for command line options and this is talking about what gets added to the todo-list. I could see \"exec `<cmd>`\" being an improvement though. There are several other mentions of todo list commands in the documentation and I think they are all double quoted like this one.\n\nThis was my understanding based on the v1 feedback. I think it\nwould be OK to consider this change separately, perhaps as an\nexample case in a \"recommended doc formatting\" document.\n\nThanks,\n-Stolee\n"},{"id":"458088","messageId":"aadf5592-c1aa-89ce-5637-d18af7ab45b4@github.com","threadId":"58073","inReplyTo":"35e1e681-2666-a7fd-9b30-05a78ae9e957@gmail.com","subject":"Re: [PATCH v2] git-rebase.txt: use back-ticks consistently","fromName":"Derrick Stolee","fromEmail":"derrickstolee@github.com","sentAt":"2022-06-29T12:41:38Z","receivedAt":"2022-06-29T12:41:42Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"On 6/29/22 5:27 AM, Phillip Wood wrote:\n> On 28/06/2022 21:02, Derrick Stolee via GitGitGadget wrote:\n>> There are also a few minor cleanups in the process, including those\n>> found by reviwers.\n> \n> Not worth a re-roll on its own: s/reviwers/reviewers/\n\nThanks!\n\n>> -git rebase has two primary backends: apply and merge.  (The apply\n>> -backend used to be known as the 'am' backend, but the name led to\n>> -confusion as it looks like a verb instead of a noun.  Also, the merge\n>> +`git rebase` has two primary backends: 'apply' and 'merge'.  (The 'apply'\n>> +backend used to be known as the `am` backend, but the name led to\n> \n> I think we should keep single quotes around \"am\" as it is being used as a name like 'apply'\n\nThanks for your keen eye here. I searched the doc for all uses\nof \"apply\" and \"merge\" to evaluate this quoting, but missed this\nuse of \"am\".\n\nThanks,\n-Stolee\n\n"},{"id":"458090","messageId":"45869a54-5106-0223-b116-c3f390780ccf@github.com","threadId":"58073","inReplyTo":"xmqqwnd0h30t.fsf@gitster.g","subject":"Re: [PATCH v2] git-rebase.txt: use back-ticks consistently","fromName":"Derrick Stolee","fromEmail":"derrickstolee@github.com","sentAt":"2022-06-29T12:43:31Z","receivedAt":"2022-06-29T12:43:38Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"On 6/28/22 5:49 PM, Junio C Hamano wrote:\n> \"Derrick Stolee via GitGitGadget\" <gitgitgadget@gmail.com> writes:\n> \n>> -apply backend: When applying a patch, ignore changes in whitespace in\n>> -context lines. Unfortunately, this means that if the \"old\" lines being\n>> -replaced by the patch differ only in whitespace from the existing\n>> -file, you will get a merge conflict instead of a successful patch\n>> -application.\n>> +apply backend:;;\n> \n> Hmph, I am surprised that you took this, with an extra colon.  Does\n> it format nicely?\n\nWell, this is somewhat of an \"oops\" because I honestly thought you\nhad kept the colons in your comment, but it turns out that I misread\nit.\n\nI had replied with this doc-diff:\n\n-           apply backend: When applying a patch, ignore changes in whitespace\n-           in context lines. Unfortunately, this means that if the \"old\" lines\n-           being replaced by the patch differ only in whitespace from the\n-           existing file, you will get a merge conflict instead of a\n-           successful patch application.\n+           apply backend:\n+               When applying a patch, ignore changes in whitespace in context\n+               lines. Unfortunately, this means that if the \"old\" lines being\n+               replaced by the patch differ only in whitespace from the\n+               existing file, you will get a merge conflict instead of a\n+               successful patch application.\n \n-           merge backend: Treat lines with only whitespace changes as\n-           unchanged when merging. Unfortunately, this means that any patch\n-           hunks that were intended to modify whitespace and nothing else will\n-           be dropped, even if the other side had no changes that conflicted.\n+           merge backend:\n+               Treat lines with only whitespace changes as unchanged when\n+               merging. Unfortunately, this means that any patch hunks that\n+               were intended to modify whitespace and nothing else will be\n+               dropped, even if the other side had no changes that conflicted.\n\nSo, we do have a render that doesn't look awful, but since we already\nhave formatting that makes it clear these are subsections, the colons\nare not needed.\n\nThanks,\n-Stolee\n"},{"id":"458097","messageId":"pull.1270.v3.git.1656508868146.gitgitgadget@gmail.com","threadId":"58073","inReplyTo":"pull.1270.v2.git.1656446577611.gitgitgadget@gmail.com","subject":"[PATCH v3] git-rebase.txt: use back-ticks consistently","fromName":"Derrick Stolee via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2022-06-29T13:21:07Z","receivedAt":"2022-06-29T13:21:17Z","isPatch":true,"sender":{"key":"stolee@gmail.com","avatar":"https://avatars.githubusercontent.com/u/570044?v=4"},"body":"From: Derrick Stolee <derrickstolee@github.com>\n\nWhile inspecting the 'git rebase' documentation, I noticed that it is\ninconsistent with how it uses back-ticks (or other punctuation) for\nidentifying Git commands, command-line arguments, or values for those\narguments.\n\nSometimes, an argument (like '--interactive') would appear without any\npunctuation, causing the argument to not have any special formatting.\nOther times, arguments or 'git rebase' itself would have single-quotes\ngiving a bold look (in the HTML documentation at least).\n\nBy consistently using back-ticks, these types of strings appear in a\nmonospace font with special highlighting to appear more clearly as text\nthat exists in a command-line invocation of a Git command.\n\nThis rather-large diff is the result of scanning git-rebase.txt and\nadding back-ticks as appropriate. Some are adding back-ticks where there\nwas no punctuation. Others are replacing single quotes.\n\nThere are also a few minor cleanups in the process, including those\nfound by reviewers.\n\nHelped-by: Phillip Wood <phillip.wood123@gmail.com>\nHelped-by: Junio C Hamano <gitster@pobox.com>\nSigned-off-by: Derrick Stolee <derrickstolee@github.com>\n---\n    git-rebase.txt: use back-ticks consistently\n    \n    While I noticed this inconsistency when looking at git rebase as part of\n    the git rebase --update-refs work, I didn't know the best way to update\n    the document from start to finish.\n    \n    Feedback tells me that splitting this patch isn't worth it.\n    \n    \n    Updates in v3\n    =============\n    \n     * A much smaller round of edits, but huge thanks to Junio and Phillip\n       for a careful attention to detail.\n     * Use 'am' over am.\n     * Don't use colons in subsection headings.\n     * Fix a commit message typo.\n    \n    \n    Updates in v2\n    =============\n    \n     * The 'apply' and 'merge' backends are now quoted with single quotes\n       instead of back-ticks. (Phrases such as \"the merge command\"\n       describing the todo file still use back-ticks.)\n     * The pre-rebase hook now has back-ticks.\n     * An unnecessary comma is removed.\n     * When talking about 'ours' and 'theirs' as \"sides\" of a rebase, use\n       single quotes. Use back-ticks only for the ours strategy.\n     * A bulleted list is converted to use \";;\" syntax.\n    \n    Thanks, -Stolee\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-1270%2Fderrickstolee%2Frebase-docs-v3\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1270/derrickstolee/rebase-docs-v3\nPull-Request: https://github.com/gitgitgadget/git/pull/1270\n\nRange-diff vs v2:\n\n 1:  02983cdb79d ! 1:  9c59d120c14 git-rebase.txt: use back-ticks consistently\n     @@ Commit message\n          was no punctuation. Others are replacing single quotes.\n      \n          There are also a few minor cleanups in the process, including those\n     -    found by reviwers.\n     +    found by reviewers.\n      \n          Helped-by: Phillip Wood <phillip.wood123@gmail.com>\n          Helped-by: Junio C Hamano <gitster@pobox.com>\n     @@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n      -replaced by the patch differ only in whitespace from the existing\n      -file, you will get a merge conflict instead of a successful patch\n      -application.\n     -+apply backend:;;\n     ++apply backend;;\n      +\tWhen applying a patch, ignore changes in whitespace in context\n      +\tlines. Unfortunately, this means that if the \"old\" lines being\n      +\treplaced by the patch differ only in whitespace from the existing\n     @@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n      -when merging. Unfortunately, this means that any patch hunks that were\n      -intended to modify whitespace and nothing else will be dropped, even\n      -if the other side had no changes that conflicted.\n     -+merge backend:;;\n     ++merge backend;;\n      +\tTreat lines with only whitespace changes as unchanged when merging.\n      +\tUnfortunately, this means that any patch hunks that were intended\n      +\tto modify whitespace and nothing else will be dropped, even if the\n     @@ Documentation/git-rebase.txt: In addition, the following pairs of options are in\n       -----------------------\n       \n      -git rebase has two primary backends: apply and merge.  (The apply\n     --backend used to be known as the 'am' backend, but the name led to\n     --confusion as it looks like a verb instead of a noun.  Also, the merge\n      +`git rebase` has two primary backends: 'apply' and 'merge'.  (The 'apply'\n     -+backend used to be known as the `am` backend, but the name led to\n     + backend used to be known as the 'am' backend, but the name led to\n     +-confusion as it looks like a verb instead of a noun.  Also, the merge\n      +confusion as it looks like a verb instead of a noun.  Also, the 'merge'\n       backend used to be known as the interactive backend, but it is now\n       used for non-interactive cases as well.  Both were renamed based on\n\n\n Documentation/git-rebase.txt | 242 ++++++++++++++++++-----------------\n 1 file changed, 122 insertions(+), 120 deletions(-)\n\ndiff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt\nindex 262fb01aec0..a872ab0fbd1 100644\n--- a/Documentation/git-rebase.txt\n+++ b/Documentation/git-rebase.txt\n@@ -16,40 +16,40 @@ SYNOPSIS\n \n DESCRIPTION\n -----------\n-If <branch> is specified, 'git rebase' will perform an automatic\n+If `<branch>` is specified, `git rebase` will perform an automatic\n `git switch <branch>` before doing anything else.  Otherwise\n it remains on the current branch.\n \n-If <upstream> is not specified, the upstream configured in\n-branch.<name>.remote and branch.<name>.merge options will be used (see\n+If `<upstream>` is not specified, the upstream configured in\n+`branch.<name>.remote` and `branch.<name>.merge` options will be used (see\n linkgit:git-config[1] for details) and the `--fork-point` option is\n assumed.  If you are currently not on any branch or if the current\n branch does not have a configured upstream, the rebase will abort.\n \n All changes made by commits in the current branch but that are not\n-in <upstream> are saved to a temporary area.  This is the same set\n+in `<upstream>` are saved to a temporary area.  This is the same set\n of commits that would be shown by `git log <upstream>..HEAD`; or by\n `git log 'fork_point'..HEAD`, if `--fork-point` is active (see the\n description on `--fork-point` below); or by `git log HEAD`, if the\n `--root` option is specified.\n \n-The current branch is reset to <upstream>, or <newbase> if the\n---onto option was supplied.  This has the exact same effect as\n-`git reset --hard <upstream>` (or <newbase>).  ORIG_HEAD is set\n+The current branch is reset to `<upstream>` or `<newbase>` if the\n+`--onto` option was supplied.  This has the exact same effect as\n+`git reset --hard <upstream>` (or `<newbase>`). `ORIG_HEAD` is set\n to point at the tip of the branch before the reset.\n \n The commits that were previously saved into the temporary area are\n then reapplied to the current branch, one by one, in order. Note that\n-any commits in HEAD which introduce the same textual changes as a commit\n-in HEAD..<upstream> are omitted (i.e., a patch already accepted upstream\n+any commits in `HEAD` which introduce the same textual changes as a commit\n+in `HEAD..<upstream>` are omitted (i.e., a patch already accepted upstream\n with a different commit message or timestamp will be skipped).\n \n It is possible that a merge failure will prevent this process from being\n completely automatic.  You will have to resolve any such merge failure\n and run `git rebase --continue`.  Another option is to bypass the commit\n that caused the merge failure with `git rebase --skip`.  To check out the\n-original <branch> and remove the .git/rebase-apply working files, use the\n-command `git rebase --abort` instead.\n+original `<branch>` and remove the `.git/rebase-apply` working files, use\n+the command `git rebase --abort` instead.\n \n Assume the following history exists and the current branch is \"topic\":\n \n@@ -79,7 +79,7 @@ remain the checked-out branch.\n \n If the upstream branch already contains a change you have made (e.g.,\n because you mailed a patch which was applied upstream), then that commit\n-will be skipped and warnings will be issued (if the `merge` backend is\n+will be skipped and warnings will be issued (if the 'merge' backend is\n used).  For example, running `git rebase master` on the following\n history (in which `A'` and `A` introduce the same set of changes, but\n have different committer information):\n@@ -176,11 +176,11 @@ would result in the removal of commits F and G:\n ------------\n \n This is useful if F and G were flawed in some way, or should not be\n-part of topicA.  Note that the argument to --onto and the <upstream>\n+part of topicA.  Note that the argument to `--onto` and the `<upstream>`\n parameter can be any valid commit-ish.\n \n-In case of conflict, 'git rebase' will stop at the first problematic commit\n-and leave conflict markers in the tree.  You can use 'git diff' to locate\n+In case of conflict, `git rebase` will stop at the first problematic commit\n+and leave conflict markers in the tree.  You can use `git diff` to locate\n the markers (<<<<<<) and make edits to resolve the conflict.  For each\n file you edit, you need to tell Git that the conflict has been resolved,\n typically this would be done with\n@@ -205,8 +205,8 @@ OPTIONS\n -------\n --onto <newbase>::\n \tStarting point at which to create the new commits. If the\n-\t--onto option is not specified, the starting point is\n-\t<upstream>.  May be any valid commit, and not just an\n+\t`--onto` option is not specified, the starting point is\n+\t`<upstream>`.  May be any valid commit, and not just an\n \texisting branch name.\n +\n As a special case, you may use \"A\\...B\" as a shortcut for the\n@@ -215,19 +215,19 @@ leave out at most one of A and B, in which case it defaults to HEAD.\n \n --keep-base::\n \tSet the starting point at which to create the new commits to the\n-\tmerge base of <upstream> and <branch>. Running\n-\t'git rebase --keep-base <upstream> <branch>' is equivalent to\n+\tmerge base of `<upstream>` and `<branch>`. Running\n+\t`git rebase --keep-base <upstream> <branch>` is equivalent to\n \trunning\n-\t'git rebase --onto <upstream>...<branch> <upstream> <branch>'.\n+\t`git rebase --onto <upstream>...<branch> <upstream> <branch>`.\n +\n This option is useful in the case where one is developing a feature on\n top of an upstream branch. While the feature is being worked on, the\n upstream branch may advance and it may not be the best idea to keep\n rebasing on top of the upstream but to keep the base commit as-is.\n +\n-Although both this option and --fork-point find the merge base between\n-<upstream> and <branch>, this option uses the merge base as the _starting\n-point_ on which new commits will be created, whereas --fork-point uses\n+Although both this option and `--fork-point` find the merge base between\n+`<upstream>` and `<branch>`, this option uses the merge base as the _starting\n+point_ on which new commits will be created, whereas `--fork-point` uses\n the merge base to determine the _set of commits_ which will be rebased.\n +\n See also INCOMPATIBLE OPTIONS below.\n@@ -238,23 +238,23 @@ See also INCOMPATIBLE OPTIONS below.\n \tupstream for the current branch.\n \n <branch>::\n-\tWorking branch; defaults to HEAD.\n+\tWorking branch; defaults to `HEAD`.\n \n --continue::\n \tRestart the rebasing process after having resolved a merge conflict.\n \n --abort::\n \tAbort the rebase operation and reset HEAD to the original\n-\tbranch. If <branch> was provided when the rebase operation was\n-\tstarted, then HEAD will be reset to <branch>. Otherwise HEAD\n+\tbranch. If `<branch>` was provided when the rebase operation was\n+\tstarted, then `HEAD` will be reset to `<branch>`. Otherwise `HEAD`\n \twill be reset to where it was when the rebase operation was\n \tstarted.\n \n --quit::\n-\tAbort the rebase operation but HEAD is not reset back to the\n+\tAbort the rebase operation but `HEAD` is not reset back to the\n \toriginal branch. The index and working tree are also left\n \tunchanged as a result. If a temporary stash entry was created\n-\tusing --autostash, it will be saved to the stash list.\n+\tusing `--autostash`, it will be saved to the stash list.\n \n --apply::\n \tUse applying strategies to rebase (calling `git-am`\n@@ -269,16 +269,16 @@ See also INCOMPATIBLE OPTIONS below.\n \tempty after rebasing (because they contain a subset of already\n \tupstream changes).  With drop (the default), commits that\n \tbecome empty are dropped.  With keep, such commits are kept.\n-\tWith ask (implied by --interactive), the rebase will halt when\n+\tWith ask (implied by `--interactive`), the rebase will halt when\n \tan empty commit is applied allowing you to choose whether to\n \tdrop it, edit files more, or just commit the empty changes.\n-\tOther options, like --exec, will use the default of drop unless\n-\t-i/--interactive is explicitly specified.\n+\tOther options, like `--exec`, will use the default of drop unless\n+\t`-i`/`--interactive` is explicitly specified.\n +\n-Note that commits which start empty are kept (unless --no-keep-empty\n+Note that commits which start empty are kept (unless `--no-keep-empty`\n is specified), and commits which are clean cherry-picks (as determined\n by `git log --cherry-mark ...`) are detected and dropped as a\n-preliminary step (unless --reapply-cherry-picks is passed).\n+preliminary step (unless `--reapply-cherry-picks` is passed).\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -287,7 +287,7 @@ See also INCOMPATIBLE OPTIONS below.\n \tDo not keep commits that start empty before the rebase\n \t(i.e. that do not change anything from its parent) in the\n \tresult.  The default is to keep commits which start empty,\n-\tsince creating such commits requires passing the --allow-empty\n+\tsince creating such commits requires passing the `--allow-empty`\n \toverride flag to `git commit`, signifying that a user is very\n \tintentionally creating such a commit and thus wants to keep\n \tit.\n@@ -299,7 +299,7 @@ flag exists as a convenient shortcut, such as for cases where external\n tools generate many empty commits and you want them all removed.\n +\n For commits which do not start empty but become empty after rebasing,\n-see the --empty flag.\n+see the `--empty` flag.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -314,7 +314,7 @@ See also INCOMPATIBLE OPTIONS below.\n By default (or if `--no-reapply-cherry-picks` is given), these commits\n will be automatically dropped.  Because this necessitates reading all\n upstream commits, this can be expensive in repos with a large number\n-of upstream commits that need to be read.  When using the `merge`\n+of upstream commits that need to be read.  When using the 'merge'\n backend, warnings will be issued for each dropped commit (unless\n `--quiet` is given). Advice will also be issued unless\n `advice.skippedCherryPicks` is set to false (see linkgit:git-config[1]).\n@@ -348,10 +348,10 @@ See also INCOMPATIBLE OPTIONS below.\n \tUsing merging strategies to rebase (default).\n +\n Note that a rebase merge works by replaying each commit from the working\n-branch on top of the <upstream> branch.  Because of this, when a merge\n+branch on top of the `<upstream>` branch.  Because of this, when a merge\n conflict happens, the side reported as 'ours' is the so-far rebased\n-series, starting with <upstream>, and 'theirs' is the working branch.  In\n-other words, the sides are swapped.\n+series, starting with `<upstream>`, and 'theirs' is the working branch.\n+In other words, the sides are swapped.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -360,9 +360,9 @@ See also INCOMPATIBLE OPTIONS below.\n \tUse the given merge strategy, instead of the default `ort`.\n \tThis implies `--merge`.\n +\n-Because 'git rebase' replays each commit from the working branch\n-on top of the <upstream> branch using the given strategy, using\n-the 'ours' strategy simply empties all patches from the <branch>,\n+Because `git rebase` replays each commit from the working branch\n+on top of the `<upstream>` branch using the given strategy, using\n+the `ours` strategy simply empties all patches from the `<branch>`,\n which makes little sense.\n +\n See also INCOMPATIBLE OPTIONS below.\n@@ -392,11 +392,11 @@ See also INCOMPATIBLE OPTIONS below.\n \n -q::\n --quiet::\n-\tBe quiet. Implies --no-stat.\n+\tBe quiet. Implies `--no-stat`.\n \n -v::\n --verbose::\n-\tBe verbose. Implies --stat.\n+\tBe verbose. Implies `--stat`.\n \n --stat::\n \tShow a diffstat of what changed upstream since the last rebase. The\n@@ -411,13 +411,13 @@ See also INCOMPATIBLE OPTIONS below.\n \n --verify::\n \tAllows the pre-rebase hook to run, which is the default.  This option can\n-\tbe used to override --no-verify.  See also linkgit:githooks[5].\n+\tbe used to override `--no-verify`.  See also linkgit:githooks[5].\n \n -C<n>::\n-\tEnsure at least <n> lines of surrounding context match before\n+\tEnsure at least `<n>` lines of surrounding context match before\n \tand after each change.  When fewer lines of surrounding\n \tcontext exist they all must match.  By default no context is\n-\tever ignored.  Implies --apply.\n+\tever ignored.  Implies `--apply`.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -436,21 +436,21 @@ details).\n \n --fork-point::\n --no-fork-point::\n-\tUse reflog to find a better common ancestor between <upstream>\n-\tand <branch> when calculating which commits have been\n-\tintroduced by <branch>.\n+\tUse reflog to find a better common ancestor between `<upstream>`\n+\tand `<branch>` when calculating which commits have been\n+\tintroduced by `<branch>`.\n +\n-When --fork-point is active, 'fork_point' will be used instead of\n-<upstream> to calculate the set of commits to rebase, where\n+When `--fork-point` is active, 'fork_point' will be used instead of\n+`<upstream>` to calculate the set of commits to rebase, where\n 'fork_point' is the result of `git merge-base --fork-point <upstream>\n <branch>` command (see linkgit:git-merge-base[1]).  If 'fork_point'\n-ends up being empty, the <upstream> will be used as a fallback.\n+ends up being empty, the `<upstream>` will be used as a fallback.\n +\n-If <upstream> is given on the command line, then the default is\n+If `<upstream>` is given on the command line, then the default is\n `--no-fork-point`, otherwise the default is `--fork-point`. See also\n `rebase.forkpoint` in linkgit:git-config[1].\n +\n-If your branch was based on <upstream> but <upstream> was rewound and\n+If your branch was based on `<upstream>` but `<upstream>` was rewound and\n your branch contains commits which were dropped, this option can be used\n with `--keep-base` in order to drop those commits from your branch.\n +\n@@ -458,24 +458,26 @@ See also INCOMPATIBLE OPTIONS below.\n \n --ignore-whitespace::\n \tIgnore whitespace differences when trying to reconcile\n-differences. Currently, each backend implements an approximation of\n-this behavior:\n+\tdifferences. Currently, each backend implements an approximation of\n+\tthis behavior:\n +\n-apply backend: When applying a patch, ignore changes in whitespace in\n-context lines. Unfortunately, this means that if the \"old\" lines being\n-replaced by the patch differ only in whitespace from the existing\n-file, you will get a merge conflict instead of a successful patch\n-application.\n+apply backend;;\n+\tWhen applying a patch, ignore changes in whitespace in context\n+\tlines. Unfortunately, this means that if the \"old\" lines being\n+\treplaced by the patch differ only in whitespace from the existing\n+\tfile, you will get a merge conflict instead of a successful patch\n+\tapplication.\n +\n-merge backend: Treat lines with only whitespace changes as unchanged\n-when merging. Unfortunately, this means that any patch hunks that were\n-intended to modify whitespace and nothing else will be dropped, even\n-if the other side had no changes that conflicted.\n+merge backend;;\n+\tTreat lines with only whitespace changes as unchanged when merging.\n+\tUnfortunately, this means that any patch hunks that were intended\n+\tto modify whitespace and nothing else will be dropped, even if the\n+\tother side had no changes that conflicted.\n \n --whitespace=<option>::\n-\tThis flag is passed to the 'git apply' program\n+\tThis flag is passed to the `git apply` program\n \t(see linkgit:git-apply[1]) that applies the patch.\n-\tImplies --apply.\n+\tImplies `--apply`.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -537,7 +539,7 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n -x <cmd>::\n --exec <cmd>::\n \tAppend \"exec <cmd>\" after each line creating a commit in the\n-\tfinal history. <cmd> will be interpreted as one or more shell\n+\tfinal history. `<cmd>` will be interpreted as one or more shell\n \tcommands. Any command that fails will interrupt the rebase,\n \twith exit code 1.\n +\n@@ -550,7 +552,7 @@ or by giving more than one `--exec`:\n +\n \tgit rebase -i --exec \"cmd1\" --exec \"cmd2\" --exec ...\n +\n-If `--autosquash` is used, \"exec\" lines will not be appended for\n+If `--autosquash` is used, `exec` lines will not be appended for\n the intermediate commits, and will only appear at the end of each\n squash/fixup series.\n +\n@@ -560,11 +562,12 @@ without an explicit `--interactive`.\n See also INCOMPATIBLE OPTIONS below.\n \n --root::\n-\tRebase all commits reachable from <branch>, instead of\n-\tlimiting them with an <upstream>.  This allows you to rebase\n-\tthe root commit(s) on a branch.  When used with --onto, it\n-\twill skip changes already contained in <newbase> (instead of\n-\t<upstream>) whereas without --onto it will operate on every change.\n+\tRebase all commits reachable from `<branch>`, instead of\n+\tlimiting them with an `<upstream>`.  This allows you to rebase\n+\tthe root commit(s) on a branch.  When used with `--onto`, it\n+\twill skip changes already contained in `<newbase>` (instead of\n+\t`<upstream>`) whereas without `--onto` it will operate on every\n+\tchange.\n +\n See also INCOMPATIBLE OPTIONS below.\n \n@@ -643,9 +646,9 @@ In addition, the following pairs of options are incompatible:\n BEHAVIORAL DIFFERENCES\n -----------------------\n \n-git rebase has two primary backends: apply and merge.  (The apply\n+`git rebase` has two primary backends: 'apply' and 'merge'.  (The 'apply'\n backend used to be known as the 'am' backend, but the name led to\n-confusion as it looks like a verb instead of a noun.  Also, the merge\n+confusion as it looks like a verb instead of a noun.  Also, the 'merge'\n backend used to be known as the interactive backend, but it is now\n used for non-interactive cases as well.  Both were renamed based on\n lower-level functionality that underpinned each.) There are some\n@@ -654,19 +657,19 @@ subtle differences in how these two backends behave:\n Empty commits\n ~~~~~~~~~~~~~\n \n-The apply backend unfortunately drops intentionally empty commits, i.e.\n+The 'apply' backend unfortunately drops intentionally empty commits, i.e.\n commits that started empty, though these are rare in practice.  It\n also drops commits that become empty and has no option for controlling\n this behavior.\n \n-The merge backend keeps intentionally empty commits by default (though\n-with -i they are marked as empty in the todo list editor, or they can\n-be dropped automatically with --no-keep-empty).\n+The 'merge' backend keeps intentionally empty commits by default (though\n+with `-i` they are marked as empty in the todo list editor, or they can\n+be dropped automatically with `--no-keep-empty`).\n \n Similar to the apply backend, by default the merge backend drops\n-commits that become empty unless -i/--interactive is specified (in\n+commits that become empty unless `-i`/`--interactive` is specified (in\n which case it stops and asks the user what to do).  The merge backend\n-also has an --empty={drop,keep,ask} option for changing the behavior\n+also has an `--empty={drop,keep,ask}` option for changing the behavior\n of handling commits that become empty.\n \n Directory rename detection\n@@ -674,20 +677,20 @@ Directory rename detection\n \n Due to the lack of accurate tree information (arising from\n constructing fake ancestors with the limited information available in\n-patches), directory rename detection is disabled in the apply backend.\n+patches), directory rename detection is disabled in the 'apply' backend.\n Disabled directory rename detection means that if one side of history\n renames a directory and the other adds new files to the old directory,\n then the new files will be left behind in the old directory without\n any warning at the time of rebasing that you may want to move these\n files into the new directory.\n \n-Directory rename detection works with the merge backend to provide you\n+Directory rename detection works with the 'merge' backend to provide you\n warnings in such cases.\n \n Context\n ~~~~~~~\n \n-The apply backend works by creating a sequence of patches (by calling\n+The 'apply' backend works by creating a sequence of patches (by calling\n `format-patch` internally), and then applying the patches in sequence\n (calling `am` internally).  Patches are composed of multiple hunks,\n each with line numbers, a context region, and the actual changes.  The\n@@ -698,11 +701,11 @@ order to apply the changes to the right lines.  However, if multiple\n areas of the code have the same surrounding lines of context, the\n wrong one can be picked.  There are real-world cases where this has\n caused commits to be reapplied incorrectly with no conflicts reported.\n-Setting diff.context to a larger value may prevent such types of\n+Setting `diff.context` to a larger value may prevent such types of\n problems, but increases the chance of spurious conflicts (since it\n will require more lines of matching context to apply).\n \n-The merge backend works with a full copy of each relevant file,\n+The 'merge' backend works with a full copy of each relevant file,\n insulating it from these types of problems.\n \n Labelling of conflicts markers\n@@ -710,30 +713,30 @@ Labelling of conflicts markers\n \n When there are content conflicts, the merge machinery tries to\n annotate each side's conflict markers with the commits where the\n-content came from.  Since the apply backend drops the original\n+content came from.  Since the 'apply' backend drops the original\n information about the rebased commits and their parents (and instead\n generates new fake commits based off limited information in the\n generated patches), those commits cannot be identified; instead it has\n-to fall back to a commit summary.  Also, when merge.conflictStyle is\n-set to diff3 or zdiff3, the apply backend will use \"constructed merge\n+to fall back to a commit summary.  Also, when `merge.conflictStyle` is\n+set to `diff3` or `zdiff3`, the 'apply' backend will use \"constructed merge\n base\" to label the content from the merge base, and thus provide no\n information about the merge base commit whatsoever.\n \n-The merge backend works with the full commits on both sides of history\n+The 'merge' backend works with the full commits on both sides of history\n and thus has no such limitations.\n \n Hooks\n ~~~~~\n \n-The apply backend has not traditionally called the post-commit hook,\n-while the merge backend has.  Both have called the post-checkout hook,\n-though the merge backend has squelched its output.  Further, both\n+The 'apply' backend has not traditionally called the post-commit hook,\n+while the 'merge' backend has.  Both have called the post-checkout hook,\n+though the 'merge' backend has squelched its output.  Further, both\n backends only call the post-checkout hook with the starting point\n commit of the rebase, not the intermediate commits nor the final\n commit.  In each case, the calling of these hooks was by accident of\n implementation rather than by design (both backends were originally\n implemented as shell scripts and happened to invoke other commands\n-like 'git checkout' or 'git commit' that would call the hooks).  Both\n+like `git checkout` or `git commit` that would call the hooks).  Both\n backends should have the same behavior, though it is not entirely\n clear which, if any, is correct.  We will likely make rebase stop\n calling either of these hooks in the future.\n@@ -741,10 +744,10 @@ calling either of these hooks in the future.\n Interruptability\n ~~~~~~~~~~~~~~~~\n \n-The apply backend has safety problems with an ill-timed interrupt; if\n+The 'apply' backend has safety problems with an ill-timed interrupt; if\n the user presses Ctrl-C at the wrong time to try to abort the rebase,\n the rebase can enter a state where it cannot be aborted with a\n-subsequent `git rebase --abort`.  The merge backend does not appear to\n+subsequent `git rebase --abort`.  The 'merge' backend does not appear to\n suffer from the same shortcoming.  (See\n https://lore.kernel.org/git/20200207132152.GC2868@szeder.dev/ for\n details.)\n@@ -756,8 +759,8 @@ When a conflict occurs while rebasing, rebase stops and asks the user\n to resolve.  Since the user may need to make notable changes while\n resolving conflicts, after conflicts are resolved and the user has run\n `git rebase --continue`, the rebase should open an editor and ask the\n-user to update the commit message.  The merge backend does this, while\n-the apply backend blindly applies the original commit message.\n+user to update the commit message.  The 'merge' backend does this, while\n+the 'apply' backend blindly applies the original commit message.\n \n Miscellaneous differences\n ~~~~~~~~~~~~~~~~~~~~~~~~~\n@@ -777,23 +780,23 @@ completeness:\n   them to stderr.\n \n * State directories: The two backends keep their state in different\n-  directories under .git/\n+  directories under `.git/`\n \n include::merge-strategies.txt[]\n \n NOTES\n -----\n \n-You should understand the implications of using 'git rebase' on a\n+You should understand the implications of using `git rebase` on a\n repository that you share.  See also RECOVERING FROM UPSTREAM REBASE\n below.\n \n-When the git-rebase command is run, it will first execute a \"pre-rebase\"\n-hook if one exists.  You can use this hook to do sanity checks and\n-reject the rebase if it isn't appropriate.  Please see the template\n-pre-rebase hook script for an example.\n+When the rebase is run, it will first execute a `pre-rebase` hook if one\n+exists.  You can use this hook to do sanity checks and reject the rebase\n+if it isn't appropriate.  Please see the template `pre-rebase` hook script\n+for an example.\n \n-Upon completion, <branch> will be the current branch.\n+Upon completion, `<branch>` will be the current branch.\n \n INTERACTIVE MODE\n ----------------\n@@ -848,7 +851,7 @@ not look at them but at the commit names (\"deadbee\" and \"fa1afe1\" in this\n example), so do not delete or edit the names.\n \n By replacing the command \"pick\" with the command \"edit\", you can tell\n-'git rebase' to stop after applying that commit, so that you can edit\n+`git rebase` to stop after applying that commit, so that you can edit\n the files and/or the commit message, amend the commit, and continue\n rebasing.\n \n@@ -876,14 +879,13 @@ commit, the message from the final one is used.  You can also use\n \"fixup -C\" to get the same behavior as \"fixup -c\" except without opening\n an editor.\n \n-\n-'git rebase' will stop when \"pick\" has been replaced with \"edit\" or\n+`git rebase` will stop when \"pick\" has been replaced with \"edit\" or\n when a command fails due to merge errors. When you are done editing\n and/or resolving conflicts you can continue with `git rebase --continue`.\n \n For example, if you want to reorder the last 5 commits, such that what\n-was HEAD~4 becomes the new HEAD. To achieve that, you would call\n-'git rebase' like this:\n+was `HEAD~4` becomes the new `HEAD`. To achieve that, you would call\n+`git rebase` like this:\n \n ----------------------\n $ git rebase -i HEAD~5\n@@ -903,7 +905,7 @@ like this:\n ------------------\n \n Suppose you want to rebase the side branch starting at \"A\" to \"Q\". Make\n-sure that the current HEAD is \"B\", and call\n+sure that the current `HEAD` is \"B\", and call\n \n -----------------------------\n $ git rebase -i -r --onto Q O\n@@ -956,23 +958,23 @@ SPLITTING COMMITS\n -----------------\n \n In interactive mode, you can mark commits with the action \"edit\".  However,\n-this does not necessarily mean that 'git rebase' expects the result of this\n+this does not necessarily mean that `git rebase` expects the result of this\n edit to be exactly one commit.  Indeed, you can undo the commit, or you can\n add other commits.  This can be used to split a commit into two:\n \n - Start an interactive rebase with `git rebase -i <commit>^`, where\n-  <commit> is the commit you want to split.  In fact, any commit range\n+  `<commit>` is the commit you want to split.  In fact, any commit range\n   will do, as long as it contains that commit.\n \n - Mark the commit you want to split with the action \"edit\".\n \n - When it comes to editing that commit, execute `git reset HEAD^`.  The\n-  effect is that the HEAD is rewound by one, and the index follows suit.\n+  effect is that the `HEAD` is rewound by one, and the index follows suit.\n   However, the working tree stays the same.\n \n - Now add the changes to the index that you want to have in the first\n   commit.  You can use `git add` (possibly interactively) or\n-  'git gui' (or both) to do that.\n+  `git gui` (or both) to do that.\n \n - Commit the now-current index with whatever commit message is appropriate\n   now.\n@@ -983,7 +985,7 @@ add other commits.  This can be used to split a commit into two:\n \n If you are not absolutely sure that the intermediate revisions are\n consistent (they compile, pass the testsuite, etc.) you should use\n-'git stash' to stash away the not-yet-committed changes\n+`git stash` to stash away the not-yet-committed changes\n after each commit, test, and amend the commit if fixes are necessary.\n \n \n@@ -1087,12 +1089,12 @@ NOTE: While an \"easy case recovery\" sometimes appears to be successful\n       example, a commit that was removed via `git rebase\n       --interactive` will be **resurrected**!\n \n-The idea is to manually tell 'git rebase' \"where the old 'subsystem'\n+The idea is to manually tell `git rebase` \"where the old 'subsystem'\n ended and your 'topic' began\", that is, what the old merge base\n between them was.  You will have to find a way to name the last commit\n of the old 'subsystem', for example:\n \n-* With the 'subsystem' reflog: after 'git fetch', the old tip of\n+* With the 'subsystem' reflog: after `git fetch`, the old tip of\n   'subsystem' is at `subsystem@{1}`.  Subsequent fetches will\n   increase the number.  (See linkgit:git-reflog[1].)\n \n\nbase-commit: 9bef0b1e6ec371e786c2fba3edcc06ad040a536c\n-- \ngitgitgadget\n"},{"id":"458098","messageId":"050620c5-6096-5abf-1723-1367f05b7d35@gmail.com","threadId":"58073","inReplyTo":"pull.1270.v3.git.1656508868146.gitgitgadget@gmail.com","subject":"Re: [PATCH v3] git-rebase.txt: use back-ticks consistently","fromName":"Phillip Wood","fromEmail":"phillip.wood123@gmail.com","sentAt":"2022-06-29T15:21:35Z","receivedAt":"2022-06-29T15:21:44Z","isPatch":true,"sender":{"key":"phillip.wood@dunelm.org.uk","avatar":null},"body":"Hi Stolee\n\nThe range-diff looks fine to me\n\nThanks\n\nPhillip\n\nOn 29/06/2022 14:21, Derrick Stolee via GitGitGadget wrote:\n> From: Derrick Stolee <derrickstolee@github.com>\n> \n> While inspecting the 'git rebase' documentation, I noticed that it is\n> inconsistent with how it uses back-ticks (or other punctuation) for\n> identifying Git commands, command-line arguments, or values for those\n> arguments.\n> \n> Sometimes, an argument (like '--interactive') would appear without any\n> punctuation, causing the argument to not have any special formatting.\n> Other times, arguments or 'git rebase' itself would have single-quotes\n> giving a bold look (in the HTML documentation at least).\n> \n> By consistently using back-ticks, these types of strings appear in a\n> monospace font with special highlighting to appear more clearly as text\n> that exists in a command-line invocation of a Git command.\n> \n> This rather-large diff is the result of scanning git-rebase.txt and\n> adding back-ticks as appropriate. Some are adding back-ticks where there\n> was no punctuation. Others are replacing single quotes.\n> \n> There are also a few minor cleanups in the process, including those\n> found by reviewers.\n> \n> Helped-by: Phillip Wood <phillip.wood123@gmail.com>\n> Helped-by: Junio C Hamano <gitster@pobox.com>\n> Signed-off-by: Derrick Stolee <derrickstolee@github.com>\n> ---\n>      git-rebase.txt: use back-ticks consistently\n>      \n>      While I noticed this inconsistency when looking at git rebase as part of\n>      the git rebase --update-refs work, I didn't know the best way to update\n>      the document from start to finish.\n>      \n>      Feedback tells me that splitting this patch isn't worth it.\n>      \n>      \n>      Updates in v3\n>      =============\n>      \n>       * A much smaller round of edits, but huge thanks to Junio and Phillip\n>         for a careful attention to detail.\n>       * Use 'am' over am.\n>       * Don't use colons in subsection headings.\n>       * Fix a commit message typo.\n>      \n>      \n>      Updates in v2\n>      =============\n>      \n>       * The 'apply' and 'merge' backends are now quoted with single quotes\n>         instead of back-ticks. (Phrases such as \"the merge command\"\n>         describing the todo file still use back-ticks.)\n>       * The pre-rebase hook now has back-ticks.\n>       * An unnecessary comma is removed.\n>       * When talking about 'ours' and 'theirs' as \"sides\" of a rebase, use\n>         single quotes. Use back-ticks only for the ours strategy.\n>       * A bulleted list is converted to use \";;\" syntax.\n>      \n>      Thanks, -Stolee\n> \n> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1270%2Fderrickstolee%2Frebase-docs-v3\n> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1270/derrickstolee/rebase-docs-v3\n> Pull-Request: https://github.com/gitgitgadget/git/pull/1270\n> \n> Range-diff vs v2:\n> \n>   1:  02983cdb79d ! 1:  9c59d120c14 git-rebase.txt: use back-ticks consistently\n>       @@ Commit message\n>            was no punctuation. Others are replacing single quotes.\n>        \n>            There are also a few minor cleanups in the process, including those\n>       -    found by reviwers.\n>       +    found by reviewers.\n>        \n>            Helped-by: Phillip Wood <phillip.wood123@gmail.com>\n>            Helped-by: Junio C Hamano <gitster@pobox.com>\n>       @@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n>        -replaced by the patch differ only in whitespace from the existing\n>        -file, you will get a merge conflict instead of a successful patch\n>        -application.\n>       -+apply backend:;;\n>       ++apply backend;;\n>        +\tWhen applying a patch, ignore changes in whitespace in context\n>        +\tlines. Unfortunately, this means that if the \"old\" lines being\n>        +\treplaced by the patch differ only in whitespace from the existing\n>       @@ Documentation/git-rebase.txt: See also INCOMPATIBLE OPTIONS below.\n>        -when merging. Unfortunately, this means that any patch hunks that were\n>        -intended to modify whitespace and nothing else will be dropped, even\n>        -if the other side had no changes that conflicted.\n>       -+merge backend:;;\n>       ++merge backend;;\n>        +\tTreat lines with only whitespace changes as unchanged when merging.\n>        +\tUnfortunately, this means that any patch hunks that were intended\n>        +\tto modify whitespace and nothing else will be dropped, even if the\n>       @@ Documentation/git-rebase.txt: In addition, the following pairs of options are in\n>         -----------------------\n>         \n>        -git rebase has two primary backends: apply and merge.  (The apply\n>       --backend used to be known as the 'am' backend, but the name led to\n>       --confusion as it looks like a verb instead of a noun.  Also, the merge\n>        +`git rebase` has two primary backends: 'apply' and 'merge'.  (The 'apply'\n>       -+backend used to be known as the `am` backend, but the name led to\n>       + backend used to be known as the 'am' backend, but the name led to\n>       +-confusion as it looks like a verb instead of a noun.  Also, the merge\n>        +confusion as it looks like a verb instead of a noun.  Also, the 'merge'\n>         backend used to be known as the interactive backend, but it is now\n>         used for non-interactive cases as well.  Both were renamed based on\n> \n> \n>   Documentation/git-rebase.txt | 242 ++++++++++++++++++-----------------\n>   1 file changed, 122 insertions(+), 120 deletions(-)\n> \n> diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt\n> index 262fb01aec0..a872ab0fbd1 100644\n> --- a/Documentation/git-rebase.txt\n> +++ b/Documentation/git-rebase.txt\n> @@ -16,40 +16,40 @@ SYNOPSIS\n>   \n>   DESCRIPTION\n>   -----------\n> -If <branch> is specified, 'git rebase' will perform an automatic\n> +If `<branch>` is specified, `git rebase` will perform an automatic\n>   `git switch <branch>` before doing anything else.  Otherwise\n>   it remains on the current branch.\n>   \n> -If <upstream> is not specified, the upstream configured in\n> -branch.<name>.remote and branch.<name>.merge options will be used (see\n> +If `<upstream>` is not specified, the upstream configured in\n> +`branch.<name>.remote` and `branch.<name>.merge` options will be used (see\n>   linkgit:git-config[1] for details) and the `--fork-point` option is\n>   assumed.  If you are currently not on any branch or if the current\n>   branch does not have a configured upstream, the rebase will abort.\n>   \n>   All changes made by commits in the current branch but that are not\n> -in <upstream> are saved to a temporary area.  This is the same set\n> +in `<upstream>` are saved to a temporary area.  This is the same set\n>   of commits that would be shown by `git log <upstream>..HEAD`; or by\n>   `git log 'fork_point'..HEAD`, if `--fork-point` is active (see the\n>   description on `--fork-point` below); or by `git log HEAD`, if the\n>   `--root` option is specified.\n>   \n> -The current branch is reset to <upstream>, or <newbase> if the\n> ---onto option was supplied.  This has the exact same effect as\n> -`git reset --hard <upstream>` (or <newbase>).  ORIG_HEAD is set\n> +The current branch is reset to `<upstream>` or `<newbase>` if the\n> +`--onto` option was supplied.  This has the exact same effect as\n> +`git reset --hard <upstream>` (or `<newbase>`). `ORIG_HEAD` is set\n>   to point at the tip of the branch before the reset.\n>   \n>   The commits that were previously saved into the temporary area are\n>   then reapplied to the current branch, one by one, in order. Note that\n> -any commits in HEAD which introduce the same textual changes as a commit\n> -in HEAD..<upstream> are omitted (i.e., a patch already accepted upstream\n> +any commits in `HEAD` which introduce the same textual changes as a commit\n> +in `HEAD..<upstream>` are omitted (i.e., a patch already accepted upstream\n>   with a different commit message or timestamp will be skipped).\n>   \n>   It is possible that a merge failure will prevent this process from being\n>   completely automatic.  You will have to resolve any such merge failure\n>   and run `git rebase --continue`.  Another option is to bypass the commit\n>   that caused the merge failure with `git rebase --skip`.  To check out the\n> -original <branch> and remove the .git/rebase-apply working files, use the\n> -command `git rebase --abort` instead.\n> +original `<branch>` and remove the `.git/rebase-apply` working files, use\n> +the command `git rebase --abort` instead.\n>   \n>   Assume the following history exists and the current branch is \"topic\":\n>   \n> @@ -79,7 +79,7 @@ remain the checked-out branch.\n>   \n>   If the upstream branch already contains a change you have made (e.g.,\n>   because you mailed a patch which was applied upstream), then that commit\n> -will be skipped and warnings will be issued (if the `merge` backend is\n> +will be skipped and warnings will be issued (if the 'merge' backend is\n>   used).  For example, running `git rebase master` on the following\n>   history (in which `A'` and `A` introduce the same set of changes, but\n>   have different committer information):\n> @@ -176,11 +176,11 @@ would result in the removal of commits F and G:\n>   ------------\n>   \n>   This is useful if F and G were flawed in some way, or should not be\n> -part of topicA.  Note that the argument to --onto and the <upstream>\n> +part of topicA.  Note that the argument to `--onto` and the `<upstream>`\n>   parameter can be any valid commit-ish.\n>   \n> -In case of conflict, 'git rebase' will stop at the first problematic commit\n> -and leave conflict markers in the tree.  You can use 'git diff' to locate\n> +In case of conflict, `git rebase` will stop at the first problematic commit\n> +and leave conflict markers in the tree.  You can use `git diff` to locate\n>   the markers (<<<<<<) and make edits to resolve the conflict.  For each\n>   file you edit, you need to tell Git that the conflict has been resolved,\n>   typically this would be done with\n> @@ -205,8 +205,8 @@ OPTIONS\n>   -------\n>   --onto <newbase>::\n>   \tStarting point at which to create the new commits. If the\n> -\t--onto option is not specified, the starting point is\n> -\t<upstream>.  May be any valid commit, and not just an\n> +\t`--onto` option is not specified, the starting point is\n> +\t`<upstream>`.  May be any valid commit, and not just an\n>   \texisting branch name.\n>   +\n>   As a special case, you may use \"A\\...B\" as a shortcut for the\n> @@ -215,19 +215,19 @@ leave out at most one of A and B, in which case it defaults to HEAD.\n>   \n>   --keep-base::\n>   \tSet the starting point at which to create the new commits to the\n> -\tmerge base of <upstream> and <branch>. Running\n> -\t'git rebase --keep-base <upstream> <branch>' is equivalent to\n> +\tmerge base of `<upstream>` and `<branch>`. Running\n> +\t`git rebase --keep-base <upstream> <branch>` is equivalent to\n>   \trunning\n> -\t'git rebase --onto <upstream>...<branch> <upstream> <branch>'.\n> +\t`git rebase --onto <upstream>...<branch> <upstream> <branch>`.\n>   +\n>   This option is useful in the case where one is developing a feature on\n>   top of an upstream branch. While the feature is being worked on, the\n>   upstream branch may advance and it may not be the best idea to keep\n>   rebasing on top of the upstream but to keep the base commit as-is.\n>   +\n> -Although both this option and --fork-point find the merge base between\n> -<upstream> and <branch>, this option uses the merge base as the _starting\n> -point_ on which new commits will be created, whereas --fork-point uses\n> +Although both this option and `--fork-point` find the merge base between\n> +`<upstream>` and `<branch>`, this option uses the merge base as the _starting\n> +point_ on which new commits will be created, whereas `--fork-point` uses\n>   the merge base to determine the _set of commits_ which will be rebased.\n>   +\n>   See also INCOMPATIBLE OPTIONS below.\n> @@ -238,23 +238,23 @@ See also INCOMPATIBLE OPTIONS below.\n>   \tupstream for the current branch.\n>   \n>   <branch>::\n> -\tWorking branch; defaults to HEAD.\n> +\tWorking branch; defaults to `HEAD`.\n>   \n>   --continue::\n>   \tRestart the rebasing process after having resolved a merge conflict.\n>   \n>   --abort::\n>   \tAbort the rebase operation and reset HEAD to the original\n> -\tbranch. If <branch> was provided when the rebase operation was\n> -\tstarted, then HEAD will be reset to <branch>. Otherwise HEAD\n> +\tbranch. If `<branch>` was provided when the rebase operation was\n> +\tstarted, then `HEAD` will be reset to `<branch>`. Otherwise `HEAD`\n>   \twill be reset to where it was when the rebase operation was\n>   \tstarted.\n>   \n>   --quit::\n> -\tAbort the rebase operation but HEAD is not reset back to the\n> +\tAbort the rebase operation but `HEAD` is not reset back to the\n>   \toriginal branch. The index and working tree are also left\n>   \tunchanged as a result. If a temporary stash entry was created\n> -\tusing --autostash, it will be saved to the stash list.\n> +\tusing `--autostash`, it will be saved to the stash list.\n>   \n>   --apply::\n>   \tUse applying strategies to rebase (calling `git-am`\n> @@ -269,16 +269,16 @@ See also INCOMPATIBLE OPTIONS below.\n>   \tempty after rebasing (because they contain a subset of already\n>   \tupstream changes).  With drop (the default), commits that\n>   \tbecome empty are dropped.  With keep, such commits are kept.\n> -\tWith ask (implied by --interactive), the rebase will halt when\n> +\tWith ask (implied by `--interactive`), the rebase will halt when\n>   \tan empty commit is applied allowing you to choose whether to\n>   \tdrop it, edit files more, or just commit the empty changes.\n> -\tOther options, like --exec, will use the default of drop unless\n> -\t-i/--interactive is explicitly specified.\n> +\tOther options, like `--exec`, will use the default of drop unless\n> +\t`-i`/`--interactive` is explicitly specified.\n>   +\n> -Note that commits which start empty are kept (unless --no-keep-empty\n> +Note that commits which start empty are kept (unless `--no-keep-empty`\n>   is specified), and commits which are clean cherry-picks (as determined\n>   by `git log --cherry-mark ...`) are detected and dropped as a\n> -preliminary step (unless --reapply-cherry-picks is passed).\n> +preliminary step (unless `--reapply-cherry-picks` is passed).\n>   +\n>   See also INCOMPATIBLE OPTIONS below.\n>   \n> @@ -287,7 +287,7 @@ See also INCOMPATIBLE OPTIONS below.\n>   \tDo not keep commits that start empty before the rebase\n>   \t(i.e. that do not change anything from its parent) in the\n>   \tresult.  The default is to keep commits which start empty,\n> -\tsince creating such commits requires passing the --allow-empty\n> +\tsince creating such commits requires passing the `--allow-empty`\n>   \toverride flag to `git commit`, signifying that a user is very\n>   \tintentionally creating such a commit and thus wants to keep\n>   \tit.\n> @@ -299,7 +299,7 @@ flag exists as a convenient shortcut, such as for cases where external\n>   tools generate many empty commits and you want them all removed.\n>   +\n>   For commits which do not start empty but become empty after rebasing,\n> -see the --empty flag.\n> +see the `--empty` flag.\n>   +\n>   See also INCOMPATIBLE OPTIONS below.\n>   \n> @@ -314,7 +314,7 @@ See also INCOMPATIBLE OPTIONS below.\n>   By default (or if `--no-reapply-cherry-picks` is given), these commits\n>   will be automatically dropped.  Because this necessitates reading all\n>   upstream commits, this can be expensive in repos with a large number\n> -of upstream commits that need to be read.  When using the `merge`\n> +of upstream commits that need to be read.  When using the 'merge'\n>   backend, warnings will be issued for each dropped commit (unless\n>   `--quiet` is given). Advice will also be issued unless\n>   `advice.skippedCherryPicks` is set to false (see linkgit:git-config[1]).\n> @@ -348,10 +348,10 @@ See also INCOMPATIBLE OPTIONS below.\n>   \tUsing merging strategies to rebase (default).\n>   +\n>   Note that a rebase merge works by replaying each commit from the working\n> -branch on top of the <upstream> branch.  Because of this, when a merge\n> +branch on top of the `<upstream>` branch.  Because of this, when a merge\n>   conflict happens, the side reported as 'ours' is the so-far rebased\n> -series, starting with <upstream>, and 'theirs' is the working branch.  In\n> -other words, the sides are swapped.\n> +series, starting with `<upstream>`, and 'theirs' is the working branch.\n> +In other words, the sides are swapped.\n>   +\n>   See also INCOMPATIBLE OPTIONS below.\n>   \n> @@ -360,9 +360,9 @@ See also INCOMPATIBLE OPTIONS below.\n>   \tUse the given merge strategy, instead of the default `ort`.\n>   \tThis implies `--merge`.\n>   +\n> -Because 'git rebase' replays each commit from the working branch\n> -on top of the <upstream> branch using the given strategy, using\n> -the 'ours' strategy simply empties all patches from the <branch>,\n> +Because `git rebase` replays each commit from the working branch\n> +on top of the `<upstream>` branch using the given strategy, using\n> +the `ours` strategy simply empties all patches from the `<branch>`,\n>   which makes little sense.\n>   +\n>   See also INCOMPATIBLE OPTIONS below.\n> @@ -392,11 +392,11 @@ See also INCOMPATIBLE OPTIONS below.\n>   \n>   -q::\n>   --quiet::\n> -\tBe quiet. Implies --no-stat.\n> +\tBe quiet. Implies `--no-stat`.\n>   \n>   -v::\n>   --verbose::\n> -\tBe verbose. Implies --stat.\n> +\tBe verbose. Implies `--stat`.\n>   \n>   --stat::\n>   \tShow a diffstat of what changed upstream since the last rebase. The\n> @@ -411,13 +411,13 @@ See also INCOMPATIBLE OPTIONS below.\n>   \n>   --verify::\n>   \tAllows the pre-rebase hook to run, which is the default.  This option can\n> -\tbe used to override --no-verify.  See also linkgit:githooks[5].\n> +\tbe used to override `--no-verify`.  See also linkgit:githooks[5].\n>   \n>   -C<n>::\n> -\tEnsure at least <n> lines of surrounding context match before\n> +\tEnsure at least `<n>` lines of surrounding context match before\n>   \tand after each change.  When fewer lines of surrounding\n>   \tcontext exist they all must match.  By default no context is\n> -\tever ignored.  Implies --apply.\n> +\tever ignored.  Implies `--apply`.\n>   +\n>   See also INCOMPATIBLE OPTIONS below.\n>   \n> @@ -436,21 +436,21 @@ details).\n>   \n>   --fork-point::\n>   --no-fork-point::\n> -\tUse reflog to find a better common ancestor between <upstream>\n> -\tand <branch> when calculating which commits have been\n> -\tintroduced by <branch>.\n> +\tUse reflog to find a better common ancestor between `<upstream>`\n> +\tand `<branch>` when calculating which commits have been\n> +\tintroduced by `<branch>`.\n>   +\n> -When --fork-point is active, 'fork_point' will be used instead of\n> -<upstream> to calculate the set of commits to rebase, where\n> +When `--fork-point` is active, 'fork_point' will be used instead of\n> +`<upstream>` to calculate the set of commits to rebase, where\n>   'fork_point' is the result of `git merge-base --fork-point <upstream>\n>   <branch>` command (see linkgit:git-merge-base[1]).  If 'fork_point'\n> -ends up being empty, the <upstream> will be used as a fallback.\n> +ends up being empty, the `<upstream>` will be used as a fallback.\n>   +\n> -If <upstream> is given on the command line, then the default is\n> +If `<upstream>` is given on the command line, then the default is\n>   `--no-fork-point`, otherwise the default is `--fork-point`. See also\n>   `rebase.forkpoint` in linkgit:git-config[1].\n>   +\n> -If your branch was based on <upstream> but <upstream> was rewound and\n> +If your branch was based on `<upstream>` but `<upstream>` was rewound and\n>   your branch contains commits which were dropped, this option can be used\n>   with `--keep-base` in order to drop those commits from your branch.\n>   +\n> @@ -458,24 +458,26 @@ See also INCOMPATIBLE OPTIONS below.\n>   \n>   --ignore-whitespace::\n>   \tIgnore whitespace differences when trying to reconcile\n> -differences. Currently, each backend implements an approximation of\n> -this behavior:\n> +\tdifferences. Currently, each backend implements an approximation of\n> +\tthis behavior:\n>   +\n> -apply backend: When applying a patch, ignore changes in whitespace in\n> -context lines. Unfortunately, this means that if the \"old\" lines being\n> -replaced by the patch differ only in whitespace from the existing\n> -file, you will get a merge conflict instead of a successful patch\n> -application.\n> +apply backend;;\n> +\tWhen applying a patch, ignore changes in whitespace in context\n> +\tlines. Unfortunately, this means that if the \"old\" lines being\n> +\treplaced by the patch differ only in whitespace from the existing\n> +\tfile, you will get a merge conflict instead of a successful patch\n> +\tapplication.\n>   +\n> -merge backend: Treat lines with only whitespace changes as unchanged\n> -when merging. Unfortunately, this means that any patch hunks that were\n> -intended to modify whitespace and nothing else will be dropped, even\n> -if the other side had no changes that conflicted.\n> +merge backend;;\n> +\tTreat lines with only whitespace changes as unchanged when merging.\n> +\tUnfortunately, this means that any patch hunks that were intended\n> +\tto modify whitespace and nothing else will be dropped, even if the\n> +\tother side had no changes that conflicted.\n>   \n>   --whitespace=<option>::\n> -\tThis flag is passed to the 'git apply' program\n> +\tThis flag is passed to the `git apply` program\n>   \t(see linkgit:git-apply[1]) that applies the patch.\n> -\tImplies --apply.\n> +\tImplies `--apply`.\n>   +\n>   See also INCOMPATIBLE OPTIONS below.\n>   \n> @@ -537,7 +539,7 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n>   -x <cmd>::\n>   --exec <cmd>::\n>   \tAppend \"exec <cmd>\" after each line creating a commit in the\n> -\tfinal history. <cmd> will be interpreted as one or more shell\n> +\tfinal history. `<cmd>` will be interpreted as one or more shell\n>   \tcommands. Any command that fails will interrupt the rebase,\n>   \twith exit code 1.\n>   +\n> @@ -550,7 +552,7 @@ or by giving more than one `--exec`:\n>   +\n>   \tgit rebase -i --exec \"cmd1\" --exec \"cmd2\" --exec ...\n>   +\n> -If `--autosquash` is used, \"exec\" lines will not be appended for\n> +If `--autosquash` is used, `exec` lines will not be appended for\n>   the intermediate commits, and will only appear at the end of each\n>   squash/fixup series.\n>   +\n> @@ -560,11 +562,12 @@ without an explicit `--interactive`.\n>   See also INCOMPATIBLE OPTIONS below.\n>   \n>   --root::\n> -\tRebase all commits reachable from <branch>, instead of\n> -\tlimiting them with an <upstream>.  This allows you to rebase\n> -\tthe root commit(s) on a branch.  When used with --onto, it\n> -\twill skip changes already contained in <newbase> (instead of\n> -\t<upstream>) whereas without --onto it will operate on every change.\n> +\tRebase all commits reachable from `<branch>`, instead of\n> +\tlimiting them with an `<upstream>`.  This allows you to rebase\n> +\tthe root commit(s) on a branch.  When used with `--onto`, it\n> +\twill skip changes already contained in `<newbase>` (instead of\n> +\t`<upstream>`) whereas without `--onto` it will operate on every\n> +\tchange.\n>   +\n>   See also INCOMPATIBLE OPTIONS below.\n>   \n> @@ -643,9 +646,9 @@ In addition, the following pairs of options are incompatible:\n>   BEHAVIORAL DIFFERENCES\n>   -----------------------\n>   \n> -git rebase has two primary backends: apply and merge.  (The apply\n> +`git rebase` has two primary backends: 'apply' and 'merge'.  (The 'apply'\n>   backend used to be known as the 'am' backend, but the name led to\n> -confusion as it looks like a verb instead of a noun.  Also, the merge\n> +confusion as it looks like a verb instead of a noun.  Also, the 'merge'\n>   backend used to be known as the interactive backend, but it is now\n>   used for non-interactive cases as well.  Both were renamed based on\n>   lower-level functionality that underpinned each.) There are some\n> @@ -654,19 +657,19 @@ subtle differences in how these two backends behave:\n>   Empty commits\n>   ~~~~~~~~~~~~~\n>   \n> -The apply backend unfortunately drops intentionally empty commits, i.e.\n> +The 'apply' backend unfortunately drops intentionally empty commits, i.e.\n>   commits that started empty, though these are rare in practice.  It\n>   also drops commits that become empty and has no option for controlling\n>   this behavior.\n>   \n> -The merge backend keeps intentionally empty commits by default (though\n> -with -i they are marked as empty in the todo list editor, or they can\n> -be dropped automatically with --no-keep-empty).\n> +The 'merge' backend keeps intentionally empty commits by default (though\n> +with `-i` they are marked as empty in the todo list editor, or they can\n> +be dropped automatically with `--no-keep-empty`).\n>   \n>   Similar to the apply backend, by default the merge backend drops\n> -commits that become empty unless -i/--interactive is specified (in\n> +commits that become empty unless `-i`/`--interactive` is specified (in\n>   which case it stops and asks the user what to do).  The merge backend\n> -also has an --empty={drop,keep,ask} option for changing the behavior\n> +also has an `--empty={drop,keep,ask}` option for changing the behavior\n>   of handling commits that become empty.\n>   \n>   Directory rename detection\n> @@ -674,20 +677,20 @@ Directory rename detection\n>   \n>   Due to the lack of accurate tree information (arising from\n>   constructing fake ancestors with the limited information available in\n> -patches), directory rename detection is disabled in the apply backend.\n> +patches), directory rename detection is disabled in the 'apply' backend.\n>   Disabled directory rename detection means that if one side of history\n>   renames a directory and the other adds new files to the old directory,\n>   then the new files will be left behind in the old directory without\n>   any warning at the time of rebasing that you may want to move these\n>   files into the new directory.\n>   \n> -Directory rename detection works with the merge backend to provide you\n> +Directory rename detection works with the 'merge' backend to provide you\n>   warnings in such cases.\n>   \n>   Context\n>   ~~~~~~~\n>   \n> -The apply backend works by creating a sequence of patches (by calling\n> +The 'apply' backend works by creating a sequence of patches (by calling\n>   `format-patch` internally), and then applying the patches in sequence\n>   (calling `am` internally).  Patches are composed of multiple hunks,\n>   each with line numbers, a context region, and the actual changes.  The\n> @@ -698,11 +701,11 @@ order to apply the changes to the right lines.  However, if multiple\n>   areas of the code have the same surrounding lines of context, the\n>   wrong one can be picked.  There are real-world cases where this has\n>   caused commits to be reapplied incorrectly with no conflicts reported.\n> -Setting diff.context to a larger value may prevent such types of\n> +Setting `diff.context` to a larger value may prevent such types of\n>   problems, but increases the chance of spurious conflicts (since it\n>   will require more lines of matching context to apply).\n>   \n> -The merge backend works with a full copy of each relevant file,\n> +The 'merge' backend works with a full copy of each relevant file,\n>   insulating it from these types of problems.\n>   \n>   Labelling of conflicts markers\n> @@ -710,30 +713,30 @@ Labelling of conflicts markers\n>   \n>   When there are content conflicts, the merge machinery tries to\n>   annotate each side's conflict markers with the commits where the\n> -content came from.  Since the apply backend drops the original\n> +content came from.  Since the 'apply' backend drops the original\n>   information about the rebased commits and their parents (and instead\n>   generates new fake commits based off limited information in the\n>   generated patches), those commits cannot be identified; instead it has\n> -to fall back to a commit summary.  Also, when merge.conflictStyle is\n> -set to diff3 or zdiff3, the apply backend will use \"constructed merge\n> +to fall back to a commit summary.  Also, when `merge.conflictStyle` is\n> +set to `diff3` or `zdiff3`, the 'apply' backend will use \"constructed merge\n>   base\" to label the content from the merge base, and thus provide no\n>   information about the merge base commit whatsoever.\n>   \n> -The merge backend works with the full commits on both sides of history\n> +The 'merge' backend works with the full commits on both sides of history\n>   and thus has no such limitations.\n>   \n>   Hooks\n>   ~~~~~\n>   \n> -The apply backend has not traditionally called the post-commit hook,\n> -while the merge backend has.  Both have called the post-checkout hook,\n> -though the merge backend has squelched its output.  Further, both\n> +The 'apply' backend has not traditionally called the post-commit hook,\n> +while the 'merge' backend has.  Both have called the post-checkout hook,\n> +though the 'merge' backend has squelched its output.  Further, both\n>   backends only call the post-checkout hook with the starting point\n>   commit of the rebase, not the intermediate commits nor the final\n>   commit.  In each case, the calling of these hooks was by accident of\n>   implementation rather than by design (both backends were originally\n>   implemented as shell scripts and happened to invoke other commands\n> -like 'git checkout' or 'git commit' that would call the hooks).  Both\n> +like `git checkout` or `git commit` that would call the hooks).  Both\n>   backends should have the same behavior, though it is not entirely\n>   clear which, if any, is correct.  We will likely make rebase stop\n>   calling either of these hooks in the future.\n> @@ -741,10 +744,10 @@ calling either of these hooks in the future.\n>   Interruptability\n>   ~~~~~~~~~~~~~~~~\n>   \n> -The apply backend has safety problems with an ill-timed interrupt; if\n> +The 'apply' backend has safety problems with an ill-timed interrupt; if\n>   the user presses Ctrl-C at the wrong time to try to abort the rebase,\n>   the rebase can enter a state where it cannot be aborted with a\n> -subsequent `git rebase --abort`.  The merge backend does not appear to\n> +subsequent `git rebase --abort`.  The 'merge' backend does not appear to\n>   suffer from the same shortcoming.  (See\n>   https://lore.kernel.org/git/20200207132152.GC2868@szeder.dev/ for\n>   details.)\n> @@ -756,8 +759,8 @@ When a conflict occurs while rebasing, rebase stops and asks the user\n>   to resolve.  Since the user may need to make notable changes while\n>   resolving conflicts, after conflicts are resolved and the user has run\n>   `git rebase --continue`, the rebase should open an editor and ask the\n> -user to update the commit message.  The merge backend does this, while\n> -the apply backend blindly applies the original commit message.\n> +user to update the commit message.  The 'merge' backend does this, while\n> +the 'apply' backend blindly applies the original commit message.\n>   \n>   Miscellaneous differences\n>   ~~~~~~~~~~~~~~~~~~~~~~~~~\n> @@ -777,23 +780,23 @@ completeness:\n>     them to stderr.\n>   \n>   * State directories: The two backends keep their state in different\n> -  directories under .git/\n> +  directories under `.git/`\n>   \n>   include::merge-strategies.txt[]\n>   \n>   NOTES\n>   -----\n>   \n> -You should understand the implications of using 'git rebase' on a\n> +You should understand the implications of using `git rebase` on a\n>   repository that you share.  See also RECOVERING FROM UPSTREAM REBASE\n>   below.\n>   \n> -When the git-rebase command is run, it will first execute a \"pre-rebase\"\n> -hook if one exists.  You can use this hook to do sanity checks and\n> -reject the rebase if it isn't appropriate.  Please see the template\n> -pre-rebase hook script for an example.\n> +When the rebase is run, it will first execute a `pre-rebase` hook if one\n> +exists.  You can use this hook to do sanity checks and reject the rebase\n> +if it isn't appropriate.  Please see the template `pre-rebase` hook script\n> +for an example.\n>   \n> -Upon completion, <branch> will be the current branch.\n> +Upon completion, `<branch>` will be the current branch.\n>   \n>   INTERACTIVE MODE\n>   ----------------\n> @@ -848,7 +851,7 @@ not look at them but at the commit names (\"deadbee\" and \"fa1afe1\" in this\n>   example), so do not delete or edit the names.\n>   \n>   By replacing the command \"pick\" with the command \"edit\", you can tell\n> -'git rebase' to stop after applying that commit, so that you can edit\n> +`git rebase` to stop after applying that commit, so that you can edit\n>   the files and/or the commit message, amend the commit, and continue\n>   rebasing.\n>   \n> @@ -876,14 +879,13 @@ commit, the message from the final one is used.  You can also use\n>   \"fixup -C\" to get the same behavior as \"fixup -c\" except without opening\n>   an editor.\n>   \n> -\n> -'git rebase' will stop when \"pick\" has been replaced with \"edit\" or\n> +`git rebase` will stop when \"pick\" has been replaced with \"edit\" or\n>   when a command fails due to merge errors. When you are done editing\n>   and/or resolving conflicts you can continue with `git rebase --continue`.\n>   \n>   For example, if you want to reorder the last 5 commits, such that what\n> -was HEAD~4 becomes the new HEAD. To achieve that, you would call\n> -'git rebase' like this:\n> +was `HEAD~4` becomes the new `HEAD`. To achieve that, you would call\n> +`git rebase` like this:\n>   \n>   ----------------------\n>   $ git rebase -i HEAD~5\n> @@ -903,7 +905,7 @@ like this:\n>   ------------------\n>   \n>   Suppose you want to rebase the side branch starting at \"A\" to \"Q\". Make\n> -sure that the current HEAD is \"B\", and call\n> +sure that the current `HEAD` is \"B\", and call\n>   \n>   -----------------------------\n>   $ git rebase -i -r --onto Q O\n> @@ -956,23 +958,23 @@ SPLITTING COMMITS\n>   -----------------\n>   \n>   In interactive mode, you can mark commits with the action \"edit\".  However,\n> -this does not necessarily mean that 'git rebase' expects the result of this\n> +this does not necessarily mean that `git rebase` expects the result of this\n>   edit to be exactly one commit.  Indeed, you can undo the commit, or you can\n>   add other commits.  This can be used to split a commit into two:\n>   \n>   - Start an interactive rebase with `git rebase -i <commit>^`, where\n> -  <commit> is the commit you want to split.  In fact, any commit range\n> +  `<commit>` is the commit you want to split.  In fact, any commit range\n>     will do, as long as it contains that commit.\n>   \n>   - Mark the commit you want to split with the action \"edit\".\n>   \n>   - When it comes to editing that commit, execute `git reset HEAD^`.  The\n> -  effect is that the HEAD is rewound by one, and the index follows suit.\n> +  effect is that the `HEAD` is rewound by one, and the index follows suit.\n>     However, the working tree stays the same.\n>   \n>   - Now add the changes to the index that you want to have in the first\n>     commit.  You can use `git add` (possibly interactively) or\n> -  'git gui' (or both) to do that.\n> +  `git gui` (or both) to do that.\n>   \n>   - Commit the now-current index with whatever commit message is appropriate\n>     now.\n> @@ -983,7 +985,7 @@ add other commits.  This can be used to split a commit into two:\n>   \n>   If you are not absolutely sure that the intermediate revisions are\n>   consistent (they compile, pass the testsuite, etc.) you should use\n> -'git stash' to stash away the not-yet-committed changes\n> +`git stash` to stash away the not-yet-committed changes\n>   after each commit, test, and amend the commit if fixes are necessary.\n>   \n>   \n> @@ -1087,12 +1089,12 @@ NOTE: While an \"easy case recovery\" sometimes appears to be successful\n>         example, a commit that was removed via `git rebase\n>         --interactive` will be **resurrected**!\n>   \n> -The idea is to manually tell 'git rebase' \"where the old 'subsystem'\n> +The idea is to manually tell `git rebase` \"where the old 'subsystem'\n>   ended and your 'topic' began\", that is, what the old merge base\n>   between them was.  You will have to find a way to name the last commit\n>   of the old 'subsystem', for example:\n>   \n> -* With the 'subsystem' reflog: after 'git fetch', the old tip of\n> +* With the 'subsystem' reflog: after `git fetch`, the old tip of\n>     'subsystem' is at `subsystem@{1}`.  Subsequent fetches will\n>     increase the number.  (See linkgit:git-reflog[1].)\n>   \n> \n> base-commit: 9bef0b1e6ec371e786c2fba3edcc06ad040a536c\n"},{"id":"458211","messageId":"xmqqa69uf4sg.fsf@gitster.g","threadId":"58073","inReplyTo":"6f229f4d-8ce8-beb5-e27c-2ea244a634a7@gmail.com","subject":"Re: [PATCH v2] git-rebase.txt: use back-ticks consistently","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2022-06-30T17:18:55Z","receivedAt":"2022-06-30T17:19:03Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Phillip Wood <phillip.wood123@gmail.com> writes:\n\n> On 28/06/2022 22:49, Junio C Hamano wrote:\n>> \"Derrick Stolee via GitGitGadget\" <gitgitgadget@gmail.com> writes:\n>>> @@ -537,7 +539,7 @@ See also REBASING MERGES and INCOMPATIBLE OPTIONS below.\n>>>   -x <cmd>::\n>>>   --exec <cmd>::\n>>>   \tAppend \"exec <cmd>\" after each line creating a commit in the\n>> I thought `exec <cmd>` was an improvement, just like ...\n>\n> I'm not so sure, I thought we normally reserved backticks for command\n> line options and this is talking about what gets added to the\n> todo-list. I could see \"exec `<cmd>`\" being an improvement\n> though. There are several other mentions of todo list commands in the\n> documentation and I think they are all double quoted like this one.\n\nOK.  Thanks for correcting me.\n\n"},{"id":"458212","messageId":"xmqq5ykif4hf.fsf@gitster.g","threadId":"58073","inReplyTo":"050620c5-6096-5abf-1723-1367f05b7d35@gmail.com","subject":"Re: [PATCH v3] git-rebase.txt: use back-ticks consistently","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2022-06-30T17:25:32Z","receivedAt":"2022-06-30T17:25:39Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Phillip Wood <phillip.wood123@gmail.com> writes:\n\n> Hi Stolee\n>\n> The range-diff looks fine to me\n\nWill queue.  Thanks, both.\n"}]}