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