From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: [PATCH] little fixes for attachment git commiting Date: Tue, 9 Mar 2010 17:04:17 +0100 Message-ID: References: <87635xuhnd.fsf@dasa3.iem.pw.edu.pl> <0E4FD6B3-1912-4A6B-96A1-0CF00B3EAED1@gmail.com> <873a0xv6c2.fsf@dasa3.iem.pw.edu.pl> <87tytdtpe4.fsf@dasa3.iem.pw.edu.pl> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Np2o3-0003w2-U6 for emacs-orgmode@gnu.org; Tue, 09 Mar 2010 12:01:20 -0500 Received: from [140.186.70.92] (port=34989 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Np2o1-0003vM-EU for emacs-orgmode@gnu.org; Tue, 09 Mar 2010 12:01:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Np2nz-0004Np-UV for emacs-orgmode@gnu.org; Tue, 09 Mar 2010 12:01:17 -0500 Received: from mail-ew0-f216.google.com ([209.85.219.216]:46442) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Np2nz-0004Nf-P7 for emacs-orgmode@gnu.org; Tue, 09 Mar 2010 12:01:15 -0500 Received: by ewy8 with SMTP id 8so749721ewy.8 for ; Tue, 09 Mar 2010 09:01:14 -0800 (PST) In-Reply-To: <87tytdtpe4.fsf@dasa3.iem.pw.edu.pl> 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: =?UTF-8?Q?=C5=81ukasz_Stelmach?= Cc: emacs-orgmode@gnu.org On Feb 19, 2010, at 12:51 PM, =C5=81ukasz Stelmach wrote: > Carsten Dominik writes: > >> On Feb 19, 2010, at 11:59 AM, =C5=81ukasz Stelmach wrote: >> >>> Carsten Dominik writes: >>> >>>> On Feb 16, 2010, at 8:04 PM, =C5=81ukasz Stelmach wrote: >>>> >>>>> There are two very small commits which iron some wrinkles. Both on >>>>> org-attach-git-commit branch of >>>>> git://github.com/steelman/steelman-org-mode.git >>>>> >>>>> The first prevents git from running on an empty set of deleted >>>>> files. >>>> >>>> Why is that a problem? I am hesitating to apply this patch, =20 >>>> because >>>> on my Mac OS 10.5, xargs does know the --no-run-if-empty argument. >>> ^^^^^^^^^[*] >>> >>> When xargs launches git rm without file arguments git emmits usage >>> >>> --8<---------------cut here---------------start------------->8--- >>> usage: git rm [options] [--] ... > [...] >>> --8<---------------cut here---------------end--------------->8--- >>> >>> message which in this situation is a bit confusing and *suggests* >>> somehting might have gone wrong. And of course a shell output buffer >>> pops up. >>> >>> [*] does || doesn't? >> >> Does not. >> >> Do you actually get to see this error message? Where? > > Everytime I attach a file and there is no deleted files which "git > ls-files --deleted" would list. Try running > > git ls-files --deleted -z | xargs -0 git rm > > when there is no deleted uncommited files in a repository. git's =20 > return > code is 123 so Emacs thinks it is an error. Hi Lukasz, I am not applying the patch, because xargs does not work te same on =20 all systems. - Carsten > > > --=20 > Mi=C5=82ego dnia, > =C5=81ukasz Stelmach > > > > _______________________________________________ > 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