From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Kastrup Subject: Re: `git stash pop` UX Problem Date: Thu, 27 Feb 2014 01:19:14 +0100 Message-ID: <878usx5rwd.fsf@fencepost.gnu.org> References: <530B0395.5030407@booking.com> <530C953F.9050805@booking.com> <530CA4C9.60601@booking.com> <530D97BA.1080107@booking.com> <87ha7l62d6.fsf@fencepost.gnu.org> Mime-Version: 1.0 Content-Type: text/plain Cc: Matthieu Moy , Omar Othman , Brandon McCaig , git@vger.kernel.org To: Junio C Hamano X-From: git-owner@vger.kernel.org Thu Feb 27 01:19:42 2014 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WIohR-00027B-4C for gcvg-git-2@plane.gmane.org; Thu, 27 Feb 2014 01:19:41 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753871AbaB0ATh (ORCPT ); Wed, 26 Feb 2014 19:19:37 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:34112 "EHLO fencepost.gnu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753288AbaB0ATg (ORCPT ); Wed, 26 Feb 2014 19:19:36 -0500 Received: from localhost ([127.0.0.1]:33152 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIohK-0007Nm-2K; Wed, 26 Feb 2014 19:19:34 -0500 Received: by lola (Postfix, from userid 1000) id 835B6E9C00; Thu, 27 Feb 2014 01:19:14 +0100 (CET) In-Reply-To: (Junio C. Hamano's message of "Wed, 26 Feb 2014 14:17:10 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Junio C Hamano writes: > David Kastrup writes: > >> All that verbosity... >> >> $ git stash pop >> Auto-merging foo.txt >> CONFLICT (content): Merge conflict in foo.txt >> Cowardly refusing to drop stash >> $ > > Actually, modulo "Cowardly", that may be the most harmless phrasing, > as apply_stash may try to signal an error for reasons not related to > an inability to apply the change cleanly (e.g. we may have failed to > refresh the index). Without "Cowardly", the capriciosity of "refusing" does not make much sense. The error message is a tribute to GNU tar: dak@lola:/tmp$ mkdir x dak@lola:/tmp$ tar cfz x tar: Cowardly refusing to create an empty archive Try `tar --help' or `tar --usage' for more information. dak@lola:/tmp$ The boring variant would be $ git stash pop Auto-merging foo.txt CONFLICT (content): Merge conflict in foo.txt Not dropping stash $ -- David Kastrup