|
From: | Stefan Monnier |
Subject: | Re: git/mercurial checkin(commit) with every save |
Date: | Mon, 05 Dec 2022 18:33:36 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) |
> (shell-command "hg ci -m \"Automatic commit on file save \" ")) This launches a /bin/sh process which then in turn parses the command to figure out what you asked it to do and then runs `hg` with the specified arguments. You can cut the middle man with: (call-process "hg" nil nil nil "ci" "-m" "Automatic commit on file save") -- Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |