emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wrap-search 3.3.5


From: Gregory Heytings
Subject: Re: wrap-search 3.3.5
Date: Thu, 01 Sep 2022 21:59:42 +0000



BTW I found the -q option for both git-commit(1) and git-push(1) but it doesn't seem to work for 'git commit'?


I guess you see:

On branch master
nothing to commit, working tree clean

when the file hasn't changed?  You can check whether it has changed with

git diff --quiet --exit-code

or

git diff-index --quiet HEAD

Both commands return 1 if there are changes, and 0 otherwise. So you can make your "git commit && git push" conditional to that return value.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]