Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
--walk-reflogs: disallow uninteresting commits
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>
reflog-walk.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
8860fd4
)
diff --git
a/reflog-walk.c
b/reflog-walk.c
index d4b49c7354a4b4cade997a98cb9f097e3d2b2369..2d974116ded2c3b5de8a4ab6cdcd9f02b0ff95c7 100644
(file)
--- 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;