Re: [libvirt-snmp][PATCH] Created .gitignore to ignore generated/compiled files.

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

 



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@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]