I'm trying to create patch a file using diff tool.But facing an issues.The way I am doing is below.
I've created one Directory named a and put original file in to it.
Now I have created other Directory named b and put same file with modified content in to it.
Now content of
b/original_file.c file I have copied from internet and put it into some text editor.
After giving command:
diff -Naur a b > patch_file.patch, the file
patch_file.patch is generated and it has some unwanted changes (its related to indentation).
return mg_nw (MG_READY_NOY, &rmsg, seqnr, - sizeof (struct mg_rdy_notify)); + sizeof (struct mg_rdy_notify));
Now you can see there are changed related to indentation where
sizeof (struct mg_rdy_notify)) is replaced by same
sizeof (struct mg_rdy_notify)) but one basis of indentation which is what we don't want.