Carlos Rica, Wed, Aug 22, 2007 14:48:16 +0200: > This is the first version of the program "builtin-reset.c", > intended for replacing the script "git-reset.sh". Very nice code :) > + obj = deref_tag(parse_object(sha1), sha1_to_hex(sha1), 40); > + if (!obj) > + die("Could not parse object '%s'.", rev); > + memcpy(sha1, obj->sha1, sizeof(sha1)); You might consider using hashcpy - To unsubscribe from this list: 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