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

Re: [StGit PATCH] Discard stderr output from git apply

From
Karl Hasselström <kha@treskal.com>
Date
Jul 8, 2008, 04:39 UTC
Message-ID
<20080708043902.GD2247@diana.vm.bytemark.co.uk>
In-Reply-To
<b0943d9e0807071349u7c35d2fcr5025b2b282f290f6@mail.gmail.com>
On 2008-07-07 21:49:31 +0100, Catalin Marinas wrote:
Show 7 quoted lines
> 2008/7/4 Karl Hasselström <kha@treskal.com>:
>
> > It prints error messages when it fails, and we don't need to see
> > them since we don't care exactly _why_ it failed.
>
> Are you sure we don't need this? I found it useful when running
> "import" to see why a patch failed.

Aww, you're right. Apply isn't just called from the simple merge fast path, it's also used to apply patches. Who would've guessed? ;-)

I'll add a parameter to shut it up or not depending on the caller's preferences.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Catalin Marinas
Message 3 of 3 in “Discard stderr output from git apply”
  1. Discard stderr output from git applyKarl Hasselström, Jul 4, 2008
  2. Catalin MarinasJul 7, 2008
  3. Karl HasselströmJul 8, 2008

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.