[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



James Morris <jmorris 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.

sync-vcs-ignore-files:
	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...


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]