Re: [BUG] incorrect line numbers reported in git am
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 2, 2019, 20:03 UTC
- Message-ID
- <xmqq8sq2ewzh.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20191002184546.GA22174@generichostname>
Denton Liu <liu.denton@gmail.com> writes:
> which is in the middle of the log message. I expect the line to be > reported as something in the range of 198-203,...
That comes from not knowing who is complaining and what it is reading. In this case, "git apply" issues a warning because it is fed .git/rebase-apply/patch file, which is the output of mailinfo that parses header & log message out, leaves the message in a separate 'msg' file in the same directory and stores the rest in that 'patch' file. And it is line 87 that has problems.