Re: [PATCH 9/10] Allow completion of --committer and --author arguments to git log.
- From
Nicolas Vilz <niv@iaglans.de>
- Date
- Nov 27, 2006, 10:28 UTC
- Message-ID
- <20061127102831.GA5428@fry.bender.fht>
- In-Reply-To
- <20061127084228.GI19745@spearce.org>
On Mon, Nov 27, 2006 at 03:42:28AM -0500, Shawn O. Pearce wrote:
Show 8 quoted lines
> This is just a cute hack, but we can (easily) complete the parameter > to --author or --committer in bash by asking for all possible authors > or committers in this project from git log and offering them up as > valid choices. > > We replace spaces with dots as this prevents names with spaces from > appearing as two parameters rather than one, yet it still matches the > space in the field.
is it hard to train bash-completion to use "" and spaces instead of replacing spaces by dots? Besides, great feature, thank you for that... that's very handy.
Sincerly