[Zlib-devel] configure script

Török Edwin edwintorok at gmail.com
Sat Sep 17 15:48:47 EDT 2011





On Sep 17, 2011, at 22:22, Jonathan Nieder <jrnieder at gmail.com> wrote:

> Charles Wilson wrote:
> 
>> Yes, that too.  However, if you leave zconf.h and Makefile in the
>> repository, then ONLY adding them to .gitignore means that you can't
>> modify them even if you want to -- unless you first /remove/ their name
>> from .gitignore temporarily.
> 
> That's not how .gitignore works.  gitignore files are useful for
> avoiding accidentally tracking generated files, but once they are
> tracked, .gitignore won't help you.
> 
> In other words, as the gitignore(5) manpage says: "Files already
> tracked by git are not affected; see the NOTES below for details."


Something like this might work:
git update-index --assume-unchanged file1 [file...]

Now when you commit -a it won't commit the changes to the above files.

And when you want to commit modifications to that file again, then:
git update-index --no-assume-unchanged file1 [file...]

But this is a local change that the user has to make, I don't think there is a way to tell git to ignore changes to a commited file automatically for all users.

Best regards,
Edwin
> 




More information about the Zlib-devel mailing list