diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-12-13 23:08:46 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-12-13 23:08:46 +0000 |
commit | 694786c50c22d5994169dbccc5df351705e21da6 (patch) | |
tree | c8ee9240aa1aa9004a79a2e020e18443faaa2260 /usr.bin/cvs | |
parent | 9a68f0956bc09ceb50f78107567b02e9287bfca7 (diff) |
return early if no files are ready to be commited
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/commit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index 1528ddde12f..5c29806de5c 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.10 2004/12/08 17:22:48 jfb Exp $ */ +/* $OpenBSD: commit.c,v 1.11 2004/12/13 23:08:45 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -109,6 +109,8 @@ cvs_commit(int argc, char **argv) return (EX_DATAERR); cvs_file_examine(cvs_files, cvs_commit_prepare, &cl); + if (TAILQ_EMPTY(&cl)) + return (0); if (msg == NULL) { msg = cvs_logmsg_get(CVS_FILE_NAME(cvs_files), NULL, &cl, NULL); |