All of lore.kernel.org
 help / color / mirror / Atom feed
* How to get the original raw commit message without removing extra leading/trailing line breaks
@ 2022-03-28  5:42 PMEase
  2022-03-28  5:53 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: PMEase @ 2022-03-28  5:42 UTC (permalink / raw)
  To: git

Hi Folks, 

I am using command "git show --format=raw <commit hash>" to get raw commit object in order to verify the GPG signature in my program to customize public key loading. However in the raw commit object, extra line breaks before and after the commit message is removed, which cause the signature verification failure as git generates the signature without removing those line breaks. 

So is there any way to get the exact, original commit message? I also tried format option %B in no vail. 

Thanks for your time. 
Robin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-03-28  6:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-28  5:42 How to get the original raw commit message without removing extra leading/trailing line breaks PMEase
2022-03-28  5:53 ` Junio C Hamano
2022-03-28  6:01   ` PMEase
2022-03-28  6:11     ` Junio C Hamano
2022-03-28  6:11   ` PMEase

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.