From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wincent Colaiuta Subject: [PATCH 1/3] Rename patch_update_file function to patch_update_pathspec Date: Sun, 25 Nov 2007 14:15:40 +0100 Message-ID: <1195996542-86074-2-git-send-email-win@wincent.com> References: <1195996542-86074-1-git-send-email-win@wincent.com> Cc: gitster@pobox.com, peff@peff.net, Wincent Colaiuta To: git@vger.kernel.org X-From: git-owner@vger.kernel.org Sun Nov 25 14:16:25 2007 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1IwHLM-0004BD-05 for gcvg-git-2@gmane.org; Sun, 25 Nov 2007 14:16:16 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752910AbXKYNP4 (ORCPT ); Sun, 25 Nov 2007 08:15:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752905AbXKYNP4 (ORCPT ); Sun, 25 Nov 2007 08:15:56 -0500 Received: from wincent.com ([72.3.236.74]:36252 "EHLO s69819.wincent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752902AbXKYNPz (ORCPT ); Sun, 25 Nov 2007 08:15:55 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) (authenticated bits=0) by s69819.wincent.com (8.12.11.20060308/8.12.11) with ESMTP id lAPDFhQT012499; Sun, 25 Nov 2007 07:15:46 -0600 X-Mailer: git-send-email 1.5.3.6.1994.g0a56 In-Reply-To: <1195996542-86074-1-git-send-email-win@wincent.com> Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: The patch_update_file function really works on pathspecs, not files, so rename it to reflect its actual purpose. Signed-off-by: Wincent Colaiuta --- git-add--interactive.perl | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/git-add--interactive.perl b/git-add--interactive.perl index e347216..15b2c9f 100755 --- a/git-add--interactive.perl +++ b/git-add--interactive.perl @@ -571,11 +571,11 @@ sub patch_update_cmd { HEADER => $status_head, }, @mods); for (@them) { - patch_update_file($_->{VALUE}); + patch_update_pathspec($_->{VALUE}); } } -sub patch_update_file { +sub patch_update_pathspec { my ($ix, $num); my $path = shift; my ($head, @hunk) = parse_diff($path); -- 1.5.3.6.1994.g38001