git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: filtering out mode-change-only changes

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 29, 2012, 03:52 UTC
Message-ID
<7vipiqwb2g.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7vmx82wbmr.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 7 quoted lines
> "Neal Kreitzinger" <neal@rsss.com> 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.

Previous: Junio C HamanoNext: Neal Kreitzinger
Message 3 of 7 in “filtering out mode-change-only changes”
  1. Neal KreitzingerFeb 29, 2012
  2. Junio C HamanoFeb 29, 2012
  3. Junio C HamanoFeb 29, 2012
  4. Neal KreitzingerFeb 29, 2012
  5. Junio C HamanoFeb 29, 2012
  6. Pete HarlanMar 3, 2012
  7. Junio C HamanoFeb 29, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.