mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-10-05 15:35:29 +02:00
BUGFIX: generated html for articles added in a commit with template changes were not added to ignore list
This commit is contained in:
parent
dde76b8ece
commit
18457e886d
|
@ -12,12 +12,13 @@ preproc=`git config --get fugitive.preproc`
|
||||||
tpl_change=`echo "$added_files" "$modified_files" "$deleted_files" | \
|
tpl_change=`echo "$added_files" "$modified_files" "$deleted_files" | \
|
||||||
grep -c "$templates_dir/"`
|
grep -c "$templates_dir/"`
|
||||||
if [ "$tpl_change" -gt 0 ]; then
|
if [ "$tpl_change" -gt 0 ]; then
|
||||||
added_files=
|
first=`git log --format="%H" --reverse | head -1`
|
||||||
modified_files=`git log --name-status --pretty="format:" | \
|
modified_files=`git log $first..HEAD^ --name-status --pretty="format:" | \
|
||||||
grep -E '^A' | cut -f2 | sort | uniq`
|
grep -E '^A' | cut -f2 | sort | uniq`
|
||||||
deleted_files=
|
deleted_files=
|
||||||
tmpart=`mktemp`
|
tmpart=`mktemp`
|
||||||
tmpmod=`mktemp`
|
tmpmod=`mktemp`
|
||||||
|
tmpadd=`mktemp`
|
||||||
ls "$articles_dir"/* > "$tmpart"
|
ls "$articles_dir"/* > "$tmpart"
|
||||||
echo "$modified_files" | tr " " "\n" > "$tmpmod"
|
echo "$modified_files" | tr " " "\n" > "$tmpmod"
|
||||||
modified_files=`comm -12 --nocheck-order "$tmpmod" "$tmpart"`
|
modified_files=`comm -12 --nocheck-order "$tmpmod" "$tmpart"`
|
||||||
|
|
Loading…
Reference in a new issue