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

Re: [PATCH v2] mergetool--lib: add new merge tool TortoiseMerge

From: David Aguilar <hidden>
Date: 2016-06-15 22:46:33

On  0, Brian Gernhardt [off-list ref] wrote:
On Apr 5, 2009, at 12:00 AM, David Aguilar wrote:
quoted
valid_tool () {
	case "$1" in
	<lots-of-stuff>)
		if test "$1" = "kompare" && ! diff_mode; then
			return 1
		fi
+		if test "$1" = "tortoisemerge" && ! merge_mode; then
+			return 1
+		fi
		;; # happy
	*)
		if test -z "$(get_merge_tool_cmd "$1")"; then
Why is `case "$1"` being followed by two `if test "$1" =`s?
Wouldn't it be simpler to have separate case arms for them?
Especially with how long that list is getting...

~~ Brian
It would.  It wasn't until after the rewrite that I remembered
this email... oh well [PATCH v2 14/14] it is

-- 

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