git/list[1] front-page[2] threads[3] people[4] search[5] about
 

--dir-diff not working with partial path limiter

From
BKBernhard 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

Next: John Keeping
Message 1 of 3 in “--dir-diff not working with partial path limiter”
  1. Bernhard KirchenJul 4, 2016
  2. difftool: fix argument handling in subdirsJohn Keeping, Jul 5, 2016
  3. David AguilarJul 12, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.