-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Nice to have" FR: a way to do the equivalent of git show --stat
*if* a commit is created
#189
Comments
git show --stat
**if** a commit is createdgit show --stat
*if* a commit is created
git show --stat
*if* a commit is createdgit show --stat
*if* a commit is created
I assume your goal is to show the result of OLD_REV=`git rev-parse gh-pages`
mike deploy ...
if [ "$OLD_REV" != "`git-rev-parse gh-pages`" ]; then
git show --stat gh-pages
fi This could possibly be handled via #161, but I don't intend to add anything that directly supports this in mike. It's rather specialized, and I'd prefer to avoid adding any more new features to mike unless they're extremely important; it's already quite a bit more complex than I'd ever intended. |
Fair enough. Originally, I was concerned about preserving the error code if I went with the script you suggested, but on second thought, that could be fixed with the appropriate sh option ( Thanks for taking a look! |
Not a problem! And like I said, it might be possible to address this in a different way via a plugin system. I think that would cover most cases where people want to hook into various parts of what mike does internally. |
What I want is easy to achieve if calling
mike
with--allow-empty
, since a commit is always created in this case:However, it'd be nice if I could get a correct response even without
--allow-empty
:Alternatively, this could be something like:
The text was updated successfully, but these errors were encountered: