Skip to content

ignore tags in gitignore #39

@suasuasuasuasua

Description

@suasuasuasuasua

i use vim's native package manager, and i have direnv.vim added as a submodule in my dotfiles under $HOME/.config/vim/pack/plugin/start/direnv.

when i run :helptags ALL to generate tags for my custom plugins, the direnv.vim directory is dirty because of the generated tags file.

for example, running a git status in my main dotfiles looks like:

On branch main
Your branch is ahead of 'origin/main' by 1 commit.
  (use "git push" to publish your local commits)

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
  (commit or discard the untracked or modified content in submodules)
	modified:   pack/plugin/start/direnv.vim (untracked content)

no changes added to commit (use "git add" and/or "git commit -a")

and the direnv.vim folder looks like:

HEAD detached at ab2a7e0
Untracked files:
  (use "git add <file>..." to include in what will be committed)
	doc/tags

nothing added to commit but untracked files present (use "git add" to track)

it looks like other plugins like vim-fugitive has a gitignore specifically ignoring the tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions