git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Applying a patch with a diff header in its commit message
@ 2021-06-28 18:30 Pratyush Yadav
  2021-06-28 23:44 ` Felipe Contreras
  0 siblings, 1 reply; 5+ messages in thread
From: Pratyush Yadav @ 2021-06-28 18:30 UTC (permalink / raw)
  To: git

Hi,

I have a patch at $DAYJOB that contains a diff header ("diff --git 
a/...") in its commit message, and unfortunately it is not indented. So 
naturally, git-am trips up and thinks it is the start of the main diff 
and tries to apply the diff starting there. It does not apply and the 
patch is rejected as being corrupt.

I know one option for me is to manually edit the patch and indent the 
diff header. But I would like to avoid that if possible. Is there any 
way to apply that patch as-is? Is it possible to tell git-am where to 
start looking for the diff?

-- 
Regards,
Pratyush Yadav

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

end of thread, other threads:[~2021-07-06 22:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-28 18:30 Applying a patch with a diff header in its commit message Pratyush Yadav
2021-06-28 23:44 ` Felipe Contreras
2021-07-06  8:17   ` Pratyush Yadav
2021-07-06 14:37     ` Ævar Arnfjörð Bjarmason
2021-07-06 22:17     ` Felipe Contreras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).