Skip to content

Commit

Permalink
feat: mark new posts as git add intended
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed Mar 9, 2024
1 parent 8ae4bb0 commit 49080e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
Expand All @@ -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.'
Expand Down

0 comments on commit 49080e8

Please sign in to comment.