From 49080e84541c4a01f408bbfcee787f59c84c58ad Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Sat, 9 Mar 2024 23:18:55 +0000 Subject: [PATCH] feat: mark new posts as git add intended --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 800c589a5..bbf905d90 100644 --- a/Makefile +++ b/Makefile @@ -127,6 +127,7 @@ ifdef NAME echo ":summary: " >> $(INPUTDIR)/$(DATEYYMMDD)-$(SLUG).$(EXT) echo "" >> $(INPUTDIR)/$(DATEYYMMDD)-$(SLUG).$(EXT) echo "" >> $(INPUTDIR)/$(DATEYYMMDD)-$(SLUG).$(EXT) + git add --intent-to-add $(INPUTDIR)/$(DATEYYMMDD)-$(SLUG).$(EXT) ${EDITOR} ${INPUTDIR}/$(DATEYYMMDD)-${SLUG}.${EXT} else @echo 'Variable NAME is not defined.' @@ -151,6 +152,7 @@ ifdef NAME echo ":slug: $(SLUG)" >> $(PAGESDIR)/$(SLUG).$(EXT) echo "" >> $(PAGESDIR)/$(SLUG).$(EXT) echo "" >> $(PAGESDIR)/$(SLUG).$(EXT) + git add --intent-to-add $(PAGESDIR)/$(SLUG).$(EXT) ${EDITOR} ${PAGESDIR}/${SLUG}.$(EXT) else @echo 'Variable NAME is not defined.'