Skip to contentSkip to conversation

Documentation: Mention that refspecs are explained elsewhere

PATCH In review Øystein Walle 2 participants 2 messages May 6, 2024 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: Mention that refspecs are explained elsewhere

The syntax for refspecs are explained in more detail in documention for git-fetch and git-push. Give a hint to the user too look there more fore information

---
 Documentation/glossary-content.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/glossary-content.txt +2 -1
index d71b199955..1272809e13 100644
@@ -576,7 +576,8 @@ The most notable example is `HEAD`.
 [[def_refspec]]refspec::
 	A "refspec" is used by <<def_fetch,fetch>> and
 	<<def_push,push>> to describe the mapping between remote
-	<<def_ref,ref>> and local ref.
+	<<def_ref,ref>> and local ref. See linkgit:git-fetch[1] or
+	linkgit:git-push[1] for details.
 
 [[def_remote]]remote repository::
 	A <<def_repository,repository>> which is used to track the same
Signature · 1 line
2.40.1
#1 lore raw
Quoted 3 lines · Øystein Walle

The syntax for refspecs are explained in more detail in documention for git-fetch and git-push. Give a hint to the user too look there more fore information

Sounds sensible. It is a bit unsatisfying that we cannot make the glossary entry the single source of the authoritative truth, but the refspec syntax needs to be slightly different between fetches and pushes (hence Documention/git-push.txt does not include the same Documentation/pull-fetch-param.txt like Documentation/git-fetch.txt does), so this is probably the best we could do.

Quoted 10 lines
---
 Documentation/glossary-content.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/glossary-content.txt +0 -0
index d71b199955..1272809e13 100644

Documentation/glossary-content.txt The most notable example is `HEAD`. · line 580

Quoted 6 lines
Documentation/glossary-content.txt +2 -1
@@ -576,7 +576,8 @@ The most notable example is `HEAD`.
 [[def_refspec]]refspec::
 	A "refspec" is used by <<def_fetch,fetch>> and
 	<<def_push,push>> to describe the mapping between remote
-	<<def_ref,ref>> and local ref.
+	<<def_ref,ref>> and local ref. See linkgit:git-fetch[1] or
+	linkgit:git-push[1] for details.

Will queue. Thanks.