On Sun, Nov 12, 2006 at 23:12:16 -0500, Ari Johnson wrote:
> Is there a way to use darcs diff without getting the list that would
> be generated by darcs changes?  I am trying to automate a script which
> generates a patch between two tagged versions of the repository.  The
> descriptive header of the resulting patch file will be written by the
> script by extracting from a customized changelog-type file within the
> repository, and the darcs changes output is superfluous at best.

sed is pretty powerful for this kind of stuff, consider maybe:
  sed -ne '/^diff/,$p'

-n          suppress the default echo
/^diff/,$p  print out any lines from the first thing that begins with
            diff to the end of the file

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.

Attachment: pgpK7Be6RoRUX.pgp
Description: PGP signature

_______________________________________________
darcs-users mailing list
[email protected]
http://www.abridgegame.org/mailman/listinfo/darcs-users

Reply via email to