emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [patch] org-attach.el: Remove dependency on xargs


From: David Maus
Subject: [Orgmode] [patch] org-attach.el: Remove dependency on xargs
Date: Wed, 24 Mar 2010 20:16:38 +0100
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/24.0.50 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

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.... address@hidden
Email..... address@hidden

Attachment: org-attach-remove-depend-xargs.diff
Description: Binary data

Attachment: pgpdvmyjLW7Dr.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]