#.PHONY: check-uncommitted
#check-uncommitted:
fake_target:
- @if git diff --quiet && git diff --cached --quiet && [ -z "$$(git ls-files --others --exclude-standard)" ]; then \
- echo "Repository is clean (no uncommitted or untracked changes). Exit."; \
- exit 0; \
+ @if git diff --quiet && git diff --cached --quiet && [ -z "$$(git ls-files --others --exclude-standard)" ]; then \
+ echo "Repository is clean (no uncommitted or untracked changes). Exit."; \
+ exit 0; \
else \
- git add . && backcheck:; \
- fi
-
-# echo $(shell git status --porcelain 2>/dev/null); \
-
-
-git-%:
- ifeq ($(@:git-%=%), push)
- git push origin $(BRANCH)
- endif
+ git add . && \
+ fi
# git add . && \
# commitinfo && \