aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorChris Pettitt <cpettitt@gmail.com>2007-11-01 20:43:14 -0700
committerJunio C Hamano <gitster@pobox.com>2007-11-02 02:01:32 -0700
commitc65b670e858a0fc010c8b8bb3cbf064bb22e1839 (patch)
treece58ad7438f6cf6a13dce38c50912492734967c8 /cache.h
parentb43b0a3c5c313619397b2f81d5a4acad2c3cb4a9 (diff)
downloadgit-c65b670e858a0fc010c8b8bb3cbf064bb22e1839.tar.gz
git-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 'cache.h')
0 files changed, 0 insertions, 0 deletions