--dir-diff not working with partial path limiter
- From
- Bernhard Kirchen <bernhard.kirchen@rwth-aachen.de>
- Date
- Jul 4, 2016, 18:37 UTC
- Message-ID
- <155b7339538.2774.8c011de0e6d4f677db1e190e9d3169b9@rwth-aachen.de>
- In-Reply-To
- <OFEE90CED0.0832E3D4-ONC1257FE9.0053D856-C1257FE6.00660366@lancom.de>
Hello!
Today I started using --dir-diff and noticed a problem when specifying a non-full path limiter. My diff tool is setup to be meld (*1).
OK while working directory is repo root; also OK while working directory is repo subfolder "actual": git difftool --dir-diff HEAD~1 HEAD -- actual/existing/path => meld opens with proper dir-diff.
NOT OK while working directory is repo subfolder "actual": git difftool --dir-diff HEAD~1 HEAD -- existing/path => nothing happens, as if using "non/such/path" as the path limiter.
Because "git diff HEAD~1 HEAD -- existing/path" while the working directory is the repo subfolder "actual" works, I epxected the difftool to work similarly. Is this a bug?
Best, Bernhard
(*1) [diff] tool = mydiffmeld [difftool "mydiffmeld"] cmd = meld --auto-compare --diff $LOCAL $REMOTE [difftool] prompt = false