From: Junio C Hamano Date: Thu, 28 Sep 2017 04:14:23 GMT Subject: Re: [PATCH] diff: correct newline in summary for renamed files Message-ID: In-Reply-To: <094ebbd4-1bc6-8360-222f-55a4a16a6ca3@ramsayjones.plus.com> Ramsay Jones writes: >> + git checkout -b mode initial && >> + git update-index --chmod=+x file0 && > > would 'test_chmod +x file0 &&' work here? This one wants to set +x only in the index, leaving the working tree version without the executable bit. test_chmod is about setting both, so it would do something different from what we want to do here.