From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.176.0/21 X-Spam-Status: No, score=-3.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 From: "J. Bruce Fields" Subject: Re: [PATCH] Enable reflogs by default in any repository with a working directory. Date: Thu, 14 Dec 2006 18:10:38 -0500 Message-ID: <20061214231038.GC5147@fieldses.org> References: <7v1wn243mu.fsf@assigned-by-dhcp.cox.net> <20061214224117.GA26374@spearce.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Date: Thu, 14 Dec 2006 23:10:49 +0000 (UTC) Cc: Junio C Hamano , git@vger.kernel.org Return-path: Envelope-to: gcvg-git@gmane.org Content-Disposition: inline In-Reply-To: <20061214224117.GA26374@spearce.org> User-Agent: Mutt/1.5.13 (2006-08-11) Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Received: from vger.kernel.org ([209.132.176.167]) by dough.gmane.org with esmtp (Exim 4.50) id 1Guziu-0007ki-8Q for gcvg-git@gmane.org; Fri, 15 Dec 2006 00:10:44 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751749AbWLNXKl (ORCPT ); Thu, 14 Dec 2006 18:10:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751762AbWLNXKl (ORCPT ); Thu, 14 Dec 2006 18:10:41 -0500 Received: from mail.fieldses.org ([66.93.2.214]:53382 "EHLO pickle.fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751749AbWLNXKl (ORCPT ); Thu, 14 Dec 2006 18:10:41 -0500 Received: from bfields by pickle.fieldses.org with local (Exim 4.63) (envelope-from ) id 1Guzio-0002FN-PH; Thu, 14 Dec 2006 18:10:38 -0500 To: "Shawn O. Pearce" Sender: git-owner@vger.kernel.org On Thu, Dec 14, 2006 at 05:41:17PM -0500, Shawn O. Pearce wrote: > New and experienced Git users alike are finding out too late that > they forgot to enable reflogs in the current repository, and cannot > use the information stored within it to recover from an incorrectly > entered command such as `git reset --hard HEAD^^^` when they really > meant HEAD^^ (aka HEAD~2). Stupid question--I assume a mention in the reflog doesn't count as a real reference to an object, so they won't save you in the case when you pruned recently?