From: Timo Teras <timo.teras@iki.fi>
To: git@vger.kernel.org
Subject: git fast-import: how to prevent incremental commit with no changes
Date: Mon, 5 May 2014 11:53:20 +0300 [thread overview]
Message-ID: <20140505115320.395edd2e@vostro> (raw)
Hi,
I'm trying to script a setup that would periodically import a tarball
to git with fast-import. But things do not always change, so I'd like
fast-import to be able to not do the commit in case there is no change.
That is, I'm constructing the commit with "deleteall" + importing each
object by mark after that. Now, in case nothing changed, fast-import
will happily create an empty commit for me.
Would it be possible to add some flag that would make commit fail in
case nothing changed?
Any suggestions how to do this?
Thanks,
Timo
next reply other threads:[~2014-05-06 16:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-05 8:53 Timo Teras [this message]
2014-05-06 19:18 ` git fast-import: how to prevent incremental commit with no changes Junio C Hamano
2014-05-07 5:01 ` Timo Teras
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=20140505115320.395edd2e@vostro \
--to=timo.teras@iki.fi \
--cc=git@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).