[PATCH] .gitignore: Ignore cscope and other *tags files

Laine Stump laine at laine.org
Thu Feb 2 19:02:13 UTC 2023


On 2/2/23 10:37 AM, Martin Kletzander wrote:
> Commit f7114e61dbc2 cleaned up way too much and now that I have cscope
> working again I noticed there are some files that ought to stay ignored.
> 
> Signed-off-by: Martin Kletzander <mkletzan at redhat.com>

Reviewed-by-with-prejudice: Laine Stump <laine at redhat.com>

I had sent a patch a year or two ago (maybe longer?) to re-add the 
cscope files to the ignore, but someone expressed reluctance (because I 
should be putting that in a global ignore or something, I forget), so 
rather than ruffle feathers I just dropped the patch and spent the last 
two years being mildly ignored each time I ran git status (I overcame 
the threshold of sloth one time to get rid of it, but couldn't manage 
the tiny amount of ambition for a 2nd).

> ---
>   .gitignore | 12 +++++++++++-
>   1 file changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/.gitignore b/.gitignore
> index 469539134280..61ea7779b02b 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -19,7 +19,17 @@ __pycache__/
>   # libvirt related ignores
>   /build/
>   /ci/scratch/
> -tags
> +
> +# *tags and cscope files
> +/GPATH
> +/GRTAGS
> +/GTAGS
> +/TAGS
> +/cscope.files
> +/cscope.in.out
> +/cscope.out
> +/cscope.po.out
> +/tags
>   
>   # clangd related ignores
>   .clangd



More information about the libvir-list mailing list