From: Junio C Hamano Date: Fri, 14 Feb 2014 23:39:31 GMT Subject: Re: [PATCH v5 02/14] trailer: process trailers from file and arguments Message-ID: In-Reply-To: <20140215.002950.97819205213642217.chriscool@tuxfamily.org> >> For example, how would you express something like this only with >> "if-exists" vs "if-missing"? >> >> if_exists_exactly = ignore >> if_exists_with_different_value = append >> if_missng = prepend_to_the_beginning > > First, previously in the discussion you said that you didn't want us > to talk about the "where = (after | before)" part, because you could > see that it was orthogonal to the other stuff, but now it looks like > you want again to put that on the table. Oh, then replace both "append" and "prepend" with "append" (it was a mistake). Can you express that without having two kinds of if-exists? > But it could be possible with only "if-exists" vs > "if-missing" like this: > > if_exists = append_if_different > if_missing = prepend > ... > because we can still easily express things like: > > if_exists = append_if_different_neighbor The proliferation of these random "if_X" on the action part _is_ exactly what I find the proposal confusing.