git p4: allow short ref names to --branch
[gitweb.git] / Documentation / git-p4.txt
index 7c5230e82ccdcb92924f656ca5225f9ea7a3530c..7bd5c290c4dbe97fee653ea2e5178847d482595e 100644 (file)
@@ -173,8 +173,11 @@ subsequent 'sync' operations.
 
 --branch <branch>::
        Import changes into given branch.  If the branch starts with
-       'refs/', it will be used as is, otherwise the path 'refs/heads/'
-       will be prepended.  The default branch is 'p4/master'.
+       'refs/', it will be used as is.  Otherwise if it does not start
+       with 'p4/', that prefix is added.  The branch is assumed to
+       name a remote tracking, but this can be modified using
+       '--import-local', or by giving a full ref name.  The default
+       branch is 'master'.
 +
 This example imports a new remote "p4/proj2" into an existing
 git repository: