1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-05-18 14:35:32 +02:00

putting lines specific to post-commit at the top of the file so the rest could be shared with post-receive

This commit is contained in:
p4bl0 2010-07-26 11:46:21 +02:00
parent b719800bb9
commit 99892ef242

View file

@ -1,5 +1,12 @@
#!/bin/sh
added_files=`git log -1 --name-status --pretty="format:" | grep -E '^A' | \
cut -f2`
modified_files=`git log -1 --name-status --pretty="format:" | grep -E '^M' | \
cut -f2`
deleted_files=`git log -1 --name-status --pretty="format:" | grep -E '^D' | \
cut -f2`
blog_url=`git config --get fugitive.blog-url`
public_dir=`git config --get fugitive.public-dir`
if [ ! -d "$public_dir" ]; then mkdir -p "$public_dir"; fi
@ -7,12 +14,6 @@ templates_dir=`git config --get fugitive.templates-dir`
articles_dir=`git config --get fugitive.articles-dir`
preproc=`git config --get fugitive.preproc`
added_files=`git log -1 --name-status --pretty="format:" | grep -E '^A' | \
cut -f2`
modified_files=`git log -1 --name-status --pretty="format:" | grep -E '^M' | \
cut -f2`
deleted_files=`git log -1 --name-status --pretty="format:" | grep -E '^D' | \
cut -f2`
generated_files=`tempfile -p "fugitive"`
articles_sorted=`tempfile -p "fugitive"`