diff --git a/make/projects-dir.mk b/make/projects-dir.mk index 411fb034..4b642ab1 100644 --- a/make/projects-dir.mk +++ b/make/projects-dir.mk @@ -337,6 +337,9 @@ git-short-diff: $(SSH_WRAPPER_SH) git-status: $(PGIT_SH) status -uno +git-log-%: + $(PGIT_SH) log -$* 2>&1 + git-get: $(SSH_WRAPPER_SH) $(PGIT_SH_GET_DEFAULT) touch get.done diff --git a/make/rules.mk b/make/rules.mk index 0179fbbb..e64fca06 100644 --- a/make/rules.mk +++ b/make/rules.mk @@ -243,6 +243,16 @@ ifneq ($(EXE_PATH),) endif endif +git-log-%: + git log -$* 2>&1 + +git-log-tree-%: +ifneq ($(PROJECTS_DIR),) + make --no-print-directory -C $(PROJECTS_DIR) git-log-$* 2>&1 +else + @echo "No PROJECTS_DIR defined to log commits for" +endif + # -- special built-in targets .PRECIOUS: $(LOCAL_H)