Re: gitk highlight feature

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: gitk highlight feature

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:25

Paul Mackerras [off-list ref] writes:
I just pushed out some changes to gitk which allow you to use one view
to highlight another (see the "Highlight" submenu under the "View"
menu), and which allow you to specify arbitrary git-rev-list arguments
for a view.  The arguments string uses shell quoting conventions.
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 ;-).
I had been thinking of having fields in the view editor dialog where
you could put in refs that you did and didn't want included, date
specifiers, etc., all in separate fields with suitable labels.  Now
I'm thinking that it's probably just as convenient to put
"ORIG_HEAD.." into the git-rev-list arguments field as it is to put
"ORIG_HEAD" in the "Don't include commits reachable from this" field.
There may be an argument for having fields for "Exclude commits before
this date" and "Exclude commits after this date", because those things
often have spaces in them (e.g. "2 weeks ago") which would have to be
quoted in the git-rev-list arguments field.

Thoughts?
Calendar widgets.  BTW, "rev-list --since=2.days.ago" would work
rather well ;-).

Re: gitk highlight feature

From: Paul Mackerras <hidden>
Date: 2016-06-15 22:42:25

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help