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

using git-difftool -d when cherry-picking

From
JSJan Smets <jan@smets.cx>
Date
Apr 27, 2016, 09:12 UTC
Message-ID
<CAH9ve7x3GSVX1M3yuAY1VmM-WoFX36o-vihFQ3Jw-_SZ4Bh_og@mail.gmail.com>
Hi
Please consider following example

#!/bin/bash rm -rf /tmp/gittest mkdir /tmp/gittest cd /tmp/gittest

git init

echo $RANDOM > testfile git add testfile git commit -m test -a

git branch X git checkout X echo $RANDOM > testfile git add testfile git commit -m test -a

git checkout master echo $RANDOM > testfile git add testfile git commit -m test -a

git cherry-pick X git diff --raw git difftool -d

This emulates a merge conflict when using git-cerry-pick.

$ git diff --raw :000000 100644 0000000... 0000000... U testfile :100644 100644 a04e026... 0000000... M testfile

When executing git difftool with the -d option :
/usr/lib/git-core/git-difftool line 260: File exists
A possible solution is to build an unique list in @working_tree
The purpose is to edit/resolve the conflict in the difftool.
Thanks!
-- 
Smets Jan
jan@smets.cx
Next: David Aguilar
Message 1 of 3 in “using git-difftool -d when cherry-picking”
  1. Jan SmetsApr 27, 2016
  2. David AguilarApr 30, 2016
  3. Jan SmetsApr 30, 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.