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

Ignore specific changes but not the entire file

From
MZMohammad Al Zouabi <mb.alzouabi@gmail.com>
Date
Mar 28, 2024, 07:46 UTC
Message-ID
<CAAQqY-NKvWMLo_Bcby5-QYPOj-jbWeVA3zGL=_sq2p2bGZQBEA@mail.gmail.com>
The problem with:

```sh git update-index [--skip-worktree|--assume-unchanged] ```

Is that it ignores the entire file.

Is there a plan to support something that remembers what was exactly ignored, and if there are changes to it, either un-ignore the file, or display the hunks that were changed?

Something like committing the change but not actually committing it.
Next: brian m. carlson
Message 1 of 2 in “Ignore specific changes but not the entire file”
  1. Mohammad Al ZouabiMar 28, 2024
  2. brian m. carlsonMar 28, 2024

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.