Skip to contentSkip to conversation

git-cherry.txt: cross reference "git log --cherry"

PATCH New Samuel Bronson 2 participants 3 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-cherry.txt: cross reference "git log --cherry"

I learned of "git cherry" some days ago, but only learned of --cherry and related options to "git log" today (more-or-less by chance).

If the git-cherry(1) manpage had mentioned --cherry, I would have learned of these options sooner.

---
 Documentation/git-cherry.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/git-cherry.txt +2 -1
index f6c19c7..076fe68 100644
@@ -62,7 +62,8 @@ OPTIONS
 
 SEE ALSO
 --------
-linkgit:git-patch-id[1]
+linkgit:git-patch-id[1],
+the `--cherry` option to linkgit:git-log[1]
 
 GIT
 ---
Signature · 1 line
1.8.2.1
#1 lore raw

PATCH 1/1 git-cherry.txt: cross reference "git log --cherry"

I learned of "git cherry" some days ago, but only learned of --cherry and related options to "git log" today[1] (more-or-less by chance).

If the git-cherry(1) manpage had mentioned --cherry, I would have learned of these options sooner.

[1]: Thu, 11 Apr 2013

---
 Documentation/git-cherry.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Documentation/git-cherry.txt +2 -1
index 0ea921a..cff9ae5 100644
@@ -138,7 +138,8 @@ $ git cherry origin/master topic base
 
 SEE ALSO
 --------
-linkgit:git-patch-id[1]
+linkgit:git-patch-id[1],
+the `--cherry` option to linkgit:git-log[1]
 
 GIT
 ---
Signature · 1 line
1.8.4.3
#2 lore raw
Quoted 5 lines · Samuel Bronson

I learned of "git cherry" some days ago, but only learned of --cherry and related options to "git log" today[1] (more-or-less by chance).

If the git-cherry(1) manpage had mentioned --cherry, I would have learned of these options sooner.

This proposed log message is of an unusual style. It is curious that somebody learn "cherry" first before "log".

Documentation/git-cherry.txt $ git cherry origin/master topic base · line 142

Quoted 5 lines

SEE ALSO
--------

Documentation/git-cherry.txt +2 -1
-linkgit:git-patch-id[1]
+linkgit:git-patch-id[1],
+the `--cherry` option to linkgit:git-log[1]

The description text talks about "changeset (or "diff")", "compares the changeset rather than the commit id", "diffs are compared", etc., which is a hint that a lone reference to "patch-id" would be a page to read about that comparison, which is a good motivation that may entice the readers to follow that reference.

I am not sure what value the readers of this man page would see to this addition, though. Unlike the reference to patch-id, it is not so obvious what gives them motivation to follow this new reference to "log --cherry". A new sentence in DESCRIPTION section to mention it (e.g. "'log --cherry' gives similar information") may be needed at the same time.