summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* add missing newline, fixes D_NORMAL diff output;joris2005-10-081-2/+2
| | | | ok niallo@
* KNF;joris2005-10-081-4/+6
| | | | from sir reyk@
* basic `ci' support is here! more coming soon.niallo2005-10-071-68/+89
| | | | | | combined effort with joris. ok joris@
* knf and spacing, ok joris@reyk2005-10-071-4/+5
|
* - add a diff.h header file, corresponding to public functions in diff.cniallo2005-10-051-37/+15
| | | | | | | | | | | | and some #defines - include this header in rcs.c - link rcs against diff.c this allows us to use the existing diff work from opencvs within functions in the rcs.c API and thus in rcs programs. paves the way for diff support in usr.bin/rcs programs. ok joris@
* missing casts; ok jorisxsa2005-08-141-6/+6
|
* use LP_NOTICE instead of LP_INFO where appropriate;xsa2005-07-271-2/+2
|
* KNF;xsa2005-07-251-47/+48
|
* use the cf_name field of the CVSFILE struct instead of using the oldjoris2005-07-221-4/+3
| | | | | | | | CVS_FILE_NAME macro. This macro used to be nifty because of all the referencing for the names, but since we don't do that anymore and use cf_name directly... byebye CVS_FILE_NAME() okay xsa@
* <sys/param.h> is already included in "cvs.h", no need to duplicate;xsa2005-07-211-2/+1
|
* the status variable is gone.joris2005-07-111-4/+1
|
* add proper handling for realloc() failure cases, avoiding bad idiom andniallo2005-07-111-12/+52
| | | | | | plugging a few potential memory leaks. ok joris@
* - get rid of an unused variable.joris2005-07-101-20/+18
| | | | - stone() and newcand() could fail, handle it.
* no need to declare the verbosity var here as it is already done in cvs.h;xsa2005-07-101-3/+1
|
* only display info msg if -q is not specified;xsa2005-07-101-2/+5
|
* kill useless "&& r1 == NULL" expression.niallo2005-07-091-2/+2
| | | | ok joris@
* explicit casts to const char *niallo2005-07-091-3/+3
| | | | ok joris@
* - fix commands usagexsa2005-06-281-6/+8
| | | | | | - fix rdiff aliases ok joris
* * introduce cvs_putchar(), to output a single character to stdout.joris2005-06-051-42/+42
| | | | | | | | | if we are in server mode send 'M' when needed. * switch diff command to cvs_printf() and cvs_putchar() so it will output correctly in local and server mode. ok xsa@, jfb@
* headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;xsa2005-05-311-7/+7
|
* remove LP_ERROR log priority level and rather use LP_ERR as they are bothxsa2005-05-311-3/+3
| | | | | | the same... ok jfb joris
* b1 and b2 can be NULL if an invalid revision is given.joris2005-05-311-1/+16
| | | | if one of them is NULL, bail out.
* check cvs_sendarg() return value; ok joris@xsa2005-05-301-13/+20
|
* if the user specified a revision to diff, stop caring if the file isjoris2005-05-271-2/+2
| | | | up to date.
* Merge the cvs_cmd and cvs_cmd_info structures and add the necessaryjfb2005-05-241-143/+196
| | | | | | | fields to hook local versions of the commands. This needs to go in before it gets any bigger ok joris
* remove ununsed codejfb2005-05-221-28/+6
|
* correct wrong error code usage.joris2005-05-201-2/+2
| | | | ok jfb@, xsa@
* resurrect missing parts to generate rcsdiff(1)-style diffs with the -njfb2005-04-251-2/+21
| | | | | | flag ok xsa
* missing '-R' (force recursion) option for diff.joris2005-04-221-1/+4
| | | | noticed by brad@
* Modify the CVSFILE structure using a union to keep information aboutjfb2005-04-181-22/+9
| | | | | | | | | both files and directories. We can now keep the revision number for regular files, and don't need to fetch the appropriate entry in the command callbacks. This saves a huge amount of parsing on Entries files. ok joris@
* snprintf return value check; joris okxsa2005-04-161-2/+10
|
* completely fix the diff commandjoris2005-04-141-2/+2
|
* introduce our own set of error codes used by the commands to reportjoris2005-04-121-13/+13
| | | | | | what exactly went wrong in case of an error. ok jfb@
* don't include sysexits.h now we don't use those error codesjoris2005-04-111-2/+1
| | | | anymore.
* remove EX_USAGE error codesjoris2005-04-111-3/+3
| | | | ok jfb@
* first round of EX_* exit codes removal; ok joris@.xsa2005-04-031-2/+2
|
* remove unused variable.joris2005-03-311-3/+1
|
* move all the client commands to the new command framework.joris2005-03-301-53/+49
| | | | | | eliminates a lot of duplicate code. ok jfb@
* Many improvements to the RCS support:jfb2005-02-271-2/+2
| | | | | | | | | | | | | - make it possible to specify creation and the file mode in rcs_open() - implicitly write the contents to disk on rcs_close() if the RCS handle has been changed - fix a bug in the output of the `expand' keyword - add functions to retrieve and modify the expansion mode - rcs_parse() shouldn't be available to the outside - empty string instead of `(null)' if there is no description ok Joris
* - switch to rcsnum_parse() where appropriatejfb2005-02-251-5/+3
| | | | - make rcsnum_parse() fail if it encounters an invalid character
* first round of malloc()/realloc() fixes:jfb2005-02-011-15/+74
| | | | | | | | | | - avoid using the original pointer to store the return value of realloc(), so we can free it in case of failure - check return values for allocation failures and return errors in the appropriate cases - free the diff buffers once the diff has been generated feedback and testing by Joris Vink
* apply sizeof() to the appropriate buffer in a strlcpy() calljfb2005-01-291-2/+2
| | | | spotted by Andrey Matveev (andrushock at korovino dot net)
* missing space and kill a gcc warningjfb2005-01-141-3/+4
|
* resurrect the -N and -p options to the diff commandjfb2005-01-131-7/+63
| | | | requested and tested by brad@, thanks!
* remove signedness warnings; jfb okxsa2004-12-281-2/+2
|
* rename parameters to avoid shadowing global declarationsjfb2004-12-281-7/+7
|
* use Argument instead of Argumentx when sending a revision or datejfb2004-12-281-5/+5
| | | | this makes the -r and -D options work with diff
* complain about lost filesjfb2004-12-141-1/+6
|
* use mkstemp for local diff -r r1 -r r2; ok jfb@djm2004-12-081-4/+13
|
* less whitespace, more pretty. ok jfbtedu2004-12-071-8/+1
|