kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Question regarding patches
@ 2012-12-19  8:47 Shraddha Kamat
  2012-12-19  9:26 ` Jeff Kirsher
  2012-12-19  9:58 ` Lijo Antony
  0 siblings, 2 replies; 8+ messages in thread
From: Shraddha Kamat @ 2012-12-19  8:47 UTC (permalink / raw)
  To: kernelnewbies

Sorry if this is not relevant to kernel. But since I am 
patching the kernel - Please consider this as a uber beginner
question to ask on this mailing list - forgive me for that.

Now my question is - 

What "@@ -321,7 +321,8 @@" mean in this snippet from the patch -  

diff --git a/exec.h b/exec.h
index 722c620..6abb687 100644
--- a/exec.h
+++ b/exec.h
@@ -321,7 +321,8 @@ static void acct_arg_size(struct linux_binprm *bprm,
unsigned long pages);

-- Shraddha 

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

* Question regarding patches
  2012-12-19  8:47 Question regarding patches Shraddha Kamat
@ 2012-12-19  9:26 ` Jeff Kirsher
  2012-12-19  9:58 ` Lijo Antony
  1 sibling, 0 replies; 8+ messages in thread
From: Jeff Kirsher @ 2012-12-19  9:26 UTC (permalink / raw)
  To: kernelnewbies

On 12/19/2012 12:47 AM, Shraddha Kamat wrote:
> Sorry if this is not relevant to kernel. But since I am 
> patching the kernel - Please consider this as a uber beginner
> question to ask on this mailing list - forgive me for that.
>
> Now my question is - 
>
> What "@@ -321,7 +321,8 @@" mean in this snippet from the patch -  

The first number -321 means the line number of the original file that
the change takes place.  The next number & means that before the change,
there were 7 lines of code.  The next number +321 is the line number
after the change.  Since this is the first (and only change) it is the
same as the first number.  If there multiple changes in a patch, this
number can differ greatly from the first number.  The last number is the
lines of code after the change.
>
> diff --git a/exec.h b/exec.h
> index 722c620..6abb687 100644
> --- a/exec.h
> +++ b/exec.h
> @@ -321,7 +321,8 @@ static void acct_arg_size(struct linux_binprm *bprm,
> unsigned long pages);
>
> -- Shraddha 
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 899 bytes
Desc: OpenPGP digital signature
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121219/cb9f2f39/attachment.bin 

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

* Question regarding patches
  2012-12-19  8:47 Question regarding patches Shraddha Kamat
  2012-12-19  9:26 ` Jeff Kirsher
@ 2012-12-19  9:58 ` Lijo Antony
  2012-12-19 10:13   ` Shraddha Kamat
  1 sibling, 1 reply; 8+ messages in thread
From: Lijo Antony @ 2012-12-19  9:58 UTC (permalink / raw)
  To: kernelnewbies

On 12/19/2012 12:47 PM, Shraddha Kamat wrote:
> Sorry if this is not relevant to kernel. But since I am
> patching the kernel - Please consider this as a uber beginner
> question to ask on this mailing list - forgive me for that.
>
> Now my question is -
>
> What "@@ -321,7 +321,8 @@" mean in this snippet from the patch -
>
> diff --git a/exec.h b/exec.h
> index 722c620..6abb687 100644
> --- a/exec.h
> +++ b/exec.h
> @@ -321,7 +321,8 @@ static void acct_arg_size(struct linux_binprm *bprm,
> unsigned long pages);
>

http://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html
http://www.artima.com/weblogs/viewpost.jsp?thread=164293

-lijo

> -- Shraddha
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

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

* Question regarding patches
  2012-12-19  9:58 ` Lijo Antony
@ 2012-12-19 10:13   ` Shraddha Kamat
  2012-12-19 10:33     ` devendra.aaru
                       ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Shraddha Kamat @ 2012-12-19 10:13 UTC (permalink / raw)
  To: kernelnewbies

On Wed, 2012-12-19 at 13:58 +0400, Lijo Antony wrote:
> On 12/19/2012 12:47 PM, Shraddha Kamat wrote:
> > Sorry if this is not relevant to kernel. But since I am
> > patching the kernel - Please consider this as a uber beginner
> > question to ask on this mailing list - forgive me for that.
> >
> > Now my question is -
> >
> > What "@@ -321,7 +321,8 @@" mean in this snippet from the patch -
> >
> > diff --git a/exec.h b/exec.h
> > index 722c620..6abb687 100644
> > --- a/exec.h
> > +++ b/exec.h
> > @@ -321,7 +321,8 @@ static void acct_arg_size(struct linux_binprm *bprm,
> > unsigned long pages);
> >
> 
> http://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html
> http://www.artima.com/weblogs/viewpost.jsp?thread=164293
> 
> -lijo
> 
But I don't see any mention of the "index" field here // 
see line "index 722c620..6abb687 100644". What does this mean ?

> > -- Shraddha
> >
> >
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> >
> 
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

-- Shraddha 

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

* Question regarding patches
  2012-12-19 10:13   ` Shraddha Kamat
@ 2012-12-19 10:33     ` devendra.aaru
  2012-12-19 10:33     ` Avinash Patil
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: devendra.aaru @ 2012-12-19 10:33 UTC (permalink / raw)
  To: kernelnewbies

On Wed, Dec 19, 2012 at 5:13 AM, Shraddha Kamat <sh2008ka@gmail.com> wrote:
> On Wed, 2012-12-19 at 13:58 +0400, Lijo Antony wrote:
>> On 12/19/2012 12:47 PM, Shraddha Kamat wrote:
>> > Sorry if this is not relevant to kernel. But since I am
>> > patching the kernel - Please consider this as a uber beginner
>> > question to ask on this mailing list - forgive me for that.
>> >
>> > Now my question is -
>> >
>> > What "@@ -321,7 +321,8 @@" mean in this snippet from the patch -
>> >
>> > diff --git a/exec.h b/exec.h
>> > index 722c620..6abb687 100644
>> > --- a/exec.h
>> > +++ b/exec.h
>> > @@ -321,7 +321,8 @@ static void acct_arg_size(struct linux_binprm *bprm,
>> > unsigned long pages);
>> >
>>
>> http://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html
>> http://www.artima.com/weblogs/viewpost.jsp?thread=164293
>>
>> -lijo
>>
> But I don't see any mention of the "index" field here //
> see line "index 722c620..6abb687 100644". What does this mean ?
>
the index 7222...6bbb are may be the git ids or some git's references...

100644 is the file mode.

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

* Question regarding patches
  2012-12-19 10:13   ` Shraddha Kamat
  2012-12-19 10:33     ` devendra.aaru
@ 2012-12-19 10:33     ` Avinash Patil
  2012-12-19 11:01     ` Tobias Boege
  2012-12-19 17:01     ` Anand Arumugam
  3 siblings, 0 replies; 8+ messages in thread
From: Avinash Patil @ 2012-12-19 10:33 UTC (permalink / raw)
  To: kernelnewbies

I think those are git commit IDs.

-Avinash


On Wed, Dec 19, 2012 at 3:43 PM, Shraddha Kamat <sh2008ka@gmail.com> wrote:

> On Wed, 2012-12-19 at 13:58 +0400, Lijo Antony wrote:
> > On 12/19/2012 12:47 PM, Shraddha Kamat wrote:
> > > Sorry if this is not relevant to kernel. But since I am
> > > patching the kernel - Please consider this as a uber beginner
> > > question to ask on this mailing list - forgive me for that.
> > >
> > > Now my question is -
> > >
> > > What "@@ -321,7 +321,8 @@" mean in this snippet from the patch -
> > >
> > > diff --git a/exec.h b/exec.h
> > > index 722c620..6abb687 100644
> > > --- a/exec.h
> > > +++ b/exec.h
> > > @@ -321,7 +321,8 @@ static void acct_arg_size(struct linux_binprm
> *bprm,
> > > unsigned long pages);
> > >
> >
> >
> http://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html
> > http://www.artima.com/weblogs/viewpost.jsp?thread=164293
> >
> > -lijo
> >
> But I don't see any mention of the "index" field here //
> see line "index 722c620..6abb687 100644". What does this mean ?
>
> > > -- Shraddha
> > >
> > >
> > >
> > > _______________________________________________
> > > Kernelnewbies mailing list
> > > Kernelnewbies at kernelnewbies.org
> > > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> > >
> >
> >
> > _______________________________________________
> > Kernelnewbies mailing list
> > Kernelnewbies at kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> -- Shraddha
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121219/3d362e3d/attachment.html 

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

* Question regarding patches
  2012-12-19 10:13   ` Shraddha Kamat
  2012-12-19 10:33     ` devendra.aaru
  2012-12-19 10:33     ` Avinash Patil
@ 2012-12-19 11:01     ` Tobias Boege
  2012-12-19 17:01     ` Anand Arumugam
  3 siblings, 0 replies; 8+ messages in thread
From: Tobias Boege @ 2012-12-19 11:01 UTC (permalink / raw)
  To: kernelnewbies

On Wed, 19 Dec 2012, Shraddha Kamat wrote:
> On Wed, 2012-12-19 at 13:58 +0400, Lijo Antony wrote:
> > On 12/19/2012 12:47 PM, Shraddha Kamat wrote:
> > > Sorry if this is not relevant to kernel. But since I am
> > > patching the kernel - Please consider this as a uber beginner
> > > question to ask on this mailing list - forgive me for that.
> > >
> > > Now my question is -
> > >
> > > What "@@ -321,7 +321,8 @@" mean in this snippet from the patch -
> > >
> > > diff --git a/exec.h b/exec.h
> > > index 722c620..6abb687 100644
> > > --- a/exec.h
> > > +++ b/exec.h
> > > @@ -321,7 +321,8 @@ static void acct_arg_size(struct linux_binprm *bprm,
> > > unsigned long pages);
> > >
> > 
> > http://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html
> > http://www.artima.com/weblogs/viewpost.jsp?thread=164293
> > 
> > -lijo
> > 
> But I don't see any mention of the "index" field here // 
> see line "index 722c620..6abb687 100644". What does this mean ?

See "man git-diff" (GENERATING PATCHES WITH -P) for the information.

Regards,
Tobi

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

* Question regarding patches
  2012-12-19 10:13   ` Shraddha Kamat
                       ` (2 preceding siblings ...)
  2012-12-19 11:01     ` Tobias Boege
@ 2012-12-19 17:01     ` Anand Arumugam
  3 siblings, 0 replies; 8+ messages in thread
From: Anand Arumugam @ 2012-12-19 17:01 UTC (permalink / raw)
  To: kernelnewbies

On Wed, Dec 19, 2012 at 2:13 AM, Shraddha Kamat <sh2008ka@gmail.com> wrote:

> On Wed, 2012-12-19 at 13:58 +0400, Lijo Antony wrote:
> > On 12/19/2012 12:47 PM, Shraddha Kamat wrote:
> > > Sorry if this is not relevant to kernel. But since I am
> > > patching the kernel - Please consider this as a uber beginner
> > > question to ask on this mailing list - forgive me for that.
> > >
> > > Now my question is -
> > >
> > > What "@@ -321,7 +321,8 @@" mean in this snippet from the patch -
> > >
> > > diff --git a/exec.h b/exec.h
> > > index 722c620..6abb687 100644
> > > --- a/exec.h
> > > +++ b/exec.h
> > > @@ -321,7 +321,8 @@ static void acct_arg_size(struct linux_binprm
> *bprm,
> > > unsigned long pages);
> > >
> >
> >
> http://www.gnu.org/software/diffutils/manual/html_node/Detailed-Unified.html
> > http://www.artima.com/weblogs/viewpost.jsp?thread=164293
> >
> > -lijo
> >
> But I don't see any mention of the "index" field here //
> see line "index 722c620..6abb687 100644". What does this mean ?
>
>
'722c620' is the commit id in which a/exec.h is part of and
'6abb687' is the commit id in which b/exec.h is part of. 'a' and 'b' are
not folders. Its just a notation that diff uses for left and right side.

to know more on git look here: http://git-scm.com/book
and git diff in particular look at the man page or search for "git diff"
and you get a lot of links that explains it...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121219/425bca1d/attachment.html 

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

end of thread, other threads:[~2012-12-19 17:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-19  8:47 Question regarding patches Shraddha Kamat
2012-12-19  9:26 ` Jeff Kirsher
2012-12-19  9:58 ` Lijo Antony
2012-12-19 10:13   ` Shraddha Kamat
2012-12-19 10:33     ` devendra.aaru
2012-12-19 10:33     ` Avinash Patil
2012-12-19 11:01     ` Tobias Boege
2012-12-19 17:01     ` Anand Arumugam

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).