On Mon, Apr 24, 2006 at 04:23:24PM +1200, Martin Langhoff wrote: > Is there a practical way to ask in what heads they are? This should work: $ cat <<'EOF' >find-commit #!/bin/sh commit=$1; shift for i in "$@"; do git rev-list $i | fgrep -q $commit && echo $i done EOF $ sh find-commit full-40char-sha1-of-commit head1 head2 ... You potentially end up traversing parts of the history multiple times (if they are shared by multiple heads) but git is fast enough that performance is fine. I don't know of a way to do it all in a git command without the fgrep. -Peff - : send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html