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

Re: Ignore on commit

From
Marco Craveiro <marco.craveiro@gmail.com>
Date
Oct 5, 2012, 06:09 UTC
Message-ID
<CAKRNd4w1LPEBxhfRNzSwwFDQen_Sif+EYQXcAxnJPP6GU-Q5nw@mail.gmail.com>
In-Reply-To
<CAH5451ki_JFntWZwxcUqvWKwZn62Vfg=MkF3xwiX1p3ARULQfA@mail.gmail.com>
<git update-index --assume-unchanged>
Show 16 quoted lines
> From the help page:
>
> --assume-unchanged, --no-assume-unchanged
>     ...
>
>     This option can be also used as a coarse file-level mechanism to
> ignore uncommitted changes in tracked files (akin to what .gitignore
>     does for untracked files).
>
> Seems like it does everything required. I tested and it correctly
> hides changes that I want hidden. The only thing I can't see how to do
> is get git status to show files with the assume unchanged  bit set. I
> think there is no way currently, but that might be a nice addition to
> make the initial request feature complete. It could show either all
> files with the bit set, or files with the bit set that have been
> changed (or this could be configurable).
This is indeed the solution outlined in [4] on my original post:
http://gitready.com/intermediate/2009/02/18/temporarily-ignoring-files.html

The presence in git status is quite important or else one has to change the regular workflow with a second status command.

Cheers
Marco
-- 
So young, and already so unknown -- Pauli

blog: http://mcraveiro.blogspot.com
Previous: Andrew ArdillNext: Philip Oakley
Message 10 of 12 in “Ignore on commit”
  1. Marco CraveiroOct 4, 2012
  2. Pascal ObryOct 4, 2012
  3. Marco CraveiroOct 4, 2012
  4. Andrew WongOct 4, 2012
  5. Andrew ArdillOct 5, 2012
  6. demerphqOct 5, 2012
  7. Sitaram ChamartyOct 5, 2012
  8. Junio C HamanoOct 5, 2012
  9. Andrew ArdillOct 5, 2012
  10. Marco CraveiroOct 5, 2012
  11. Philip OakleyOct 5, 2012
  12. Pascal ObryOct 5, 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.