From: Johannes Schindelin Date: Sat, 20 Jan 2007 02:28:19 +0000 (+0100) Subject: --walk-reflogs: disallow uninteresting commits X-Git-Tag: v1.5.0-rc2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=db055e65d20b20f8f32eb85ee1a2417d3b95c1c7;p=git.git --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 --- diff --git a/reflog-walk.c b/reflog-walk.c index d4b49c735..2d974116d 100644 --- a/reflog-walk.c +++ b/reflog-walk.c @@ -145,6 +145,9 @@ void add_reflog_for_walk(struct reflog_walk_info *info, 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;