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

Gitk "External diff" broken when using worktree

From
DBDaryl Van Den Brink <daryl.vandenbrink@maptek.com.au>
Date
Mar 24, 2016, 02:55 UTC
Message-ID
<CAC4jX8FWs30v-Vh7XyPP9_ba3HKd4hAhRBrwfMpBPZd5ku8rUA@mail.gmail.com>
Hi,

I'm using git 2.7.3 on cygwin, and have been taking advantage of the new "git worktree" feature. I noticed that when I launch gitk from one of the attached working directories, its "external diff" feature doesn't seem to work. Nothing shows up in the diff tool at all. However, it works if you launch gitk from the main repository.

To reproduce:
1. Create a new working tree with "git worktree add"
2. From that new worktree, launch gitk.
3. Right-click in a file in the bottom right pane and click "External diff"
4. No useful diff appears.
-- 
Daryl van den Brink
Next: Duy Nguyen
Message 1 of 4 in “Gitk "External diff" broken when using worktree”
  1. Daryl Van Den BrinkMar 24, 2016
  2. Duy NguyenMar 24, 2016
  3. Daryl Van Den BrinkMar 29, 2016
  4. Duy NguyenMar 29, 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.