On Tue, 03 Jun 2014 22:15:21 +0530, me storage said: > diff --git a/a.txt b/a.txt > index 76e499a..c341c1c 100644 > --- a/a.txt > +++ b/a.txt > @@ -1,5 +1,5 @@ > this > is > a > -simple > +slightly more complex file > file. > > > My doubt is how to create patch file which contains the modifications only > i.e lines with "+" only why because for example initially if a file > contains 1000 rows. It's showing the first 3 lines and the last line because of "context" - when the patch is finally applied, the change may not apply at line 4, due to *other* patches having added/deleted lines. Usually git will display 3 lines either side of the changed line. Go ahead, create a 25 line patch, and change line 15, and see what the diff shows then.
Attachment:
pgpvA1EbhW06h.pgp
Description: PGP signature
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies