git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.
Previous: Junio C HamanoNext: Linus Torvalds
Message 3 of 12 in “gitk highlight feature”
  1. Paul MackerrasMay 2, 2006
  2. Junio C HamanoMay 2, 2006
  3. Paul MackerrasMay 3, 2006
  4. Linus TorvaldsMay 3, 2006
  5. Linus TorvaldsMay 3, 2006
  6. Paul MackerrasMay 3, 2006
  7. Linus TorvaldsMay 3, 2006
  8. Paul MackerrasMay 3, 2006
  9. Linus TorvaldsMay 3, 2006
  10. Paul MackerrasMay 20, 2006
  11. Linus TorvaldsMay 20, 2006
  12. Paul MackerrasMay 21, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.