Re: [BUG] incorrect line numbers reported in git am
Junio C Hamano
Denton Liu
Git Mailing List
Paul Tan
Jeff King
Duy Nguyen
See Also
Prev Ref 1 Ref 2 Ref 3
2019-10-03 06:17:08 UTC
On Thu, Oct 3, 2019 at 7:52 AM Junio C Hamano <> wrote:
> > In fact, running `git am --show-current-patch` shows the whole mail, not
> > only the 'patch' file so users would have no reason to expect the line
> > numbers to refer to the 'patch' file.
> Yeah, show-current-patch was a misguided attempt to hide useful
> information from the users.

Not so much hiding as not having the information to present, at least
not the easy way, since the mail is split at the beginning of git-am
and never stored in $GIT_DIR. By the time this command is run, the
mail is already gone. Someone could of course update git-am to keep a
copy of the mail and improve this option.