[libvirt] Re: [PATCH] Add .gitignore files

Jim Meyering jim at meyering.net
Sun Sep 21 16:11:25 UTC 2008

James Morris <jmorris at namei.org> wrote:
> I haven't seen these patches go in upstream.  Any chance of having them
> committed so I don't have to carry them locally ?

If they can be automatically generated from the .cvsignore ones, then how
about adding a rule to do that as well?  Then, when the .cvsignore files
change, one can type e.g., "make sync-vcs-ignore-files" to regenerate the
derived .gitignore ones.  Of course, someone would still have to commit
any changed files, but at least it's far less manual.  That would also
avoid the "No newline at end of file" warnings in your patch.

	find . -name .cvsignore \
	  | sed 's,\(.*\),cp \1 \1,;s,\.cvsignore$$,.gitignore,' \
	  | $(SHELL)

If too many people object to adding git-specific .ignore files,
I might take the unusual step of adding them to the git mirror.
Of course, this would break the mirror in a sense, and might
cause minor complications if the .gitignore files are added
some time later, so I'd rather not have to...

More information about the libvir-list mailing list