mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-23 07:18:53 +00:00
Fix git cleanup of deleted files
This commit is contained in:
parent
e6cf75c1f4
commit
562fa025f8
@ -1,5 +1,7 @@
|
||||
2010-04-02 Carsten Dominik <carsten.dominik@gmail.com>
|
||||
|
||||
* org-attach.el (org-attach-commit): Split on newlines.
|
||||
|
||||
* org.el (org-export-latex-default-packages-alist): Use list
|
||||
instead of cons for the entries.
|
||||
|
||||
|
@ -245,12 +245,12 @@ This checks for the existence of a \".git\" directory in that directory."
|
||||
(with-temp-buffer
|
||||
(cd dir)
|
||||
(shell-command "git add .")
|
||||
(shell-command "git ls-files --deleted -z" t)
|
||||
(shell-command "git ls-files --deleted" t)
|
||||
(mapc '(lambda (file)
|
||||
(unless (string= file "")
|
||||
(shell-command
|
||||
(concat "git rm \"" file "\""))))
|
||||
(split-string (buffer-string) ""))
|
||||
(split-string (buffer-string) "\n"))
|
||||
(shell-command "git commit -m 'Synchronized attachments'")))))
|
||||
|
||||
(defun org-attach-tag (&optional off)
|
||||
|
Loading…
Reference in New Issue
Block a user