To explain the origin of my issue, I am currently working with a game engine/programming language (byond/dream maker) that is... janky, one of the limitations of this engine is that there is no way to set custom launch arguments for binaries.
Currently the workaround is that settings are defines in a file __build.dm
that can be commented out to set them as true which are applied when building e.g
#define option1 //this one is enabled
//#define option2 //this one is disabled
The problem is that this file is tracked so that options can be modified, but I don't want to push my changes since it's just enabling some debug settings. But I also want to be able to pull changes to options from upstream.
using .gitignore doesn't work because __build.dm
needs to be tracked.
I've tried to use --assume-unchanged
and --skip-worktree
but the issue is that i have to resolve conflicts when syncing. I couldn't find a way to make it so it would automatically overwrite the local version in favour of the upstream one.