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

[PATCH 0/1] diff: release all handles before running external diff

From
Johannes Schindelin via GitGitGadget <gitgitgadget@gmail.com>
Date
Jul 4, 2019, 09:16 UTC
Message-ID
<pull.213.git.gitgitgadget@gmail.com>

On Windows, it is not possible to overwrite a file as long as any process holds a read handle to it. Even keeping regions memory-mapped prevents that.

When git difftool calls git diff, it might be the user's intention to write the file(s) via the diff tool, so let's make sure that they are not memory-mapped at that stage.

Johannes Schindelin (1):
  diff: munmap() file contents before running external diff
 diff.c | 4 ++++
 1 file changed, 4 insertions(+)
base-commit: aa25c82427ae70aebf3b8f970f2afd54e9a2a8c6
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-213%2Fdscho%2Fmunmap-before-ext-diff-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-213/dscho/munmap-before-ext-diff-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/213
-- 
gitgitgadget
Next: Johannes Schindelin via GitGitGadget
Message 1 of 8 in “diff: release all handles before running external diff”
  1. 0/1 diff: release all handles before running external diffJohannes Schindelin via GitGitGadget, Jul 4, 2019
  2. 1/1 diff: munmap() file contents before running external diffJohannes Schindelin via GitGitGadget, Jul 4, 2019
  3. Junio C HamanoJul 8, 2019
  4. Johannes SchindelinJul 10, 2019
  5. Junio C HamanoJul 8, 2019
  6. 0/1 diff: release all handles before running external diffJohannes Schindelin via GitGitGadget, Jul 11, 2019
  7. 1/1 diff: munmap() file contents before running external diffJohannes Schindelin via GitGitGadget, Jul 11, 2019
  8. Junio C HamanoJul 11, 2019

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.