kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: bernd@petrovitsch.priv.at (Bernd Petrovitsch)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Creating Patches
Date: Tue, 03 Jun 2014 23:03:27 +0200	[thread overview]
Message-ID: <1401829409.22251.3.camel@thorin> (raw)
In-Reply-To: <CAHmg6GPVZaRp-FvEPr8CauvHDQCrVFdRkiQudwZw=kQmvxW_sQ@mail.gmail.com>

On Die, 2014-06-03 at 22:15 +0530, me storage wrote:
[...]
> 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 after i changed 2 lines but in the patch file it is
> taking entire 1000+2 lines.So is there any way to generate patch with only
> modified lines?

Well, you are extrapolating from your simple (and thus quite small) lab
test to the (big;-) reality without actually trying it.
That is more often than not not working anyways (and IMHO it doesn't
work at all in almost all cases).

So it would have been better to actually to simply try a `diff` (with
and without `git`) on a file with 1000 lines.

Kind regards,
	Bernd
-- 
"What happens when you read some doc and either it doesn't answer your
question or is demonstrably wrong? In Linux, you say "Linux sucks" and
go read the code. In Windows/Oracle/etc you say "Windows sucks" and
start banging your head against the wall."    - Denis Vlasenko on lkml

      parent reply	other threads:[~2014-06-03 21:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-03 16:45 Creating Patches me storage
2014-06-03 16:55 ` Valdis.Kletnieks at vt.edu
2014-06-03 21:03 ` Bernd Petrovitsch [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1401829409.22251.3.camel@thorin \
    --to=bernd@petrovitsch.priv.at \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).