summaryrefslogtreecommitdiff
path: root/COPYING
diff options
context:
space:
mode:
authorLibravatar Chris Pettitt <cpettitt@gmail.com>2007-11-01 20:43:14 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2007-11-02 02:01:32 -0700
commitc65b670e858a0fc010c8b8bb3cbf064bb22e1839 (patch)
treece58ad7438f6cf6a13dce38c50912492734967c8 /COPYING
parentgit-p4: Add a helper function to parse the full git diff-tree output. (diff)
downloadtgif-c65b670e858a0fc010c8b8bb3cbf064bb22e1839.tar.xz
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>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions