summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorJakob Pfender <jpfender@elegosoft.com>2011-05-25 16:16:41 +0200
committerJakob Pfender <jpfender@elegosoft.com>2011-06-07 12:54:37 +0200
commitc1a2a14e022caae68112497f5e6862f9b59f1260 (patch)
tree767f18a6d9baa36ca3239887173a1887d0ddc278 /src/commit.c
parent1869b31e0c99831b1de394ef8cb4d0c9ee633bea (diff)
downloadlibgit2-c1a2a14e022caae68112497f5e6862f9b59f1260.tar.gz
index: Correctly write entry mode
The entry mode flags for an entry created from a path name were not correctly written if the entry was a symlink. The st_mode of a statted symlink is 0120777, however git requires the mode to read 0120000, because it does not care about permissions of symlinks. Introduce index_create_mode() that correctly writes the mode flags in the form expected by git.
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions