summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 263703f)
raw | patch | inline | side by side (parent: 263703f)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Fri, 9 Mar 2007 02:48:46 +0000 (03:48 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 9 Mar 2007 06:58:03 +0000 (22:58 -0800) |
The earlier patch tried to be nice by just warning, but it seems
more likely that the user wants to adjust the parameters.
Also, it prevents a bundle containing _all_ revisions in the case
when the user only gave one ref, but also rev-list options which
excluded the ref.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
more likely that the user wants to adjust the parameters.
Also, it prevents a bundle containing _all_ revisions in the case
when the user only gave one ref, but also rev-list options which
excluded the ref.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-bundle.c | patch | blob | history |
diff --git a/builtin-bundle.c b/builtin-bundle.c
index 33b533f8219c8922ca01a5fad21a64c5401fecae..ca3de60e44267e8592b86a9632a25f66c5eedea8 100644 (file)
--- a/builtin-bundle.c
+++ b/builtin-bundle.c
* other limiting options could have prevented all the tips
* from getting output.
*/
- if (!(e->item->flags & SHOWN)) {
- warn("ref '%s' is excluded by the rev-list options",
+ if (!(e->item->flags & SHOWN))
+ die("ref '%s' is excluded by the rev-list options",
e->name);
- continue;
- }
write_or_die(bundle_fd, sha1_to_hex(e->item->sha1), 40);
write_or_die(bundle_fd, " ", 1);
write_or_die(bundle_fd, ref, strlen(ref));