Better way to handle setting for git plugin