Skip to contentSkip to conversation

Branch detection final listing simplified

PATCH New Andrew Yefanov 1 participant 1 message Jun 24, 2019 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Branch detection final listing simplified

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
----

---
 Documentation/git-p4.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/git-p4.txt +1 -1
index 7436c64a9..0044766bf 100644
@@ -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
 ----
 
 
Signature · 1 line
2.20.1 (Apple Git-117)