[Libreoffice] [PATCH] Don't print === decoration when running g grep

2011-05-06 Thread Christian Dywan
git grep -l is useless when the == are there because it no longer is a plain 
list of filenames. I needed it for sed, so I patched it.

ciao,
ChristianFrom aa8fcad2fafbfde9bb7294375be1bbcc4ab28f50 Mon Sep 17 00:00:00 2001
From: Christian Dywan christian.dy...@lanedo.com
Date: Fri, 6 May 2011 14:25:38 +0200
Subject: [PATCH] Don't print === decoration when running g grep

Otherwise g grep -l can't be used, for example with sed.
---
 g |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/g b/g
index 2d601b5..9cec2a6 100755
--- a/g
+++ b/g
@@ -239,7 +239,7 @@ for REPO in $DIRS ; do
 
 # do it!
 	if [ $COMMAND != clone -o ! -d $DIR ] ; then
-[ $REPORT_REPOS = 1 ]  echo = $NAME =
+[ $REPORT_REPOS = 1 -a $COMMAND != grep ]  echo = $NAME =
 git $PAGER $COMMAND $EXTRA ${FILES[@]}
 RETURN=$?
 	fi
-- 
1.7.1

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [PATCH] Don't print === decoration when running g grep

2011-05-06 Thread Michael Meeks

On Fri, 2011-05-06 at 12:35 +, Christian Dywan wrote:
 git grep -l is useless when the == are there because it no longer is
 a plain list of filenames. I needed it for sed, so I patched it.

Looks good to me; I've hit the same thing; but didn't we get a commit
account sorted out for you ?

ATB,

Michael.

-- 
 michael.me...@novell.com  , Pseudo Engineer, itinerant idiot


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: [Libreoffice] [PATCH] Don't print

2011-05-06 Thread Christian Dywan
Am 06.05.2011 17:29:03 schrieb Michael Meeks:
 On Fri, 2011-05-06 at 12:35 +, Christian Dywan wrote: 
  git grep -l is useless when the == are there because it no longer is 
  a plain list of filenames. I needed it for sed, so I patched it. 
 Looks good to me; I've hit the same thing; but didn't we get a commit
 account sorted out for you ? 

Sorry, I still need to file it. My head was full of code... I'll do that today.

ciao,
Christian
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice