Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: [PATCH] git-difftool: allow skipping file by typing 'n' at prompt

From: Sitaram Chamarty <hidden>
Date: 2016-06-15 22:52:13

Possibly related (same subject, not in this thread)

On Tue, Oct 11, 2011 at 2:26 AM, Junio C Hamano [off-list ref] wrote:
I also wondered if this is easier to read:

       pipe | stdin_contains m2 &&
       ! pipe | stdin_contains master
but I do not think it is (we cannot say "pipe | ! stdin_contains master").
Agreed on both counts.

"pipe | ( ! grep master )" does work, but I suspect that is an
inconsistency in the shell so I didn't want to use it.  IIRC the "(
list )" constrict is not supposed to make *that* much difference.
Have to check when I have time.
In any case, here is what I ended up queuing.  Thanks.
+stdin_doesnot_contain()
+{
+       ! stdin_contains "$1"
 }
(facepalm) Why didn't I think of that!

Thanks :-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help