summaryrefslogtreecommitdiff
path: root/sys/src/cmd/git/query.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2022-04-16 23:53:19 +0000
committerOri Bernstein <ori@eigenstate.org>2022-04-16 23:53:19 +0000
commit03e5d9e9e28894d534ad6a93361fa6cfae280cf8 (patch)
tree80db171021fb55c79dd70e771d09033710393bad /sys/src/cmd/git/query.c
parent261d1ac0e3a189f10a8ee42fbf68b770e4363d4f (diff)
git/merge: preserve exec bit correctly
A while ago, qwx noticed that we clobbered the exec bit when merging files. This is not what we want, so we changed the operator precedence to avoid merging dirty files implicitly. But we do want to merge, because it's convenient for maintaining permissions. So, instead, we should do a 3 way merge of the exec bit. This patch does that, as well as reverting the rollback of that change. While we're here, we adjust the timestamps correctly in git/branch. This requires changes to git/fs, because without an open handler, lib9p allows opening any file with any mode, which confuses 'test -x'.
Diffstat (limited to 'sys/src/cmd/git/query.c')
0 files changed, 0 insertions, 0 deletions