Re: [PATCH] Make "git reset" a builtin. (incomplete) From: Alex Riesen <hidden> Date: 2016-06-15 22:43:30 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
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help