From: Ping Yin Date: Tue, 24 Mar 2009 15:08:01 GMT Subject: Re: [PATCH] git-cget: prints elements of C code in the git repository Message-ID: <46dff0320903240808p5ad287d8j9245ee9f79ff6851@mail.gmail.com> In-Reply-To: On Tue, Mar 24, 2009 at 9:52 PM, Johannes Schindelin wrote: >> Also, what would be more appropriate for this purpose, I think, is a git >> sed. > > Just as it happens, this is a toy I am working on and off these days... > strbuf_regsub() is already done, and half the needed code is in my version > git grep. > this is my version [alias] sed = !git ls-files --stage | grep ^100 | awk '{print $4}' | xargs sed Then i can do git sed -i 's/A/B/g'