diff options
author | Pete Wyckoff <pw@padd.com> | 2012-02-25 20:06:24 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-26 16:14:20 -0800 |
commit | a93d33ee7bf2f1cd41f94470e9e44e0fc9307046 (patch) | |
tree | 40346569540ff8ea216edbc0fbed2983c6207068 /Documentation/git-p4.txt | |
parent | 07f050c9996cbda2af8d42996ebd349dcdb4c28d (diff) | |
download | git-a93d33ee7bf2f1cd41f94470e9e44e0fc9307046.tar.gz git-a93d33ee7bf2f1cd41f94470e9e44e0fc9307046.tar.xz |
git-p4: set useClientSpec variable on initial clone
If --use-client-spec was given, set the matching configuration
variable. This is necessary to ensure that future submits
work properly.
The alternatives of requiring the user to set it, or providing
a command-line option on every submit, are error prone.
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-p4.txt')
-rw-r--r-- | Documentation/git-p4.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Documentation/git-p4.txt b/Documentation/git-p4.txt index 78938b293..ed827902f 100644 --- a/Documentation/git-p4.txt +++ b/Documentation/git-p4.txt @@ -303,9 +303,13 @@ CLIENT SPEC ----------- The p4 client specification is maintained with the 'p4 client' command and contains among other fields, a View that specifies how the depot -is mapped into the client repository. Git-p4 can consult the client -spec when given the '--use-client-spec' option or useClientSpec -variable. +is mapped into the client repository. The 'clone' and 'sync' commands +can consult the client spec when given the '--use-client-spec' option or +when the useClientSpec variable is true. After 'git p4 clone', the +useClientSpec variable is automatically set in the repository +configuration file. This allows future 'git p4 submit' commands to +work properly; the submit command looks only at the variable and does +not have a command-line option. The full syntax for a p4 view is documented in 'p4 help views'. Git-p4 knows only a subset of the view syntax. It understands multi-line |