git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] Branch detection final listing simplified
@ 2019-06-24 21:02 Andrew Yefanov
  0 siblings, 0 replies; only message in thread
From: Andrew Yefanov @ 2019-06-24 21:02 UTC (permalink / raw)
  To: git; +Cc: Andrew Yefanov

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)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-24 21:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-24 21:02 [PATCH] Branch detection final listing simplified Andrew Yefanov

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).