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=AWL,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: Han-Wen Nienhuys Subject: Re: unmark after committing with git.el Date: Wed, 06 Dec 2006 14:09:15 +0100 Message-ID: <4576C0FB.8060000@xs4all.nl> References: <4576BB0B.9010200@xs4all.nl> Reply-To: hanwen@xs4all.nl Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit NNTP-Posting-Date: Wed, 6 Dec 2006 13:09:45 +0000 (UTC) Return-path: Envelope-to: gcvg-git@gmane.org X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 49 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: muurbloem.xs4all.nl User-Agent: Thunderbird 1.5.0.8 (X11/20061107) In-Reply-To: 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 1GrwWr-00071K-Fe for gcvg-git@gmane.org; Wed, 06 Dec 2006 14:09:41 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760581AbWLFNJa (ORCPT ); Wed, 6 Dec 2006 08:09:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760583AbWLFNJa (ORCPT ); Wed, 6 Dec 2006 08:09:30 -0500 Received: from main.gmane.org ([80.91.229.2]:58106 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760581AbWLFNJa (ORCPT ); Wed, 6 Dec 2006 08:09:30 -0500 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GrwWT-0001ZV-5L for git@vger.kernel.org; Wed, 06 Dec 2006 14:09:17 +0100 Received: from muurbloem.xs4all.nl ([213.84.26.127]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Dec 2006 14:09:17 +0100 Received: from hanwen by muurbloem.xs4all.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Dec 2006 14:09:17 +0100 To: git@vger.kernel.org Sender: git-owner@vger.kernel.org Jakub Narebski escreveu: > But this break I think PCL-CVS behaviour compatibility. By the way, > [Backspace] should unmark all files. it's M-DEL. Is complete PCL-CVS compatibility a target? >From 62a005d36f97e9950c37a59ee5c976567d702d7a Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 6 Dec 2006 13:41:09 +0100 Subject: [PATCH] git.el: unmark files in after committing. In the usual workflow, I mark a few files, and then commit, and then mark another few for commit. This patch removes the need to unmark between commits. Signed-off-by: Han-Wen Nienhuys --- contrib/emacs/git.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el index 972c402..642f7bb 100644 --- a/contrib/emacs/git.el +++ b/contrib/emacs/git.el @@ -596,7 +596,8 @@ and returns the process output as a string." (git-run-command nil nil "rerere")) (git-refresh-files) (git-refresh-ewoc-hf git-status) - (message "Committed %s." commit)) + (message "Committed %s." commit) + (git-unmark-all)) (message "Commit aborted.")))) (message "No files to commit."))) (delete-file index-file)))))) -- 1.4.4.1.gc9922-dirty -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen