git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git-p4: default behavior for handling moves?
@ 2019-01-07 12:50 Luke Diamand
  2019-01-08  0:56 ` Mazo, Andrey
  0 siblings, 1 reply; 3+ messages in thread
From: Luke Diamand @ 2019-01-07 12:50 UTC (permalink / raw)
  To: Git Users, Junio C Hamano; +Cc: Chen Bin, Merland Romain, Vitor Antunes

git-p4 can map a "git move" operation to a Perforce "move" operation.
But by default this is disabled. You then end up with a P4 commit
where the file is deleted, and a fresh file is created with the same
contents at the new location at revision #1.

Rename detection gets enabled either with the "-M" option, or with
some config variables, git-p4.detectCopies and git-p4.detectRenames.

I've been tripped up by this, and I actually know about it, and I know
other people have been as well.

Should we switch the default over so that it's enabled by default? I
can't think of any reason why you wouldn't want it enabled.

I think the rename code was first introduced around 2011 by Vitor.

Another option is to add a warning, but people just ignore warnings!

Thanks!
Luke

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-01-09 22:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-07 12:50 git-p4: default behavior for handling moves? Luke Diamand
2019-01-08  0:56 ` Mazo, Andrey
2019-01-09 22:41   ` Vitor Antunes

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).