diff without printing added files?
Martin Pool
mbp at sourcefrog.net
Mon Feb 6 21:45:34 UTC 2012
On 7 February 2012 08:38, Chris Hecker <checker at d6.com> wrote:
>
> bzr diff will print the entirety of all added files. Is there a way to
> just get it to print diffs of existing files, and just print "added
> foo.c" or whatever for new files, kind of like diff without -N?
Two ways:
1- write a patch to bzr to add that option; it shouldn't be very
complicated to just add a new command line option and pass it down in
to diff generation
2- do it outside of bzr by writing a shell script that saves the whole
diff, looks for added files, then uses filterdiff to cut them out
--
Martin
More information about the bazaar
mailing list