From: Junio C Hamano Date: Wed, 29 Feb 2012 03:52:23 GMT Subject: Re: filtering out mode-change-only changes Message-ID: <7vipiqwb2g.fsf@alter.siamese.dyndns.org> In-Reply-To: <7vmx82wbmr.fsf@alter.siamese.dyndns.org> Junio C Hamano writes: > "Neal Kreitzinger" writes: > >> What is the best way to filter out the "mode change only" entries from a >> "name-status diff result" listing of changed files? >> ... > I do not know about random scripts people write, but there is nothing > built-in. Having said that, if we _were_ to do this built-in, an obvious logical place to do so is to define a new DIFF_OPT_IGNORE_EXECUTABLE_BIT, teach "--ignore-executable-bit" command line option to diff_opt_parse(), and then teach diff_resolve_rename_copy() to consider this bit when the code originally set DIFF_STATUS_MODIFIED. Instead, the updated code that is working under --ignore-executable-bit option would drop such a filepair from diff_queued_diff. I do not know if such a change is worth doing, though. It depends on the real reason why do you have so many "mode change only" changes that would make rebasing or cherry-picking too troublesome.