This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: How do I submit a patch that adds files?
- To: Michael Elizabeth Chastain <chastain at cygnus dot com>, gdb-patches at sourceware dot cygnus dot com
- Subject: Re: How do I submit a patch that adds files?
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Mon, 29 Jan 2001 16:25:34 -0700
- References: <200101292305.PAA19067@bosch.cygnus.com>
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