Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v2] push: Provide situational hints for non-fast-forward errors

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:20

Christopher Tiwald [off-list ref] writes:
How about the something like the following fixup? This introduces two
changes to v2:

- It breaks the new advice into three config variables. Users
  who might benefit from the advice can't accidentally shut a message
  off before being confronted with the situation it's designed to
  advise.
- It leaves pushNonFastForward in place, and if a user sets
  'advice.pushNonFastForward = false', it'll disable all three pieces
  of advice.
Sounds good.
 static void advise_pull_before_push(void)
 {
-	if (!advice_push_non_ff_current)
+	if (!advice_push_non_ff_current | !advice_push_nonfastforward)
Bitwise or would work OK as long as both sides are !var, but is not
particularly a style.  Please replace all of these with "||".

Other than that, sounds sane to me.

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