Re: [PATCH] git-cget: prints elements of C code in the git repository
- From
Ping Yin <pkufranky@gmail.com>
- Date
- Mar 24, 2009, 15:08 UTC
- Message-ID
- <46dff0320903240808p5ad287d8j9245ee9f79ff6851@mail.gmail.com>
- In-Reply-To
- <alpine.DEB.1.00.0903241449200.7493@intel-tinevez-2-302>
On Tue, Mar 24, 2009 at 9:52 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 7 quoted lines
>> 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'