diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-07-02 21:11:55 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-07-02 21:11:55 +0000 |
commit | 20b601c3619018747d3e7308cc902daf70b6d8ef (patch) | |
tree | 992e43def10b932df46198659838b9fcc4d5b142 /usr.bin/cvs | |
parent | 9316ec5f5b8c33a4596bbad8ea44648203fc3406 (diff) |
for cvs tag, tag all files in the local directory if no file argument
is given.
ok joris@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/tag.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/cvs/tag.c b/usr.bin/cvs/tag.c index a9d9349c065..a8a6e8319b9 100644 --- a/usr.bin/cvs/tag.c +++ b/usr.bin/cvs/tag.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tag.c,v 1.48 2006/06/19 05:05:17 joris Exp $ */ +/* $OpenBSD: tag.c,v 1.49 2006/07/02 21:11:54 reyk Exp $ */ /* * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> * @@ -47,6 +47,7 @@ int cvs_tag(int argc, char **argv) { int ch, flags; + char *arg = "."; struct cvs_recursion cr; flags = CR_RECURSE_DIRS; @@ -111,7 +112,10 @@ cvs_tag(int argc, char **argv) cr.fileproc = cvs_tag_local; cr.flags = flags; - cvs_file_run(argc, argv, &cr); + if (argc > 0) + cvs_file_run(argc, argv, &cr); + else + cvs_file_run(1, &arg, &cr); return (0); } |