Skip to content

git p4: use "move" command for renames

Pete Wyckoff git 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 3 repliesIn review
  2. v12 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2git p4: refactor diffOpts calculationDocumentation/git-p4.txt git-p4.py+38 -240 replies
2/2git p4: add support for 'p4 move' in P4Submitgit-p4.py t/t9814-git-p4-rename.sh+34 -164 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCHv2 0/2] git p4: use "move" command for renames

Difference from v1:
* Remove "tee" usage in t9814, just send output to a file and grep it directly.

Recent p4 supports a "move" command that records explicitly that a file was moved from one place to another. It can be changed a bit during the move, too. Use this feature, if it exists, when renames are detected.

Gary sent these patches months ago, and I've been sitting on them far too long. Was hoping to move some other work out first, but it was not ready.

These commits are on origin/next, as they depend on changes in pw/git-p4-tests that was merged into next on Jul 3. They do not conflict with the other series in flight, "notice Jobs: ...".

Gary Gibbons (2):
git p4: refactor diffOpts calculation
git p4: add support for 'p4 move' in P4Submit

 Documentation/git-p4.txt | 10 +++---
 git-p4.py                | 86 ++++++++++++++++++++++++++++++++----------------
 t/t9814-git-p4-rename.sh | 16 ++++-----
 3 files changed, 72 insertions(+), 40 deletions(-)
Signature · 1 line
1.7.11.1.72.g3344471