1
0
mirror of https://github.com/github/gitignore synced 2024-11-27 06:04:22 +01:00
Commit Graph

9 Commits

Author SHA1 Message Date
kuritka
4e89ae30ed
Adding AllowList for Go
**Reasons for making this change:**

_Allowlisting with .gitignore is a technique for dealing with source trees that can have various different untracked local files such as generated output, packages installed through package managers, “working” files, config for individual developers, etc. Rather than trying to come up with some master list of all possible untracked files and add them to .gitignore, it can be easier to start by ignoring everything and then add specific directories back._
_I think the requirements for software development are changing and there is a need to offer an alternative to the denylist._

- https://jasonstitt.com/gitignore-whitelisting-patterns
- https://github.com/golang/go

Signed-off-by: kuritka <kuritka@gmail.com>
2021-12-07 17:11:14 +01:00
Brian Douglas
e65111c618
Merge pull request #3873 from davidsneighbour/patch-1
Add files to Hugo.gitignore
2021-12-06 22:53:55 -08:00
Patrick Kollitsch
d228b84884
update Hugo.gitignore 2021-12-05 09:29:38 +07:00
Patrick Kollitsch
450e32dd8f
Add files to Hugo.gitignore
Three new files to ignore for GoHugo repositories:

- `/assets/jsconfig.json` - Quote from [JavaScript Building](https://gohugo.io/hugo-pipes/js/): "Hugo will, by default, generate a assets/jsconfig.json file that maps the imports. This is useful for navigation/intellisense help inside code editors, but if you don’t need/want it, you can turn it off."
- `hugo_stats.json` - Quote from [Post Build Resource Transformations ](https://gohugo.io/news/0.69.0-relnotes/): "The prime current use case for the above is CSS pruning in PostCSS. In simple cases you can use the templates as a base for the content filters, but that has its limitations and can be very hard to setup, especially in themed configurations. So we have added a new writeStats configuration that, when enabled, will write a file named hugo_stats.json to your project root with some aggregated data about the build, e.g. list of HTML entities published, to be used to do CSS pruning."
- `.hugo_build.lock` - Quote from [Fine Grained File Filters ](https://gohugo.io/news/0.89.0-relnotes/): "Hugo now writes an empty file named .hugo_build.lock to the root of the project when building (also when doing hugo new mypost.md and other commands that requires a build). We recommend you just leave this file alone. Put it in .gitignore or similar if you don’t want the file in your source repository."
2021-11-03 19:58:18 +07:00
Benjamin Altpeter
14ef937214
Hugo: Add new .hugo_build.lock
Version 0.89.0 of Hugo creates a new `.hugo_build.lock` lock file
when building the site.

The release notes suggest adding this to the `.gitignore`:
https://github.com/gohugoio/hugo/releases/tag/v0.89.0
2021-11-02 11:10:35 +00:00
Erdal TAŞKESEN
310f125d23 style: (Golang) Remove the non-essentials (#3061) 2019-05-19 08:49:52 -03:00
Erdal TAŞKESEN
fd3fe5838a
feat: Add missing executables and generated 2018-11-29 18:26:50 +03:00
Brendan Forster
f7c4f2e4e9 line endings 2018-11-22 15:38:46 -04:00
Brendan Forster
d298644fc3 added Hugo community template
Co-Authored-By: Julien Liabeuf <julien731@users.noreply.github.com>
Co-Authored-By: Ricardo N Feliciano <ricardo@feliciano.tech>
2018-10-28 18:17:26 -03:00