mhinz/vim-signify — pull request #86 by thallett (2013-11-15 15:50:55+00:00)
Title: Dynamic read g:signify_diffoptions before each diff

Wanted to be able to diff against a different branch in git, but realized that this was not possible to do without changing my vimrc file, since signify-diffoptions is only looked at once.

The change makes it so it is read from the global g:signify-diffoptions each time before diff is called. This allows for the following use case (get applied next time diff is done, such as after a :SignifyToggle)
# Show diff against master instead of against HEAD in Git
nnoremap \u :let g:signify_diffoptions = { 'git': 'master' }

This change will also allow any other arbitrary diff options to be dynamically updated, such as whitespace, etc.