git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [StGit PATCH] Discard stderr output from git apply
@ 2008-07-04  6:35 Karl Hasselström
  2008-07-07 20:49 ` Catalin Marinas
  0 siblings, 1 reply; 3+ messages in thread
From: Karl Hasselström @ 2008-07-04  6:35 UTC (permalink / raw)
  To: Catalin Marinas; +Cc: git

It prints error messages when it fails, and we don't need to see them
since we don't care exactly _why_ it failed.

Signed-off-by: Karl Hasselström <kha@treskal.com>

---

With the optimizations that make us start using apply a lot; I noticed
git apply was spamming on stderr.

 stgit/lib/git.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/stgit/lib/git.py b/stgit/lib/git.py
index 6ccdfa7..9208965 100644
--- a/stgit/lib/git.py
+++ b/stgit/lib/git.py
@@ -556,7 +556,7 @@ class Index(RunWithEnv):
         """In-index patch application, no worktree involved."""
         try:
             self.run(['git', 'apply', '--cached']
-                     ).raw_input(patch_text).no_output()
+                     ).raw_input(patch_text).discard_stderr().no_output()
         except run.RunException:
             raise MergeException('Patch does not apply cleanly')
     def delete(self):

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

end of thread, other threads:[~2008-07-08  4:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-04  6:35 [StGit PATCH] Discard stderr output from git apply Karl Hasselström
2008-07-07 20:49 ` Catalin Marinas
2008-07-08  4:39   ` Karl Hasselström

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 NNTP newsgroup(s).