Re: [PATCH] doc: clarify how -S works
- From
Jeff King <peff@peff.net>
- Date
- Mar 3, 2009, 17:57 UTC
- Message-ID
- <20090303175719.GC1636@coredump.intra.peff.net>
- In-Reply-To
- <43d8ce650903030939u73f09171uf4041b6d9824b698@mail.gmail.com>
On Tue, Mar 03, 2009 at 05:39:38PM +0000, John Tapsell wrote:
Show 12 quoted lines
> > Yes, that is technically correct. I was trying to find a wording that > > was a little less "this is literally what it does" and more "this is > > what you might find it useful for". > > Is there any way to have an option to also match any line containing > the string? That might be the best way to document it, as well as > being very useful: > > -s<string> > Look for any additions, removals or changes in any line containing <string> > -S<string> > Look only for any additions or removals of the <string> in any line
Yes, that would be possible (though it is still not foolproof against moves, as I mentioned elsewhere), and I think it would be simple to explain the two together. It just needs somebody to code it.
Unfortunately "-s" is already taken for "no output".
-Peff