Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ignoring files in the wiki folder #49

Open
spenserblack opened this issue Mar 23, 2023 · 3 comments
Open

Support ignoring files in the wiki folder #49

spenserblack opened this issue Mar 23, 2023 · 3 comments
Labels
enhancement New feature or request icebox Issues that are not a priority

Comments

@spenserblack
Copy link
Owner

Random idea I had in #46 (comment)

Possibly implementations:

  • Another with: input (ignorelist format?)
  • An actual ignorefile (wikiignore)

Workarounds:
A .gitignore in the wiki folder, combined with force-added files via git add -f path/to/wiki/file, should track the files in the repo, but ignore them when pushing to the repo. Untested.

@spenserblack spenserblack added enhancement New feature or request icebox Issues that are not a priority labels Mar 23, 2023
@jcbhmr
Copy link
Contributor

jcbhmr commented May 16, 2023

This is supported in my experiment here! https://github.com/Andrew-Chen-Wang/github-wiki-action/tree/jcbhmr

I use:

echo "$INPUT_IGNORE" >>"$GIT_DIR/info/exclude"

where

- uses: action/action@v1
  with:
    ignore: |
      file.cpp
      *.test.md
      *.json
      !package.json

@spenserblack
Copy link
Owner Author

Interesting! So .git/info/exclude is effectively identical to .gitignore? Negating matches, etc.?

@jcbhmr
Copy link
Contributor

jcbhmr commented May 19, 2023

it seems like .git/info/exclude is your own custom .gitignore that's specific to your project. Sort of like the ~/.gitignore or whatever you set your global .gitignore to, but on a per-project level. It doesn't get synced up with the remotes, so you can:

But, sometimes you just with that git stop showing you that file you had to change for some reason we are not here to discuss.

https://luisdalmolin.dev/blog/ignoring-files-in-git-without-gitignore/

image

https://git-scm.com/docs/gitignore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request icebox Issues that are not a priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants