Skip to content

Commit 6ff518f

Browse files
committed
Merge branch 'ls/p4-lfs'
Teach "git p4" to send large blobs outside the repository by talking to Git LFS. * ls/p4-lfs: git-p4: add Git LFS backend for large file system git-p4: add support for large file systems git-p4: check free space during streaming git-p4: add file streaming progress in verbose mode git-p4: return an empty list if a list config has no values git-p4: add gitConfigInt reader git-p4: add optional type specifier to gitConfig reader
2 parents 1018f3e + b47d807 commit 6ff518f

File tree

4 files changed

+766
-16
lines changed

4 files changed

+766
-16
lines changed

Documentation/git-p4.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,38 @@ git-p4.pathEncoding::
517517
to transcode the paths to UTF-8. As an example, Perforce on Windows
518518
often uses “cp1252” to encode path names.
519519

520+
git-p4.largeFileSystem::
521+
Specify the system that is used for large (binary) files. Please note
522+
that large file systems do not support the 'git p4 submit' command.
523+
Only Git LFS [1] is implemented right now. Download
524+
and install the Git LFS command line extension to use this option
525+
and configure it like this:
526+
+
527+
-------------
528+
git config git-p4.largeFileSystem GitLFS
529+
-------------
530+
+
531+
[1] https://git-lfs.github.com/
532+
533+
git-p4.largeFileExtensions::
534+
All files matching a file extension in the list will be processed
535+
by the large file system. Do not prefix the extensions with '.'.
536+
537+
git-p4.largeFileThreshold::
538+
All files with an uncompressed size exceeding the threshold will be
539+
processed by the large file system. By default the threshold is
540+
defined in bytes. Add the suffix k, m, or g to change the unit.
541+
542+
git-p4.largeFileCompressedThreshold::
543+
All files with a compressed size exceeding the threshold will be
544+
processed by the large file system. This option might slow down
545+
your clone/sync process. By default the threshold is defined in
546+
bytes. Add the suffix k, m, or g to change the unit.
547+
548+
git-p4.largeFilePush::
549+
Boolean variable which defines if large files are automatically
550+
pushed to a server.
551+
520552
Submit variables
521553
~~~~~~~~~~~~~~~~
522554
git-p4.detectRenames::

0 commit comments

Comments
 (0)