Merge branch 'tg/add-chmod+x-fix' into maint
commit36f64036f647912c8037e625e9fe3cee6713b105
authorJunio C Hamano <gitster@pobox.com>
Thu, 29 Sep 2016 23:49:47 +0000 (29 16:49 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Sep 2016 23:49:47 +0000 (29 16:49 -0700)
tree6e0ec6e40eda4724fdc778b4697b705cfc112563
parentbf3a55a21b85c04441e67ee1fa08e5eff41ebbe8
parent40e0dc17ce6f8b699c0f9426438362ed658293dc
Merge branch 'tg/add-chmod+x-fix' into maint

"git add --chmod=+x <pathspec>" added recently only toggled the
executable bit for paths that are either new or modified. This has
been corrected to flip the executable bit for all paths that match
the given pathspec.

* tg/add-chmod+x-fix:
  t3700-add: do not check working tree file mode without POSIXPERM
  t3700-add: create subdirectory gently
  add: modify already added files when --chmod is given
  read-cache: introduce chmod_index_entry
  update-index: add test for chmod flags
builtin/checkout.c
builtin/commit.c
builtin/update-index.c
cache.h
read-cache.c