git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] core-tutorial.txt: Fix argument mistake in an example.

From
SOSergei Organov <osv@javad.com>
Date
Nov 10, 2007, 13:17 UTC
Message-ID
<87hcjp7w6c.fsf@osv.gnss.ru>

One of examples has wrong output given the arguments provided. Fix arguments to match the output.

Fix a minor syntax mistake in another place.
Signed-off-by: Sergei Organov <osv@javad.com>
---
 Documentation/core-tutorial.txt |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/core-tutorial.txt b/Documentation/core-tutorial.txt
index 401d1de..d611854 100644
--- a/Documentation/core-tutorial.txt
+++ b/Documentation/core-tutorial.txt
@@ -1152,7 +1152,7 @@ back to the earlier repository with "hello" and "example" file,
 and bring ourselves back to the pre-merge state:
 
 ------------
-$ git show-branch --more=3 master mybranch
+$ git show-branch --more=2 master mybranch
 ! [master] Merge work in mybranch
  * [mybranch] Merge work in mybranch
 --
@@ -1215,7 +1215,7 @@ $ git-read-tree -m -u $mb HEAD mybranch
 This is the same `git-read-tree` command we have already seen,
 but it takes three trees, unlike previous examples.  This reads
 the contents of each tree into different 'stage' in the index
-file (the first tree goes to stage 1, the second stage 2,
+file (the first tree goes to stage 1, the second -- to stage 2,
 etc.).  After reading three trees into three stages, the paths
 that are the same in all three stages are 'collapsed' into stage
 0.  Also paths that are the same in two of three stages are
-- 
1.5.3.4
Message 1 of 1 in “core-tutorial.txt: Fix argument mistake in an example.”
  1. core-tutorial.txt: Fix argument mistake in an example.Sergei Organov, Nov 10, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.