Skip to content

Commit 807371a

Browse files
vhdagitster
authored andcommitted
git-p4: Add description of rename/copy detection options
Signed-off-by: Vitor Antunes <[email protected]> Acked-by: Pete Wyckoff <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0a9feff commit 807371a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

contrib/fast-import/git-p4.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,31 @@ git-p4.skipUserNameCheck
232232
When submitting, git-p4 checks that the git commits are authored by the current
233233
p4 user, and warns if they are not. This disables the check.
234234

235+
git-p4.detectRenames
236+
237+
Detect renames when submitting changes to Perforce server. Will enable -M git
238+
argument. Can be optionally set to a number representing the threshold
239+
percentage value of the rename detection.
240+
241+
git config [--global] git-p4.detectRenames true
242+
git config [--global] git-p4.detectRenames 50
243+
244+
git-p4.detectCopies
245+
246+
Detect copies when submitting changes to Perforce server. Will enable -C git
247+
argument. Can be optionally set to a number representing the threshold
248+
percentage value of the copy detection.
249+
250+
git config [--global] git-p4.detectCopies true
251+
git config [--global] git-p4.detectCopies 80
252+
253+
git-p4.detectCopiesHarder
254+
255+
Detect copies even between files that did not change when submitting changes to
256+
Perforce server. Will enable --find-copies-harder git argument.
257+
258+
git config [--global] git-p4.detectCopies true
259+
235260
Implementation Details...
236261
=========================
237262

0 commit comments

Comments
 (0)