[libvirt] [libvirt-snmp][PATCH] Created .gitignore to ignore generated/compiled files.
Eric Blake
eblake at redhat.com
Wed Feb 9 15:46:40 UTC 2011
On 02/09/2011 06:48 AM, Michal Privoznik wrote:
> I've forgotten to add .gitignore to let git ignore some garbage.
>
> ---
> .gitignore | 27 +++++++++++++++++++++++++++
> src/.gitignore | 10 ++++++++++
.gitignore can be hierarchical. I prefer to have a single ignore file
at the top level, rather than one per directory.
> +++ b/.gitignore
> @@ -0,0 +1,27 @@
> +.git
This one shouldn't be needed (git automatically ignores its own directory).
> +.git-module-status
This one should probably be anchored.
> +/Makefile
> +/Makefile.in
Un-anchor these, then they will apply recursively (which is what you
want, for ignoring it in src/ as well).
> +++ b/src/.gitignore
> @@ -0,0 +1,10 @@
> +Makefile
> +Makefile.in
> +.deps
> +.libs
> +*.lo
> +*.loT
> +*.la
> +*.exe
> +*.cov
> +/libvirtMib_subagent
Most of these should be unanchored patterns at the top level; the last
line should be /src/libvirtMib_subagent at the top level, then you don't
need this file.
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110209/08f708ca/attachment-0001.sig>
More information about the libvir-list
mailing list