This question occurred to me whilst playing around with git, but I'll ask the general case...
I just thought of a feature which might be nice for version control, but I don't know if it exists or what it is called. I want to call it persistent local changes.
Say I have a config file in svn, which has lots of useful non-recreatable stuff (and so must be in version control), but has one section which everyone needs to edit for themselves. Maybe a database config, or a username and password, or the local path to some 3rd party software. Your options in this situation are
Edit wars in version control. Just keep changing the file and hope that everyone else gives up editing the file before you do.
Edit it, but never commit those changes. They just sit there making your "What's new/changed" command look dirty, and you have to remember to not commit it.
Template it. Remove the file from version control and check in a copy of it with .template on the end. Locally copy the file and rename it back, with your changes in.
Use the new (fictional?) persistent local change feature. Make your change then issue the record-changes-as-local-persistent command, which figures out a patch, and after every update reapplies your patch.
Does this feature exist anywhere (it feels like git stash, but the purpose is slightly different)? If it doesn't exist, is there a good reason why not? (has someone thought about it and decided it was a bad idea?)