[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cvs diff -uN - issue

From: Mark D. Baushke
Subject: Re: cvs diff -uN - issue
Date: Mon, 10 Mar 2003 09:50:59 -0800

J. Grant <address@hidden> writes:

> I have not heard anything back from my last email to the
> address@hidden address, so I hope you might be able to address this issue.
> Using 1.11.5 server, and 1.11.2 client does not support "cvs diff -uN"
> correctly. No New files are included in the diff.
> ? README.PS2Linux
> ? src/joystick/ps2linux
> ? test/testactuator.c
> There are two files and one directory with files inside I need to add.
> I can not "cvs add" or "cvs import" because I do not have an CVS
> account, I am only a contributer.

A "cvs add" of a directory does you be able to have permission to commit
a new directory in the repository.

The "cvs diff -uN" will only diff files that are in your current tree
that cvs has been told about. These are either files that are cvs
already knew about when you did the checkout or files that you have told
it about via a "cvs add" command.

If you have other files in your tree, cvs will ignore them. This is

> Is this a known issue? Is there a patch for this?

You should be able to "cvs add" new files to your tree even without the
ability to commit them to the repository as this is a local operation.

For the new directory, well, you could just do something like:

    cvs diff -uNp > my-cvs.diffs
    mkdir empty-directory
    diff -uN empty-directory new-directory > my-new-directory.diffs

and then massage the output of the two .diffs files into a single file
for submission to whoever needs the patch.

        Good luck,
        -- Mark

reply via email to

[Prev in Thread] Current Thread [Next in Thread]