Re: gitk highlight feature
- From
Paul Mackerras <paulus@samba.org>
- Date
- May 3, 2006, 00:17 UTC
- Message-ID
- <17495.63101.163740.649150@cargo.ozlabs.ibm.com>
- In-Reply-To
- <7vejzcj8da.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano writes:
> Eh, the string entered by me is quoted by the program, or do I > have to quote it myself? I suspect it should not be so bad to > code, even if you have to do it with tcl ;-).
It's split up into arguments at whitespace unless the whitespace is quoted, just like the shell does. I wrote tcl code to do the splitting and quoting according to the shell rules. So you can, for example, put:
--unpacked --since='2 days ago'
in there and it will pass two arguments to git-rev-list, the second containing the embedded spaces (but without the single-quotes).
Paul.