{"thread":{"id":"4177","subject":"[RFC 1/5] Remove unnecessary local in get_ref_sha1.","startedAt":"2006-05-17T09:54:46Z","lastAt":"2006-05-17T10:43:09Z","messageCount":2,"participants":["Shawn Pearce","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"20123","messageId":"20060517095446.GB28529@spearce.org","threadId":"4177","inReplyTo":null,"subject":"[RFC 1/5] Remove unnecessary local in get_ref_sha1.","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2006-05-17T09:54:46Z","receivedAt":"2006-05-17T09:54:46Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Remove unnecessary local in get_ref_sha1.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n\n---\n\n refs.c |    5 +----\n 1 files changed, 1 insertions(+), 4 deletions(-)\n\n339dddea51656af46f6c8a2fba7f50d96ae2a434\ndiff --git a/refs.c b/refs.c\nindex 6c91ae6..0f3491f 100644\n--- a/refs.c\n+++ b/refs.c\n@@ -220,12 +220,9 @@ static char *ref_lock_file_name(const ch\n \n int get_ref_sha1(const char *ref, unsigned char *sha1)\n {\n-\tconst char *filename;\n-\n \tif (check_ref_format(ref))\n \t\treturn -1;\n-\tfilename = git_path(\"refs/%s\", ref);\n-\treturn read_ref(filename, sha1);\n+\treturn read_ref(git_path(\"refs/%s\", ref), sha1);\n }\n \n static int lock_ref_file(const char *filename, const char *lock_filename,\n-- \n1.3.2.g7278\n"},{"id":"20129","messageId":"7vr72tgcea.fsf@assigned-by-dhcp.cox.net","threadId":"4177","inReplyTo":"20060517095446.GB28529@spearce.org","subject":"Re: [RFC 1/5] Remove unnecessary local in get_ref_sha1.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-05-17T10:43:09Z","receivedAt":"2006-05-17T10:43:09Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Shawn Pearce <spearce@spearce.org> writes:\n\n> Remove unnecessary local in get_ref_sha1.\n>\n> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>\n\nAck.\n"}]}