Skip to content

Commit 96bd0ee

Browse files
committed
The site-publish-draft script uses git mv to maintain history
1 parent e9aad4b commit 96bd0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site-publish-draft

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ draftfile="$(echo "$draft" | sed -e 's:^_drafts/::g')"
66
categorydir="$(dirname "$draftfile")"
77
post="_posts/$categorydir/$(date +%Y-%m-%d)-$(basename "$draft")"
88

9-
mv "$draft" "$post"
9+
git mv "$draft" "$post"
1010
echo published as "$post"

0 commit comments

Comments
 (0)