git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* BUG: mergetool fails on gitignore:d files
@ 2009-05-30 15:30 Erik Sandberg
  2009-05-30 16:38 ` Markus Heidelberg
  2009-05-30 21:54 ` Jeff King
  0 siblings, 2 replies; 5+ messages in thread
From: Erik Sandberg @ 2009-05-30 15:30 UTC (permalink / raw
  To: git

[-- Attachment #1: Type: text/plain, Size: 541 bytes --]

If a version-controlled file is ignored by git, and a conflict arises
on the file, and I use mergetool to resolve the conflict, then
mergetool fails with a message like:

The following paths are ignored by one of your .gitignore files:
a
Use -f if you really want to add them.

The problem disappears if I edit the git-mergetool script to always
pass -f to "git add", but I'm not sure if that's the right fix; I have
a vague feeling that "git-update-index --add" could be more correct.

I have attached a script that reproduces the problem.

[-- Attachment #2: bug.sh --]
[-- Type: application/x-sh, Size: 391 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-06-01  2:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-30 15:30 BUG: mergetool fails on gitignore:d files Erik Sandberg
2009-05-30 16:38 ` Markus Heidelberg
2009-05-30 21:54 ` Jeff King
2009-06-01  2:03   ` Jeff King
2009-06-01  2:04   ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).