public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* creating incremental diffs
@ 2003-02-14 20:48 Maciej Soltysiak
  2003-02-14 21:06 ` John Bradford
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Maciej Soltysiak @ 2003-02-14 20:48 UTC (permalink / raw)
  To: linux-kernel

Hi,

let's say i want to create an incremental diff between
2.4.21pre4aa1 and aa2.

how do i do that?

Regards,
Maciej Soltysiak

-----BEGIN GEEK CODE BLOCK-----
VERSION: 3.1
GIT/MU d-- s:- a-- C++ UL++++$ P L++++ E- W- N- K- w--- O! M- V- PS+ PE++
Y+ PGP- t+ 5-- X+ R tv- b DI+ D---- G e++>+++ h! y?
-----END GEEK CODE BLOCK-----

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

* Re: creating incremental diffs
  2003-02-14 20:48 creating incremental diffs Maciej Soltysiak
@ 2003-02-14 21:06 ` John Bradford
  2003-02-14 21:07 ` Adrian Bunk
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: John Bradford @ 2003-02-14 21:06 UTC (permalink / raw)
  To: Maciej Soltysiak; +Cc: linux-kernel

> let's say i want to create an incremental diff between
> 2.4.21pre4aa1 and aa2.
> 
> how do i do that?

Something like:

cd /usr/src/
diff -rNu linux-2.4.21pre4aa1 linux-2.4.21pre4aa2 > patch

should do it.

John.

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

* Re: creating incremental diffs
  2003-02-14 20:48 creating incremental diffs Maciej Soltysiak
  2003-02-14 21:06 ` John Bradford
@ 2003-02-14 21:07 ` Adrian Bunk
  2003-02-14 21:24   ` Maciej Soltysiak
  2003-02-14 21:22 ` Matt Reppert
  2003-02-14 21:54 ` Muli Ben-Yehuda
  3 siblings, 1 reply; 7+ messages in thread
From: Adrian Bunk @ 2003-02-14 21:07 UTC (permalink / raw)
  To: Maciej Soltysiak; +Cc: linux-kernel

On Fri, Feb 14, 2003 at 09:48:16PM +0100, Maciej Soltysiak wrote:

> Hi,

Hi Maciej,

> let's say i want to create an incremental diff between
> 2.4.21pre4aa1 and aa2.
> 
> how do i do that?

install Tim Waugh's patchutils [1] and do an

  interdiff -z 2.4.21pre4aa1.gz 2.4.21pre4aa2.gz > my-aa1-aa2

> Regards,
> Maciej Soltysiak

cu
Adrian

[1] http://cyberelk.net/tim/data/patchutils/

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: creating incremental diffs
  2003-02-14 20:48 creating incremental diffs Maciej Soltysiak
  2003-02-14 21:06 ` John Bradford
  2003-02-14 21:07 ` Adrian Bunk
@ 2003-02-14 21:22 ` Matt Reppert
  2003-02-14 21:44   ` Larry McVoy
  2003-02-14 21:54 ` Muli Ben-Yehuda
  3 siblings, 1 reply; 7+ messages in thread
From: Matt Reppert @ 2003-02-14 21:22 UTC (permalink / raw)
  To: Maciej Soltysiak; +Cc: linux-kernel

On Fri, 14 Feb 2003 21:48:16 +0100 (CET)
Maciej Soltysiak <solt@dns.toxicfilms.tv> wrote:

> Hi,
> 
> let's say i want to create an incremental diff between
> 2.4.21pre4aa1 and aa2.
>
> how do I do that?

Make two trees, one with aa1, one with aa2. Diff them. (The "slow, painful"
method.)

You could also use interdiff from diffutils.

Matt

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

* Re: creating incremental diffs
  2003-02-14 21:07 ` Adrian Bunk
@ 2003-02-14 21:24   ` Maciej Soltysiak
  0 siblings, 0 replies; 7+ messages in thread
From: Maciej Soltysiak @ 2003-02-14 21:24 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: linux-kernel

>   interdiff -z 2.4.21pre4aa1.gz 2.4.21pre4aa2.gz > my-aa1-aa2
Ok, works great.

But the patches created by interdiff and the method proposed by Joshua
are different :)
5kb of differences. Intriguing.


Regards,
Maciej



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

* Re: creating incremental diffs
  2003-02-14 21:22 ` Matt Reppert
@ 2003-02-14 21:44   ` Larry McVoy
  0 siblings, 0 replies; 7+ messages in thread
From: Larry McVoy @ 2003-02-14 21:44 UTC (permalink / raw)
  To: Matt Reppert; +Cc: Maciej Soltysiak, linux-kernel

On Fri, Feb 14, 2003 at 03:22:31PM -0600, Matt Reppert wrote:
> > let's say i want to create an incremental diff between
> > 2.4.21pre4aa1 and aa2.

If you are using BK

	bk export -tpatch -rv2.4.21pre4aa1,vaa2
-- 
---
Larry McVoy            	 lm at bitmover.com           http://www.bitmover.com/lm 

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

* Re: creating incremental diffs
  2003-02-14 20:48 creating incremental diffs Maciej Soltysiak
                   ` (2 preceding siblings ...)
  2003-02-14 21:22 ` Matt Reppert
@ 2003-02-14 21:54 ` Muli Ben-Yehuda
  3 siblings, 0 replies; 7+ messages in thread
From: Muli Ben-Yehuda @ 2003-02-14 21:54 UTC (permalink / raw)
  To: Maciej Soltysiak; +Cc: linux-kernel

On Fri, Feb 14, 2003 at 09:48:16PM +0100, Maciej Soltysiak wrote:
> Hi,
> 
> let's say i want to create an incremental diff between
> 2.4.21pre4aa1 and aa2.

look for a package called patchutils, which includes interdiff. 

mulix@alhambra:~$ apt-cache show patchutils
Package: patchutils
[snipped]
Description: Utilities to work with patches
 This package includes the following utilities:
  - combinediff creates a cumulative patch from two incremental patches
  - dehtmldiff extracts a diff from an HTML page
  - filterdiff extracts or excludes diffs from a diff file
  - fixcvsdiff fixes diff files created by CVS that "patch" mis-interprets
  - flipdiff exchanges the order of two patches
  - grepdiff shows which files are modified by a patch matching a regex
  - interdiff shows differences between two unified diff files
  - lsdiff shows which files are modified by a patch
  - recountdiff recomputes counts and offsets in unified context diffs
  - rediff fixes offsets and counts of a hand-edited diff
  - splitdiff separates out incremental patches
  - unwrapdiff demangles patches that have been word-wrapped

-- 
Muli Ben-Yehuda
http://www.mulix.org
http://syscalltrack.sf.net


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

end of thread, other threads:[~2003-02-14 21:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-14 20:48 creating incremental diffs Maciej Soltysiak
2003-02-14 21:06 ` John Bradford
2003-02-14 21:07 ` Adrian Bunk
2003-02-14 21:24   ` Maciej Soltysiak
2003-02-14 21:22 ` Matt Reppert
2003-02-14 21:44   ` Larry McVoy
2003-02-14 21:54 ` Muli Ben-Yehuda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox