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

Quit git difftool on error code

From
AFAdri Farr <14farresa@gmail.com>
Date
Oct 25, 2014, 10:40 UTC
Message-ID
<CAPfWmhgS8JXyXz5qp04+faqjdeHsydBz-fui-HeNhF3wYLv71g@mail.gmail.com>
Hello!,

Pardon my ignorance, but I haven't found the solution anywhere. Is there a way to make git difftool quit when it receives an error code? I have vim as my difftool, and if I quit with an error (:cq) when there are pending files to be diffed, git difftool doesn't quit and keeps pushing me files to be diffed until there are no more pending files. What is the best way to get out of it?

Thank you
Next: David Aguilar
Message 1 of 4 in “Quit git difftool on error code”
  1. Adri FarrOct 25, 2014
  2. difftool: add support for --trust-exit-codeDavid Aguilar, Oct 26, 2014
  3. difftool: add support for --trust-exit-codeDavid Aguilar, Oct 26, 2014
  4. Johannes SixtOct 26, 2014

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.