Question on interpreting Hunk in a patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,
 
How to interpret hunk in patch?
 
a.txt
-----
this is first line
this is second line
this is third line
and this is last line
 
 
b.txt
------
this is first line
this is second line
this line is inserted
this is third line
and this is last line
 
 
I did "diff -up a.txt b.txt > patch"
I get -
 
patch
-------
--- a   2008-01-11 17:08:58.000000000 +0530
+++ b   2008-01-11 17:09:15.000000000 +0530
@@ -1,5 +1,6 @@
 this is first line
 this is second line
+this line is inserted
 this is third line
 and this is last line
 
---------------------------------------------
 
In the hunk of this patch - what is the meaning of these numbers?
 
Thanks
 

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux