Marc Winiger wrote:
Hi
Stefan Sperling wrote:
How do you 'nicely' diff files you've added?
The only way I know is either manually hacking the CVS/Entries
file or using a tool that does this such as cvsdo ("cvsdo add <file>")
from cvsutils. Then cvs diff will pick them up.
Do you have another way?
You could do something like that:
# cvs diff -u > a.diff
and add for each new file
# diff -u /dev/null patches/patch-a_b >> a.diff
It can be done in one step (almost) if you have a mirror of the CVS
tree at hand. 'cvs add' the new files (this does not change the repository)
then do a 'cvs diff -uRN <dir> >a.diff'
Just be careful when adding directories, these are created in repository
immediately.