From: kai@gnukai.com (Kai Meyer)
To: kernelnewbies@lists.kernelnewbies.org
Subject: how diff between hardlink trees works?
Date: Fri, 09 Sep 2011 12:12:25 -0600 [thread overview]
Message-ID: <4E6A5709.1050101@gnukai.com> (raw)
In-Reply-To: <CAKuUYSy4wy7sgP4VQ7iN1=vrwcwXAOXJE2oyzNN3+vju27Ng5Q@mail.gmail.com>
On 09/09/2011 09:05 AM, Vaibhav Jain wrote:
> Hi,
>
> I am not able to understand how diff between two trees of which one is
> just contains hardlinks to another's files (cp -al )ing
> works.I am asking this question here because I need to build a custom
> kernel for which I need to generate patch. So the
> documentation suggests to create a hardlink copy of the kernel source
> tree using cp -al and then make changes to
> one of the trees and run a diff.I am wondering that if files are
> hardlinks then changes to one copy will affect another in which case
> diff should give no output.
> Also, the patch I created looks a little odd as it contains complete
> modified files instead of just the differences.
> Please help!
>
> Thanks
> Vaibhav Jain
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Make the hard link copy like normal. Then delete the directory that you
are making changes to (in the hard link directory), then copy the files
over with out hard links. That way "most" of the kernel tree is hard
linked, and just the portion you want to work on is a copy. That way the
diff will work.
Otherwise, skip the hard link part all together, and just make a full
copy. Uses lots of disk space and takes longer to diff.
-Kai Meyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110909/82f0fae4/attachment.html
next prev parent reply other threads:[~2011-09-09 18:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-09 15:05 how diff between hardlink trees works? Vaibhav Jain
2011-09-09 18:12 ` Kai Meyer [this message]
2011-09-09 18:39 ` Vaibhav Jain
2011-09-10 2:47 ` Kai Meyer
2011-09-10 2:50 ` Vaibhav Jain
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=4E6A5709.1050101@gnukai.com \
--to=kai@gnukai.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.