1
0
mirror of https://github.com/git/git.git synced 2024-10-21 16:18:11 +02:00
git/contrib/fast-import
Vitor Antunes 04d277b39e git-p4: Correct branch base depot path detection
When branch detection is enabled each branch is named in git after their
relative depot path in Perforce. To do this the depot paths are compared against
each other to find their common base path. The current algorithm makes this
comparison on a character by character basis.
Assuming we have the following branches:

  //depot/branches/featureA
  //depot/branches/featureB

Then the base depot path would be //depot/branches/feature, which is an invalid
depot path.

The current patch fixes this by splitting the path into a list and comparing the
list entries, making it choose correctly //depot/branches as the base path.

Signed-off-by: Vitor Antunes <vitor.hda@gmail.com>
Acked-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-08-22 21:08:37 -07:00
..
git-import.perl
git-import.sh
git-p4 git-p4: Correct branch base depot path detection 2011-08-22 21:08:37 -07:00
git-p4.bat
git-p4.txt git-p4: Add description of rename/copy detection options 2011-08-22 11:49:04 -07:00
import-directories.perl perl: use "use warnings" instead of -w 2010-09-27 12:37:56 -07:00
import-tars.perl import-tars: Add support for tarballs compressed with lzma, xz 2009-10-21 17:15:43 -07:00
import-zips.py Correct references to /usr/bin/python which does not exist on FreeBSD 2010-03-24 14:33:54 -07:00