Skip to content

Commit

Permalink
Revert change to ,gitignore.d behavior in #196 (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwhitley authored Dec 29, 2023
1 parent 937022f commit 71b036f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions vcsh.in
Original file line number Diff line number Diff line change
Expand Up @@ -569,16 +569,11 @@ write_gitignore() {
OLDIFS=$IFS
IFS=$(printf '\n\t')
gitignores=$(for file in $(@GIT@ ls-files); do
if [ "$GIT_VERSION_MAJOR" -ge 2 ] \
&& [ "$GIT_VERSION_MINOR" -ge 7 ]; then
echo "$file";
else
while true; do
echo "$file"; new=${file%/*}
[ x"$file" = x"$new" ] && break
file=$new
done;
fi
while true; do
echo "$file"; new=${file%/*}
[ x"$file" = x"$new" ] && break
file=$new
done;
done | sort -u)

# Contrary to GNU mktemp, mktemp on BSD/OSX requires a template for temp files
Expand Down

0 comments on commit 71b036f

Please sign in to comment.