From: "André Erdmann" <dywi@mailerd.de>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/R_overlay:master commit in: files/hooks/
Date: Fri, 6 Sep 2013 10:22:05 +0000 (UTC) [thread overview]
Message-ID: <1378462805.b5d42e5d74d5aaefca966efe4af8f5bcf0c477f4.dywi@gentoo> (raw)
commit: b5d42e5d74d5aaefca966efe4af8f5bcf0c477f4
Author: André Erdmann <dywi <AT> mailerd <DOT> de>
AuthorDate: Fri Sep 6 10:20:05 2013 +0000
Commit: André Erdmann <dywi <AT> mailerd <DOT> de>
CommitDate: Fri Sep 6 10:20:05 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=commit;h=b5d42e5d
git-commit-overlay: always reinit git repo
---
files/hooks/git-commit-overlay.sh | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/files/hooks/git-commit-overlay.sh b/files/hooks/git-commit-overlay.sh
index e9630d9..2e726fb 100644
--- a/files/hooks/git-commit-overlay.sh
+++ b/files/hooks/git-commit-overlay.sh
@@ -99,6 +99,8 @@ git_reinit() {
## main
+GIT_WANT_COMMIT=n
+
# $GIT_DIR, $S/.git, $HOME/.git, ...?
if [ ! -e "${S}/.git" ]; then
einfo "Creating git repo"
@@ -107,10 +109,16 @@ if [ ! -e "${S}/.git" ]; then
# assume that there are changes,
# git_has_changes() does not work for new repos
-elif ! git_has_changes; then
- veinfo "${SCRIPT_NAME}: nothing to do."
- return 0
+ GIT_WANT_COMMIT=y
+elif git_has_changes; then
+ GIT_WANT_COMMIT=y
fi
autodie git_reinit
-autodie git_commit
+
+if yesno "${GIT_WANT_COMMIT}"; then
+ autodie git_commit
+else
+ veinfo "${this}: nothing to do."
+ return 0
+fi
next reply other threads:[~2013-09-06 10:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-06 10:22 André Erdmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-04-01 16:38 [gentoo-commits] proj/R_overlay:master commit in: files/hooks/ André Erdmann
2014-01-25 18:14 André Erdmann
2013-09-23 15:30 André Erdmann
2013-09-06 11:10 André Erdmann
2013-09-06 11:10 André Erdmann
2013-09-06 10:22 André Erdmann
2013-09-06 10:22 André Erdmann
2013-09-04 13:13 André Erdmann
2013-09-04 12:50 André Erdmann
2013-09-04 10:16 André Erdmann
2013-08-02 10:34 André Erdmann
2013-06-22 15:24 André Erdmann
2013-06-22 15:24 André Erdmann
2013-06-21 18:41 [gentoo-commits] proj/R_overlay:gsoc13/next " André Erdmann
2013-06-22 15:24 ` [gentoo-commits] proj/R_overlay:master " André Erdmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1378462805.b5d42e5d74d5aaefca966efe4af8f5bcf0c477f4.dywi@gentoo \
--to=dywi@mailerd.de \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox