This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How do I submit a patch that adds files?


On Jan 29,  3:05pm, Michael Elizabeth Chastain wrote:

> OK, I've got write-after-approval access and I want to add a new
> test script:
> 
>   gdb/testsuite/gdb.base/structs3.exp
>   gdb/testsuite/gdb.base/structs3.c
> 
> When I do "cvs diff", it gives me some useless ? messages:
> 
>   ? gdb/testsuite/gdb.base/structs3.exp
>   ? gdb/testsuite/gdb.base/structs3.c
> 
> As far as I know, my next CVS move would be "cvs add structs3.exp",
> but I don't have authority to do that on the repository.

The "cvs add" operation simply marks the file as being added in your
working directory.  It doesn't actually add it to the repository.
For that to happen, you'll need to do a "cvs commit" after the
"cvs add".

> What is the procedure for me to submit a patch that adds new files?

Do a "cvs add".  Then generate a patch via "cvs diff -upN" and
submit it as usual.  After approval, do a "cvs commit" on the files
in question.

Kevin

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]