I have already asked a question, but I think it is too complicated, and I have been able to simplify my question enough to warrant a re-write. Please refer to that link if you want to see a real-world example of my problem!
The question is whether it is possible for me to make a special type of git commit on my branch, which is never explicitly merged in future merges of the branch.
The use case is if I have a project that has multiple different makefile configurations (one for each platform) and I want to do development work on multiple of them. So the work will be spread out across the branches (branches being specific to a platform...) and I want to merge together the branches without the merge blowing away the configurations.