Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include new files in hg diff patch

Tags:

mercurial

How can I add a new file to mercurial diff patch ? I can't seem to find any information in the man pages.

like image 980
ShaggyInjun Avatar asked Feb 18 '23 17:02

ShaggyInjun


1 Answers

I'm not sure I fully understand your question but, if you are using Mercurial to generate a diff patch, the way to include new files you want to add to a repo is by marking the new files as part of the repo by using the hg add command and then doing the diff.

hg add newfile
hg diff > my.patch
like image 59
Ned Deily Avatar answered Feb 20 '23 07:02

Ned Deily