Add function to force add existing buffer.

This is mostly useful in the context of my ~/ dir commits. Now I dont
have to shell out myself to do this!
master
josiah 1 year ago
parent c7b6f3a8e0
commit bfd8247b3c

@ -261,6 +261,13 @@
(setq mu4e-view-show-images t))
(defun magit-add-current-buffer ()
"Adds (with force) the file from the current buffer to the git repo"
(interactive)
(shell-command (concat "git add -f "
(shell-quote-argument buffer-file-name))))
(server-start)
;;; jlj-generic.el ends here

Loading…
Cancel
Save