Skip to content

Commit 9768caf

Browse files
committed
Merge branch 'ld/git-p4-tags-and-labels'
By Luke Diamand * ld/git-p4-tags-and-labels: git p4: fix unit tests git p4: move verbose to base class git p4: Ignore P4EDITOR if it is empty git p4: Squash P4EDITOR in test harness git p4: fix-up "import/export of labels to/from p4" git p4: import/export of labels to/from p4 git p4: Fixing script editor checks
2 parents 1692579 + 00855b6 commit 9768caf

File tree

6 files changed

+483
-69
lines changed

6 files changed

+483
-69
lines changed

Documentation/git-p4.txt

Lines changed: 42 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,14 @@ OPTIONS
158158

159159
General options
160160
~~~~~~~~~~~~~~~
161-
All commands except clone accept this option.
161+
All commands except clone accept these options.
162162

163163
--git-dir <dir>::
164164
Set the 'GIT_DIR' environment variable. See linkgit:git[1].
165165

166+
--verbose::
167+
Provide more progress information.
168+
166169
Sync options
167170
~~~~~~~~~~~~
168171
These options can be used in the initial 'clone' as well as in
@@ -193,12 +196,13 @@ git repository:
193196
--silent::
194197
Do not print any progress information.
195198

196-
--verbose::
197-
Provide more progress information.
198-
199199
--detect-labels::
200200
Query p4 for labels associated with the depot paths, and add
201-
them as tags in git.
201+
them as tags in git. Limited usefulness as only imports labels
202+
associated with new changelists. Deprecated.
203+
204+
--import-labels::
205+
Import labels from p4 into git.
202206

203207
--import-local::
204208
By default, p4 branches are stored in 'refs/remotes/p4/',
@@ -245,9 +249,6 @@ Submit options
245249
~~~~~~~~~~~~~~
246250
These options can be used to modify 'git p4 submit' behavior.
247251

248-
--verbose::
249-
Provide more progress information.
250-
251252
--origin <commit>::
252253
Upstream location from which commits are identified to submit to
253254
p4. By default, this is the most recent p4 commit reachable
@@ -263,6 +264,16 @@ These options can be used to modify 'git p4 submit' behavior.
263264
Re-author p4 changes before submitting to p4. This option
264265
requires p4 admin privileges.
265266

267+
--export-labels::
268+
Export tags from git as p4 labels. Tags found in git are applied
269+
to the perforce working directory.
270+
271+
Rebase options
272+
~~~~~~~~~~~~~~
273+
These options can be used to modify 'git p4 rebase' behavior.
274+
275+
--import-labels::
276+
Import p4 labels.
266277

267278
DEPOT PATH SYNTAX
268279
-----------------
@@ -427,11 +438,23 @@ git-p4.branchList::
427438
enabled. Each entry should be a pair of branch names separated
428439
by a colon (:). This example declares that both branchA and
429440
branchB were created from main:
441+
430442
-------------
431443
git config git-p4.branchList main:branchA
432444
git config --add git-p4.branchList main:branchB
433445
-------------
434446

447+
git-p4.ignoredP4Labels::
448+
List of p4 labels to ignore. This is built automatically as
449+
unimportable labels are discovered.
450+
451+
git-p4.importLabels::
452+
Import p4 labels into git, as per --import-labels.
453+
454+
git-p4.labelImportRegexp::
455+
Only p4 labels matching this regular expression will be imported. The
456+
default value is '[a-zA-Z0-9_\-.]+$'.
457+
435458
git-p4.useClientSpec::
436459
Specify that the p4 client spec should be used to identify p4
437460
depot paths of interest. This is equivalent to specifying the
@@ -481,10 +504,17 @@ git-p4.skipUserNameCheck::
481504
submission regardless.
482505

483506
git-p4.attemptRCSCleanup:
484-
If enabled, 'git p4 submit' will attempt to cleanup RCS keywords
485-
($Header$, etc). These would otherwise cause merge conflicts and prevent
486-
the submit going ahead. This option should be considered experimental at
487-
present.
507+
If enabled, 'git p4 submit' will attempt to cleanup RCS keywords
508+
($Header$, etc). These would otherwise cause merge conflicts and prevent
509+
the submit going ahead. This option should be considered experimental at
510+
present.
511+
512+
git-p4.exportLabels::
513+
Export git tags to p4 labels, as per --export-labels.
514+
515+
git-p4.labelExportRegexp::
516+
Only p4 labels matching this regular expression will be exported. The
517+
default value is '[a-zA-Z0-9_\-.]+$'.
488518

489519
IMPLEMENTATION DETAILS
490520
----------------------

0 commit comments

Comments
 (0)