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

[PATCH] Branch detection final listing simplified

From
Andrew Yefanov <1134togo@gmail.com>
Date
Jun 24, 2019, 21:02 UTC
Message-ID
<20190624210247.24001-1-1134togo@gmail.com>

Look at the listing: ---- git init depot cd depot git config git-p4.branchList main:branch1 git p4 clone --detect-branches //depot@all . ---- git p4 clone is used with the last dot. It is easy to miss the dot, so I offer to use git p4 sync instead. It has the same syntax, except does not need to point the directory, because works in the current one. The result would be like: ---- git init depot cd depot git config git-p4.branchList main:branch1 git p4 sync --detect-branches //depot@all ----

Signed-off-by: Andrew Yefanov <1134togo@gmail.com>
---
 Documentation/git-p4.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/git-p4.txt b/Documentation/git-p4.txt
index 7436c64a9..0044766bf 100644
--- a/Documentation/git-p4.txt
+++ b/Documentation/git-p4.txt
@@ -434,7 +434,7 @@ occur with:
 git init depot
 cd depot
 git config git-p4.branchList main:branch1
-git p4 clone --detect-branches //depot@all .
+git p4 sync --detect-branches //depot@all
 ----
 
 
-- 
2.20.1 (Apple Git-117)
Message 1 of 1 in “Branch detection final listing simplified”
  1. Branch detection final listing simplifiedAndrew Yefanov, Jun 24, 2019

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.