Re: [PATCH 3/3] push: further reduce "struct ref" and simplify the logic

2013-01-21 Thread Junio C Hamano
Junio C Hamano writes: > The "update" field in "struct ref" is only used in a very narrow > scope in a single function. Remove it. > > Also simplify the code that rejects an attempted push by first > checking if the proposed update is forced (in which case we do not > need any check on our end).

[PATCH 3/3] push: further reduce "struct ref" and simplify the logic

2013-01-21 Thread Junio C Hamano
The "update" field in "struct ref" is only used in a very narrow scope in a single function. Remove it. Also simplify the code that rejects an attempted push by first checking if the proposed update is forced (in which case we do not need any check on our end). Signed-off-by: Junio C Hamano ---