emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [patch] org-attach.el: Remove dependency on xargs
@ 2010-03-24 19:16 David Maus
  2010-03-24 21:17 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: David Maus @ 2010-03-24 19:16 UTC (permalink / raw)
  To: Org Mode


[-- Attachment #1.1.1: Type: text/plain, Size: 438 bytes --]


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

[-- Attachment #1.1.2: org-attach-remove-depend-xargs.diff --]
[-- Type: application/octet-stream, Size: 1074 bytes --]

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] org-attach.el: Remove dependency on xargs
  2010-03-24 19:16 [patch] org-attach.el: Remove dependency on xargs David Maus
@ 2010-03-24 21:17 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2010-03-24 21:17 UTC (permalink / raw)
  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
> <org-attach-remove-depend- 
> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-24 21:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-24 19:16 [patch] org-attach.el: Remove dependency on xargs David Maus
2010-03-24 21:17 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).