Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Even though this cannot happen in the diff -r case, | 2010-03-22 | 1 | -2/+4 | ||
| | | | | | | | | | | even though diff(1) will exit(3) soon after this mkstemp(3) failure, even though this cannot really leak anything, close the file descriptor as soon as it is not used any more to make correctness of the code more obvious. patch from Igor Zinovik <zinovik dot igor at gmail dot com> on tech@ "looks nice" deraadt@ | |||||
* | `-q' is an output option, hence it is mutually exclusive. | 2010-02-21 | 2 | -17/+17 | ||
| | | | | ok jmc@ | |||||
* | move mutually exclusive options (-c, -e, -f, -n and -u) to the right place. | 2009-11-09 | 2 | -9/+9 | ||
| | | | | ok jmc@ | |||||
* | rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and | 2009-10-27 | 3 | -15/+3 | ||
| | | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms | |||||
* | More cvs/diff/rcs convergence: | 2009-06-07 | 6 | -82/+92 | ||
| | | | | | | | | | | | 1. Mostly variable/function renaming, SIZE_T_MAX->SIZE_MAX, and spacing. 2. One strchr -> strncspn. 3. diff had a weird thing where it set file[12] = ofile[12] but never updated file or ofile, then if file and ofile were different it freed it. I removed it. OK millert | |||||
* | Oops, forgot to pass dflags to diffreg. Now the flags work again. | 2009-06-06 | 3 | -17/+19 | ||
| | | | | OK millert | |||||
* | Pull changes from rcsdiff, similar to what was pulled into cvsdiff. | 2009-06-06 | 3 | -92/+109 | ||
| | | | | OK millert | |||||
* | updates to IEEE Std 1003.1-2008; | 2009-02-08 | 1 | -2/+2 | ||
| | ||||||
* | bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a few | 2009-02-08 | 1 | -3/+3 | ||
| | | | | updates to follow; | |||||
* | use strcspn to properly overwrite '\n' in fgets returned buffer | 2007-09-11 | 1 | -6/+4 | ||
| | | | | ok pyr@, ray@, millert@, moritz@, chl@ | |||||
* | - Change sizeof(type) to sizeof(*ptr). | 2007-06-09 | 2 | -45/+45 | ||
| | | | | | | | | - Move function prototypes before variables. No binary change. OK otto and millert. | |||||
* | convert to new .Dd format; | 2007-05-31 | 1 | -2/+2 | ||
| | ||||||
* | - use a consistent text for STANDARDS | 2007-05-30 | 1 | -3/+7 | ||
| | | | | - note which options are extensions to POSIX | |||||
* | Bring in some changes from rcsdiff: | 2007-05-29 | 6 | -120/+194 | ||
| | | | | | | | | | 1. Replace all the e*alloc functions with the x*alloc versions. 2. Whitespace syncs according to style. 3. Remove the __inline stuff. 4. Remove the min/max functions, using the MAX/MIN macros instead. OK millert@ | |||||
* | improve -p for C++ code: classes definition often have | 2007-03-18 | 1 | -6/+23 | ||
| | | | | | | | | | | | public:/protected:/private: at the start of line. This lets the -p scanner just take note of the section and keep looking for the actual class definition. Also increase function name bufsize so it shows most of these pesky C++ decls... okay otto@ | |||||
* | sort options/synopsis/usage(); | 2007-03-01 | 2 | -54/+51 | ||
| | | | | from Igor Sobrado | |||||
* | print the header only once. | 2007-02-23 | 1 | -8/+10 | ||
| | | | | okay millert@ | |||||
* | Defer printing of the per-file diff header until after the regexp | 2007-02-22 | 1 | -12/+14 | ||
| | | | | | | "ignore" processing has finished. This way we only print the header for files that have diffs. The new behavior matches GNU diff (which is where the -I flag comes from). OK otto@ espie@ | |||||
* | - no need to escape these | 2006-05-05 | 1 | -4/+4 | ||
| | ||||||
* | Append two string using strlcpy()/strlcat() instead of snprintf() to | 2006-02-22 | 1 | -4/+6 | ||
| | | | | | avoid having to check for encoding errors returned by snprintf(). From Ray Lai; ok millert@ jaredy@ | |||||
* | Strip newline from lines used with -I, otherwise ^$ will match all | 2006-02-16 | 1 | -2/+4 | ||
| | | | | lines and ignore them all. With and ok jaredy@ | |||||
* | +.Xr sdiff 1 , | 2005-12-27 | 1 | -1/+2 | ||
| | ||||||
* | bye bye whiteouts | 2005-06-15 | 1 | -5/+4 | ||
| | ||||||
* | Handle all isspace() chars the same for -w and -b. ok millert@ markus@ | 2005-01-13 | 1 | -2/+5 | ||
| | ||||||
* | clarify what -a does; | 2005-01-06 | 1 | -2/+11 | ||
| | | | | prod and ok deraadt@ | |||||
* | If the -L option is specified twice, use it for the second filename | 2004-12-09 | 4 | -20/+35 | ||
| | | | | like GNU diff does. Adapted from a diff by YAMAMOTO Takashi | |||||
* | advancing argv twice doesn't make it better. | 2004-12-07 | 1 | -3/+3 | ||
| | | | | okay otto@. | |||||
* | Use unsigned char for bytes that are fed to isxxx() functions, to improve | 2004-11-27 | 1 | -4/+4 | ||
| | | | | | portability. Spotted by YAMAMOTO Takashi. ok millert@ | |||||
* | Fix the getdirentries() loop memory handling and EOF detection. | 2004-11-26 | 1 | -15/+22 | ||
| | | | | | | | Also fix typo in sizeof. Problem spotted by YAMAMOTO Takashi; this diff joint work with millert@ ok millert@ | |||||
* | Change tabs in string constants to \t. "of course" deraadt@ | 2004-10-20 | 1 | -4/+4 | ||
| | ||||||
* | Keep calling getdirentries() until we no longer fill up our buffer. | 2004-10-02 | 1 | -14/+22 | ||
| | ||||||
* | use sizeof(struct cand) instead of defining an unused cand object, and | 2004-09-14 | 1 | -5/+5 | ||
| | | | | then doing sizeof(cand). silly kids | |||||
* | Implement -I option: ignore changes matching a set of regexes. From | 2004-06-20 | 4 | -28/+144 | ||
| | | | | | Jared Yanovich, with twists from millert@ and me. Testing by brad@, sturm@ and pval@. ok millert@ | |||||
* | If a new hunk immediately follows the previous one, merge them | 2004-06-18 | 1 | -4/+4 | ||
| | | | | | | | into a single hunk. This makes diff produce the same diff as gdiff in more cases. Found by brad@ and sturm@ using the ports tree. ok millert@ | |||||
* | POSIX specifies that in directory mode device special files and | 2004-03-16 | 4 | -7/+25 | ||
| | | | | | | FIFOs shall be skipped. Other types of files may be skipped too (this is implementation-dependent). In directory mode, just skip anything that is not a regular file or directory. OK tedu@ | |||||
* | use new .St macro; | 2004-01-25 | 1 | -2/+2 | ||
| | ||||||
* | Document -p option. ok jmc@ | 2004-01-07 | 1 | -5/+11 | ||
| | ||||||
* | Implement -p option. | 2004-01-07 | 3 | -17/+76 | ||
| | | | | "works here" millert@ ok miod@ deraadt@ | |||||
* | Fix diff -q exit value which was broken in last commit. | 2003-11-22 | 1 | -4/+5 | ||
| | ||||||
* | Fix broken assumption that a file must contain differences if files_differ() | 2003-11-21 | 1 | -7/+7 | ||
| | | | | fails. Fixes "diff -i" exit value. Problem found by Claudio Jeker. | |||||
* | Din't print the "No newline at end of file" to inline (ie: to stdout) | 2003-11-10 | 1 | -4/+8 | ||
| | | | | | | for edit scripts. Instead, print it to stderr. This matches the GNU diff behavior and fixes a problem with RCS and files with no trailing newline. tedu@ OK | |||||
* | Typos in comments from Jared Yanovich <jjy2+ at pitt dot edu> | 2003-11-09 | 2 | -5/+5 | ||
| | ||||||
* | prototype declared static, but function was not. add static to function. | 2003-10-28 | 1 | -3/+3 | ||
| | | | | millert@ otto@ ok | |||||
* | Fix printing of "Only in foo" when foo is "/" (trailing slash removal | 2003-10-07 | 3 | -12/+17 | ||
| | | | | was overzealous in this case). Fix tested by Hugo Villeneuve and myself. | |||||
* | - move `-d' to comparison options, rather then output options | 2003-09-18 | 1 | -6/+6 | ||
| | | | | | | - note (again) that output options are mutually exclusive from Andy Isaacson (PR 3479) | |||||
* | Make -number be an error (similar to my change in grep.c); OK tedu@ | 2003-09-07 | 1 | -9/+15 | ||
| | ||||||
* | - add -P to SYNOPSIS | 2003-09-07 | 2 | -13/+13 | ||
| | | | | | | | | | - remove "mutually exclusive" clause - -c produces 15 *'s, not a dozen - add -a to uage() - sync usage() with SYNOPSIS ok tedu@ | |||||
* | try again at -u#. ok deraadt@ | 2003-09-07 | 1 | -4/+15 | ||
| | ||||||
* | correct ascii file test. ok deraadt@ pb@ | 2003-09-07 | 1 | -5/+4 | ||
| | ||||||
* | restore undocumented -u# support for the old schoolers. :) | 2003-09-06 | 1 | -3/+3 | ||
| | | | | noticed by itojun@, ok deraadt@ |