Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Keep a followed diff to the path it names
A followed diff kept every path that started with the requested one, so following small.c took small.cpp in as well. A path now has to be the requested one or lie below it, as the pathspec of an unfollowed diff matches.
-rw-r--r--source/ui-diff.c15
-rwxr-xr-xtests/t0107-diff.sh27
2 files changed, 40 insertions, 2 deletions