--walk-reflogs: disallow uninteresting commits
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>
Johannes Schindelin committed
Jan 20, 2007 at 03:28 UTC
db055e65d20b20f8f32eb85ee1a2417d3b95c1c7
1 file changed
+3
reflog-walk.c
+3
@@ -145,6 +145,9 @@ void add_reflog_for_walk(struct reflog_walk_info *info,
145
char *branch, *at = strchr(name, '@');
146
struct commit_reflog *commit_reflog;
147
148
+ if (commit->object.flags & UNINTERESTING)
149
+ die ("Cannot walk reflogs for %s", name);
150
+
151
branch = xstrdup(name);
152
if (at && at[1] == '{') {
153
char *ep;