HomePhabricator

log: handle binary files in --line-range patterns

Authored by dlax.

Description

log: handle binary files in --line-range patterns

When a file is binary patch.trydiff() would yield None for 'hunkrange'. Handle
this case in the hunksfilter() callback.
Add tests with and without diff.git option as binary handling differs
depending on this option's value.

Details

Committed
dlaxOct 18 2017, 1:00 PM
Parents
rHG16d9f0b3e134: build: build deb/rpm independently on config/extensions in the host system
Branches
Unknown
Tags
Unknown