Merge with master for a couple more fixes.
authorJunio C Hamano <junkio@cox.net>
Fri, 19 Aug 2005 20:55:59 +0000 (13:55 -0700)
committerJunio C Hamano <junkio@cox.net>
Fri, 19 Aug 2005 20:55:59 +0000 (13:55 -0700)
cache.h
git-format-patch-script
rev-list.c

diff --git a/cache.h b/cache.h
index 9964667..ba5c4ab 100644 (file)
--- a/cache.h
+++ b/cache.h
 #define NORETURN __attribute__((__noreturn__))
 #else
 #define NORETURN
-#endif
-
 #ifndef __attribute__
 #define __attribute__(x)
 #endif
+#endif
 
 /*
  * Intensive research over the course of many years has shown that
index 3565205..9b13b88 100755 (executable)
@@ -195,7 +195,7 @@ Date: '"$ad"
                        echo
                }
        }
-
+       echo
        echo '---'
        echo
        git-diff-tree -p $diff_opts "$commit" | git-apply --stat --summary
index ce5b8b2..2ed5e87 100644 (file)
@@ -418,6 +418,8 @@ static struct commit *get_commit_reference(const char *name, unsigned int flags)
                if (tag_objects && !(object->flags & UNINTERESTING))
                        add_pending_object(object, tag->tag);
                object = parse_object(tag->tagged->sha1);
+               if (!object)
+                       die("bad object %s", sha1_to_hex(tag->tagged->sha1));
        }
 
        /*