aboutsummaryrefslogtreecommitdiffstats
path: root/gemlog-new
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-06-03 00:36:03 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-06-03 00:36:03 +0300
commit76b3bc5cd86f8ce8b355f0c089387b090d7ad0da (patch)
treea0b1b0a10d92e72cf7bc51d628453ce300c48118 /gemlog-new
parent22f5a44deb4772ddfc70117293e7a1c333a6cd14 (diff)
downloadgemini-aaoth.xyz-76b3bc5cd86f8ce8b355f0c089387b090d7ad0da.tar.gz
gemini-aaoth.xyz-76b3bc5cd86f8ce8b355f0c089387b090d7ad0da.zip
add new post and add git portion of gemlog-new script
Diffstat (limited to 'gemlog-new')
-rwxr-xr-xgemlog-new6
1 files changed, 6 insertions, 0 deletions
diff --git a/gemlog-new b/gemlog-new
index 94f5154..34f15f2 100755
--- a/gemlog-new
+++ b/gemlog-new
@@ -118,6 +118,12 @@ main() {
update_index
edit_post
+
+ {
+ cd "$GEMINI_HOME"
+ git add "$GEMLOG_INDEX" "$_new_post_filename"
+ git commit && git push
+ }
}
main "$@"