From: kristofferhaugsbakk@fastmail.com Date: Mon, 21 Oct 2024 20:47:23 GMT Subject: [PATCH v3 0/6] doc: update-ref: amend old material and discuss symrefs Message-ID: In-Reply-To: From: Kristoffer Haugsbakk This series removes or moves some old material in the update-ref doc and improves the discussion of symrefs, opting for a high-level description with some redundancy (see patch 5/6) in order to avoid a reported mistake/confusion. The end goal (after all patches are applied): • First paragraph (in Description) describes the first form • Second paragraph the second form • Third paragraph mentions symrefs and explains why `--stdin` supports them • A new section whither the symlink (FS) vs. symrefs discussion is moved • Link update-ref to symbolic-ref and vice versa § Changes in v3 • Diff changes (see interdiff): • Add missing word “that” • Patch “remove confusing paragraph” • Rewrite message to emphasize ref backends • Patch “drop “flag” ”: • Add missing word “that” Kristoffer Haugsbakk (6): Documentation/git-update-ref.txt: drop “flag” Documentation/git-update-ref.txt: remove safety paragraphs Documentation/git-update-ref.txt: demote symlink to last section Documentation/git-update-ref.txt: remove confusing paragraph Documentation/git-update-ref.txt: discuss symbolic refs Documentation: mutually link update-ref and symbolic-ref Documentation/git-symbolic-ref.txt | 4 +++ Documentation/git-update-ref.txt | 48 +++++++++++++----------------- 2 files changed, 25 insertions(+), 27 deletions(-) Interdiff against v2: diff --git a/Documentation/git-update-ref.txt b/Documentation/git-update-ref.txt index c64d80f5a2d..8a4281cde9f 100644 --- a/Documentation/git-update-ref.txt +++ b/Documentation/git-update-ref.txt @@ -34,7 +34,7 @@ committed in the same transaction. If --no-deref is given, itself is overwritten, rather than the result of following the symbolic pointers. -With `-d`, it deletes the named after verifying it +With `-d`, it deletes the named after verifying that it still contains . With `--stdin`, update-ref reads instructions from standard input and Range-diff against v2: 1: 91c1cae3209 ! 1: 9c40351950f Documentation/git-update-ref.txt: drop “flag” @@ Commit message The other paragraphs on options say “With