From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [patch] org-attach.el: Remove dependency on xargs Date: Wed, 24 Mar 2010 22:17:42 +0100 Message-ID: References: <87mxxx7co9.wl%dmaus@ictsoc.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NuXxX-0001nO-4E for emacs-orgmode@gnu.org; Wed, 24 Mar 2010 17:17:51 -0400 Received: from [140.186.70.92] (port=53638 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuXxT-0001l4-Nz for emacs-orgmode@gnu.org; Wed, 24 Mar 2010 17:17:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuXxR-0004po-Ot for emacs-orgmode@gnu.org; Wed, 24 Mar 2010 17:17:47 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:44552) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuXxR-0004pf-IB for emacs-orgmode@gnu.org; Wed, 24 Mar 2010 17:17:45 -0400 Received: by ewy8 with SMTP id 8so89556ewy.8 for ; Wed, 24 Mar 2010 14:17:44 -0700 (PDT) In-Reply-To: <87mxxx7co9.wl%dmaus@ictsoc.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: Org Mode Applied, thanks. - Carsten On Mar 24, 2010, at 8:16 PM, David Maus wrote: > > Attached patch for org-attach-commit in org-attach.el removes the > dependency on the xargs command to remove files in the repository that > were deleted in the attachment directory. > > Simply capture output of git ls-files --deleted -z in a temporary > buffer, get the filenames from there via string-split and call git rm > on each single file. > > -- David > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... dmaus@ictsoc.de > xargs.diff>_______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten