git-difme

git do it for me - ricketyspace.net/git-difme
git clone git://git.ricketyspace.net/git-difme.git
Log | Files | Refs

commit b64bf97cde034e4a23fd11b7830ae919ecb6a1f9
parent e285c0aecfad93907fa209a8b94043779621a1a3
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 10 Jul 2016 20:26:22 +0000

add `difme-stage-commit` function.

* git-difme.scm (difme-stage-commit): new function.

Diffstat:
git-difme.scm | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/git-difme.scm b/git-difme.scm @@ -89,7 +89,7 @@ returned." (let ((cmd (string-append "git add " file))) (with-directory-excursion repo (difme-exec cmd)))) - + (define (difme-commit repo msg) "do `git commit` on REPO. @@ -112,6 +112,11 @@ the commit message will be in the following format: (with-directory-excursion repo (difme-exec cmd)))) +(define (difme-stage-commit repo file msg) + "stage and commit FILE in REPO with MSG as the commit message." + (difme-stage repo file) + (difme-commit repo msg)) + (define (difme-push repo) "do `git push` REPO to its default upstream remote." (let ((cmd "git push"))