git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v2 2/4] git-p4: Add description of rename/copy detection options.

From
Vitor Antunes <vitor.hda@gmail.com>
Date
Aug 18, 2011, 22:20 UTC
Message-ID
<1313706054-11740-3-git-send-email-vitor.hda@gmail.com>
In-Reply-To
<1313706054-11740-1-git-send-email-vitor.hda@gmail.com>
Signed-off-by: Vitor Antunes <vitor.hda@gmail.com>
---
 contrib/fast-import/git-p4.txt |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/contrib/fast-import/git-p4.txt b/contrib/fast-import/git-p4.txt
index caa4bb3..2ffbccc 100644
--- a/contrib/fast-import/git-p4.txt
+++ b/contrib/fast-import/git-p4.txt
@@ -232,6 +232,31 @@ git-p4.skipUserNameCheck
 When submitting, git-p4 checks that the git commits are authored by the current
 p4 user, and warns if they are not. This disables the check.
 
+git-p4.detectRenames
+
+Detect renames when submitting changes to Perforce server. Will enable -M git
+argument. Can be optionally set to a number representing the threshold
+percentage value of the rename detection.
+
+  git config [--global] git-p4.detectRenames true
+  git config [--global] git-p4.detectRenames 50
+
+git-p4.detectCopies
+
+Detect copies when submitting changes to Perforce server. Will enable -C git
+argument. Can be optionally set to a number representing the threshold
+percentage value of the copy detection.
+
+  git config [--global] git-p4.detectCopies true
+  git config [--global] git-p4.detectCopies 80
+
+git-p4.detectCopiesHarder
+
+Detect copies even between files that did not change when submitting changes to
+Perforce server. Will enable --find-copies-harder git argument.
+
+  git config [--global] git-p4.detectCopies true
+
 Implementation Details...
 =========================
 
-- 
1.7.5.4
Previous: Vitor AntunesNext: Vitor Antunes
Message 9 of 12 in “Support threshold in copy/rename detection”
  1. 0/4 Support threshold in copy/rename detectionVitor Antunes, Aug 18, 2011
  2. 1/4 git-p4: Allow setting rename/copy detection threshold.Vitor Antunes, Aug 18, 2011
  3. Junio C HamanoAug 18, 2011
  4. Vitor AntunesAug 18, 2011
  5. Pete WyckoffAug 19, 2011
  6. Vitor AntunesAug 19, 2011
  7. Pete WyckoffAug 20, 2011
  8. Vitor AntunesAug 22, 2011
  9. 2/4 git-p4: Add description of rename/copy detection options.Vitor Antunes, Aug 18, 2011
  10. 3/4 git-p4: Add test case for rename detection.Vitor Antunes, Aug 18, 2011
  11. 4/4 git-p4: Add test case for copy detection.Vitor Antunes, Aug 18, 2011
  12. Pete WyckoffAug 20, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.