1
0
mirror of https://github.com/git/git.git synced 2024-10-03 22:11:41 +02:00
git/contrib/fast-import
Chris Pettitt c65b670e85 git-p4: Detect changes to executable bit and include them in p4 submit.
This changeset takes advantage of the new parseDiffTreeEntry(...) function to
detect changes to the execute bit in the git repository.  During submit, git-p4
now looks for changes to the executable bit and if it finds them it "reopens"
the file in perforce, which allows it to change the file type.

The logic for adding the executable bit in perforce is straightforward: the +x
modifier can be used. Removing the executable bit in perforce requires that the
entire filetype be redefined (there is no way to join remove the bit with a -x
modifier, for example). This changeset includes logic to remove the executable
bit from the full file type while preserving the base file type and other
modifiers.

Signed-off-by: Chris Pettitt <cpettitt@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2007-11-02 02:01:32 -07:00
..
git-import.perl contrib/fast-import: add perl version of simple example 2007-09-18 03:14:18 -07:00
git-import.sh contrib/fast-import: add simple shell example 2007-09-18 03:14:16 -07:00
git-p4 git-p4: Detect changes to executable bit and include them in p4 submit. 2007-11-02 02:01:32 -07:00
git-p4.bat
git-p4.txt
import-tars.perl