Re: [PATCH 2/9] config: report correct line number upon error

2017-06-09 Thread Junio C Hamano
Johannes Schindelin writes: > When get_value() parses a key/value pair, it is possible that the line > number is decreased (because the \n has been consumed already) before the > key/value pair is passed to the callback function, to allow for the > correct line to be attributed in case of an erro

[PATCH 2/9] config: report correct line number upon error

2017-06-07 Thread Johannes Schindelin
When get_value() parses a key/value pair, it is possible that the line number is decreased (because the \n has been consumed already) before the key/value pair is passed to the callback function, to allow for the correct line to be attributed in case of an error. However, when git_parse_source() a