From: Stefan Beller Date: Wed, 27 Sep 2017 23:57:40 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> >> + GIT_AUTHOR_DATE="2006-06-26 00:06:00 +0000" && >> + GIT_COMMITTER_DATE="2006-06-26 00:06:00 +0000" && >> + export GIT_AUTHOR_DATE GIT_COMMITTER_DATE && >> + git checkout -b mode initial && >> + git update-index --chmod=+x file0 && > > would 'test_chmod +x file0 &&' work here? That is what I was looking for in my previous solution, this one doesn't care about the on-disk things at all (regarding the mode of files). So I would argue that test_chmod may be overkill (well we could drop the force flag from the following checkout... not sure if that is a good trade off)