+2024-03-21 Bruno Haible <bruno@clisp.org>
+
+ gnulib-tool: Make the .gitignore files handling more consistent.
+ * gnulib-tool.sh (func_done_dir): Ignore the presence or absence of a
+ .git directory if there is a .gitignore file in the same place.
+ * pygnulib/GLImport.py (GLImport._done_dir_): Likewise.
+
2024-03-20 Bruno Haible <bruno@clisp.org>
gnulib-tool.sh: Undocument the --[no-]cache-modules options.
if test -d "$destdir/CVS" || test -d "$destdir/${dir}CVS" || test -f "$destdir/${dir}.cvsignore"; then
func_update_ignorelist .cvsignore
fi
- if test -d "$destdir/.git" || test -f "$destdir/${dir}.gitignore"; then
+ if test -d "$destdir/.git" || test -f "$destdir/.gitignore" || test -f "$destdir/${dir}.gitignore"; then
func_update_ignorelist .gitignore
fi
}
self._update_ignorelist_(directory, '.cvsignore',
dirs_added, dirs_removed)
if (isdir(joinpath(destdir, '.git'))
+ or isfile(joinpath(destdir, '.gitignore'))
or isfile(joinpath(destdir, directory, '.gitignore'))):
self._update_ignorelist_(directory, '.gitignore',
dirs_added, dirs_removed)