diff options
author | ache <ache@FreeBSD.org> | 1998-01-16 06:00:36 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1998-01-16 06:00:36 +0000 |
commit | 6057fb933dcf81087a77b663553f1094c03a3e40 (patch) | |
tree | d5102bdddb9fa8e180f865517fbb222312151422 | |
parent | 3ea659a0cbaba6c86b5395b36e687129b92f5128 (diff) | |
download | FreeBSD-src-6057fb933dcf81087a77b663553f1094c03a3e40.zip FreeBSD-src-6057fb933dcf81087a77b663553f1094c03a3e40.tar.gz |
Fix wrong ---/*** names produced using -L diff option
CVS gurus from info-cvs agrees that previous Index: usage is bogus
-rw-r--r-- | contrib/cvs/src/diff.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/contrib/cvs/src/diff.c b/contrib/cvs/src/diff.c index 3fdf3e4..810c5f0 100644 --- a/contrib/cvs/src/diff.c +++ b/contrib/cvs/src/diff.c @@ -568,7 +568,9 @@ diff_fileproc (callerdat, finfo) if (empty_file == DIFF_ADDED) { if (use_rev2 == NULL) - run_setup ("%s %s %s %s", DIFF, opts, DEVNULL, finfo->file); + run_setup ("%s %s -L%s -L%s %s %s", DIFF, opts, + DEVNULL, finfo->fullname, + DEVNULL, finfo->file); else { int retcode; @@ -589,7 +591,9 @@ diff_fileproc (callerdat, finfo) } /* FIXME: what if retcode > 0? */ - run_setup ("%s %s %s %s", DIFF, opts, DEVNULL, tmp); + run_setup ("%s %s -L%s -L%s %s %s", DIFF, opts, + DEVNULL, finfo->fullname, + DEVNULL, tmp); } } else @@ -610,21 +614,23 @@ diff_fileproc (callerdat, finfo) } /* FIXME: what if retcode > 0? */ - run_setup ("%s %s %s %s", DIFF, opts, tmp, DEVNULL); + run_setup ("%s %s -L%s %s %s", DIFF, opts, + finfo->fullname, tmp, DEVNULL); } } else { if (use_rev2) { - run_setup ("%s%s -x,v/ %s %s -r%s -r%s", Rcsbin, RCS_DIFF, + run_setup ("%s%s -x,v/ %s %s -r%s -r%s -L%s", Rcsbin, RCS_DIFF, opts, *options ? options : vers->options, - use_rev1, use_rev2); + use_rev1, use_rev2, finfo->fullname); } else { - run_setup ("%s%s -x,v/ %s %s -r%s", Rcsbin, RCS_DIFF, opts, - *options ? options : vers->options, use_rev1); + run_setup ("%s%s -x,v/ %s %s -r%s -L%s", Rcsbin, RCS_DIFF, opts, + *options ? options : vers->options, use_rev1, + finfo->fullname); } run_arg (vers->srcfile->path); } |