summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8860fd4)
raw | patch | inline | side by side (parent: 8860fd4)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Sat, 20 Jan 2007 02:28:19 +0000 (03:28 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 21 Jan 2007 05:32:31 +0000 (21:32 -0800) |
Do not allow uninteresting commits with --walk-reflogs, since it is
not clear what should be shown in these cases:
$ git log --walk-reflogs master..next
$ git log --walk-reflogs ^master
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
not clear what should be shown in these cases:
$ git log --walk-reflogs master..next
$ git log --walk-reflogs ^master
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
reflog-walk.c | patch | blob | history |
diff --git a/reflog-walk.c b/reflog-walk.c
index d4b49c7354a4b4cade997a98cb9f097e3d2b2369..2d974116ded2c3b5de8a4ab6cdcd9f02b0ff95c7 100644 (file)
--- a/reflog-walk.c
+++ b/reflog-walk.c
char *branch, *at = strchr(name, '@');
struct commit_reflog *commit_reflog;
+ if (commit->object.flags & UNINTERESTING)
+ die ("Cannot walk reflogs for %s", name);
+
branch = xstrdup(name);
if (at && at[1] == '{') {
char *ep;