Add workaround for git pretty.format settings that break the log view
commitdd76eccc975616d7f7bd9e6ff4d24060a6c272bc
authorJonas Fonseca <jonas.fonseca@gmail.com>
Thu, 31 Jul 2014 03:17:53 +0000 (30 23:17 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Thu, 31 Jul 2014 03:40:34 +0000 (30 23:40 -0400)
tree89f0fe04aee85d313d584dd26d8a845668892dae
parent8009e23356fb082a5ffbef8be8ec8fd6697e45fa
Add workaround for git pretty.format settings that break the log view

This overrides any pretty.format setting that contains color definitions
to use the 'medium' format. The fix adds the setting 'log-options' for
implementing the workaround. The option can be configured in `tigrc` and
works similar to `blame-options`. Finally, in order to test the feature
the semantics of `:toggle <args-option>` (note no arguments) has been
changed to simply clear the entries in the <args-option>.

Fixes #225
NEWS.adoc
include/tig/options.h
src/argv.c
src/log.c
src/options.c
src/prompt.c
test/log/pretty-format-test [new file with mode: 0755]