From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Julliard Subject: [PATCH 2/4] git.el: Prepend a slash to the file name when adding to .gitignore. Date: Sat, 22 Jul 2006 15:39:32 +0200 Message-ID: <873bcthi7f.fsf@wine.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-From: git-owner@vger.kernel.org Sat Jul 22 15:39:44 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G4Hhi-0004sQ-Sp for gcvg-git@gmane.org; Sat, 22 Jul 2006 15:39:39 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751362AbWGVNjg (ORCPT ); Sat, 22 Jul 2006 09:39:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751363AbWGVNjg (ORCPT ); Sat, 22 Jul 2006 09:39:36 -0400 Received: from mail.codeweavers.com ([216.251.189.131]:27589 "EHLO mail.codeweavers.com") by vger.kernel.org with ESMTP id S1751362AbWGVNjf (ORCPT ); Sat, 22 Jul 2006 09:39:35 -0400 Received: from adsl-84-227-106-91.adslplus.ch ([84.227.106.91] helo=wine.dyndns.org) by mail.codeweavers.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1G4Hhe-0003Cw-I6 for git@vger.kernel.org; Sat, 22 Jul 2006 08:39:35 -0500 Received: by wine.dyndns.org (Postfix, from userid 1000) id 7B6A04F904; Sat, 22 Jul 2006 15:39:32 +0200 (CEST) To: git@vger.kernel.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: This way the ignore command will really only ignore the marked files and not files with the same name in subdirectories. Signed-off-by: Alexandre Julliard --- contrib/emacs/git.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el index 7371d4b..5837471 100644 --- a/contrib/emacs/git.el +++ b/contrib/emacs/git.el @@ -258,7 +258,7 @@ (defun git-append-to-ignore (file) (set-buffer (find-file-noselect ignore-name)) (goto-char (point-max)) (unless (zerop (current-column)) (insert "\n")) - (insert name "\n") + (insert "/" name "\n") (sort-lines nil (point-min) (point-max)) (save-buffer)) (when created -- 1.4.2.rc1.ge7a0 -- Alexandre Julliard julliard@winehq.org